Loading
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          ISNEW

          ISNEW

          Checks if the formula is running during the creation of a new record and returns TRUE if it is. If an existing record is being updated, this function returns FALSE.

          Use

          ISNEW()

          Tips

          • This function is available only in validation rules, field updates, workflow rules, assignment rules, and processes.
          • Use the NOT function to reverse the return values of TRUE and FALSE.
          • This function always returns FALSE when used in a workflow rule with a time-based trigger.
          • This function always returns FALSE when used in a field update for an approval action.
          • This function is unsupported for Data Cloud objects.
          Validation Rule Example
          Validation Rule Example Use the following validation rule to prevent users from creating a record with a close date in the past. AND (ISNEW(), CloseDate < TODAY()) checks if the user is creating an opportunity and, if so, ensures that the Close Date is today or after today.

          Use this validation rule to ensure users add at least one product to an opportunity after they have created it.

          NOT(OR(ISNEW(),HasOpportunityLineItem))

          In this example, the validation rule formula displays this error message when an existing opportunity does not have any products: “You must add products to this opportunity before saving.” This formula doesn’t display an error on the initial save because they cannot add products until after saving the record initially; but it prevents them from resaving or closing an opportunity that does not contain products.

           
          Loading
          Salesforce Help | Article