This article covers how to use the ISNEW and ISCHANGED functions in a Salesforce formula to return TRUE when a record is created or when a specific field changes. Use this logic in places such as validation rules.
This article explains how to write a formula that returns TRUE when a record is either newly created or a specific field has changed, using the ISNEW and ISCHANGED functions.
To determine if a record is newly created or if a specific field has changed, use the ISNEW and ISCHANGED functions. To return TRUE when "a record is created" OR "a specific field (e.g., Status__c) is changed," combine these functions using an OR condition.
The following example uses the OR function to check both conditions together. The formula returns TRUE if the record is new or if the Status__c field changed.
`OR(
ISNEW(),
ISCHANGED(Status__c)
)`
The following example achieves the same result using the || (OR) operator instead of the OR function. The formula returns TRUE if the record is new or if the Status__c field changed.
`ISNEW() || ISCHANGED(Status__c)`
This formula cannot be used in all locations. Refer to the ISCHANGED documentation in Salesforce Help to check where the ISCHANGED function is available (e.g., Validation Rules, Workflow Rules, Process Builder formulas).
005232816

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.