Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Yes we can use ISNEW() function to check if this is creation or updation in validation rule.
Please find the article (https://help.salesforce.com/s/articleView?id=sf.customize_functions_isnew.htm&language=en_US&r=https%3A%2F%2Fwww.google.com%2F&type=5#:~:text=Checks%20if%20the%20formula%20is,updated%2C%20this%20function%20returns%20FALSE.) for the same.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
All Answers
Yes we can use ISNEW() function to check if this is creation or updation in validation rule.
Please find the article (https://help.salesforce.com/s/articleView?id=sf.customize_functions_isnew.htm&language=en_US&r=https%3A%2F%2Fwww.google.com%2F&type=5#:~:text=Checks%20if%20the%20formula%20is,updated%2C%20this%20function%20returns%20FALSE.) for the same.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
We can fire when creating a new recod or while modifying existing recrods.
ISNEW() -- It validates only new records
NOT(ISNEW() -- For existing records