Validation Rules | Zoho Recruit

Points To Note While Updating A Field Used In A Validation Rule

Validation Rules are effective on creating a record manually. However, when fields used in a validation rule (whether primary or secondary) are updated through other ways such as workflow update, and APIs, the field update takes precedence over the validation rules.
 
These instances are explained with further examples below:

Updating a primary field using a validation rule

Example:  
In a job portal, there is a validation rule that states, "If Job Salary is less than $50,000, show an alert, 'Sorry! This job does not meet the minimum salary requirement.'" This validation rule is set up to ensure that only job openings with a minimum salary of $50,000 or higher can be posted on the portal.

However, there is a scenario where this validation rule may be bypassed. If a job opening's salary is updated through an automated job feed from an external recruitment agency, the system automatically updates the job opening with the information from the job feed, including the salary. If the job feed data shows a salary of $50,000 or higher for a job opening, the system will update the job opening with this information, even if the validation rule would have triggered an alert due to the original salary being less than $50,000.

This means that despite the validation rule being in place, the system will accept and update the job opening with the new salary obtained from the job feed, overriding the validation rule and allowing the job opening to be posted on the portal, even if it does not meet the minimum salary requirement as per the original validation rule.
 
Following are the means for field update that will take precedence over the validation rule.
 
Means of field update in Recruit
Field update details
Import
Updated on importing new Candidates or overwriting existing records
Workflow rules
Updated as a result of workflow action
Approval Process
Updated on approval or rejection of a record
Blueprint
Updated as a result of the After Transition settings.
When you create a validation rule as well as Blueprint validation for the same field, and if the two conditions are different, Blueprint overrides the validation rule.
That is, as long as the field is within a process, the Blueprint validation is applicable. When a record has exited a process, the validation rule is effective.
APIs
Updated via API updateRecords method
Mass update
Primary field used in a layout rule will not be available for mass update.

Updating a secondary field using a validation rule   

This is an important note. When you try to update any of the secondary fields used in a validation rule through workflows, mass update, APIs or Import, Recruit will accept the secondary field's values regardless of the conditions in the rule. As a result, your data may gather unacceptable values despite the validation rule.

Example:
A recruitment agency uses a Recruit system to manage their job openings, and they have set up a validation rule to define the minimum years of experience based on the job location. The validation rule states that the minimum years of experience required cannot be less than 3 years for job openings in the USA, cannot be less than 5 years for job openings in the UK, and cannot be less than 2 years for job openings in India. The years of experience field is the primary field, and the job location field is a secondary field used in the validation rule.
The recruitment agency decides to update the job location for a group of job openings through a mass update operation in the Recruit system. They decide to update all the job openings' location to "India" as they are planning to expand their operations in India. However, they do not realize that the job location field is used in the validation rule for defining the minimum years of experience. As a result, all the job openings whose location is updated to "India" end up with different minimum years of experience, which do not comply with the validation rule.

For example, a job opening that originally required a minimum of 4 years of experience and was located in the USA gets updated to "India" as the job location during the mass update. According to the validation rule, the minimum years of experience required should not be less than 2 years for job openings in India. However, because the Recruit system does not restrict field updates of secondary fields used in a validation rule, the minimum years of experience required is not adjusted to comply with the validation rule, resulting in an unacceptable value of 4 years for a job opening with the job location set to "India".

This scenario highlights the importance of checking whether fields are used in a validation rule before updating them, especially when performing mass updates, API calls, or imports in a Recruit system for recruitment purposes, to avoid gathering unacceptable values in the module and ensuring data integrity in job openings management.

    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION








                                You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                    Manage your brands on social media

                                      Zoho Desk Resources

                                      • Desk Community Learning Series


                                      • Digest


                                      • Functions


                                      • Meetups


                                      • Kbase


                                      • Resources


                                      • Glossary


                                      • Desk Marketplace


                                      • MVP Corner


                                      • Word of the Day


                                        Zoho Marketing Automation

                                          Zoho Sheet Resources

                                           

                                              Zoho Forms Resources


                                                Secure your business
                                                communication with Zoho Mail


                                                Mail on the move with
                                                Zoho Mail mobile application

                                                  Stay on top of your schedule
                                                  at all times


                                                  Carry your calendar with you
                                                  Anytime, anywhere




                                                        Zoho Sign Resources

                                                          Sign, Paperless!

                                                          Sign and send business documents on the go!

                                                          Get Started Now




                                                                  Zoho TeamInbox Resources



                                                                          Zoho DataPrep Resources



                                                                            Zoho DataPrep Demo

                                                                            Get a personalized demo or POC

                                                                            REGISTER NOW


                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now







                                                                                            You are currently viewing the help articles of Sprints 1.0. If you are a user of 2.0, please refer here.

                                                                                            You are currently viewing the help articles of Sprints 2.0. If you are a user of 1.0, please refer here.



                                                                                                  • Related Articles

                                                                                                  • Validation Rules In Zoho Recruit

                                                                                                    Validation rules can improve the accuracy and consistency of the data in Zoho Recruit. These rules enforce specific requirements or restrictions on the data entered, such as filling out specific fields or entering data in a particular format. ...
                                                                                                  • Use Cases for Validation Rules Using Functions

                                                                                                    Make detailed description mandatory if specific terms are entered in the field Zylker Tech manufactures electronic assemblies and similar other products. Their manufactured items are outsourced for quality check to a third-party service provider. The ...
                                                                                                  • Workflow Rules

                                                                                                    Workflow Rules in Zoho Recruit are a set of actions (alerts, tasks, and field updates) that are executed when certain specified conditions are met. These rules automate the process of sending email alerts and SMS alerts, assigning tasks, and updating ...
                                                                                                  • Workflow Rules

                                                                                                    Workflow Rules in Zoho Recruit are a set of actions (alerts, tasks, and field updates) that are executed when certain specified conditions are met. These rules automate the process of sending email alerts and SMS alerts, assigning tasks, and updating ...
                                                                                                  • Layout Rule Exceptions

                                                                                                    Layout rules are effective when creating a record manually. However, when a field used in a layout rule is updated through other ways such as workflow update, and APIs, the field update takes precedence over both these rules. These instances are ...
                                                                                                    Wherever you are is as good as
                                                                                                    your workplace

                                                                                                      Resources

                                                                                                      Videos

                                                                                                      Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                      eBooks

                                                                                                      Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                      Webinars

                                                                                                      Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                      CRM Tips

                                                                                                      Make the most of Zoho CRM with these useful tips.



                                                                                                        Zoho Show Resources