---
schema_version: "1"
id: 98f29cf759271cf43bcf08f97ceb2ade909a848d03f4f794b192c2803198ae6b
title: ISNEW
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_isnew.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_isnew.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 511a2517e8a051a66f3f205815469d906b3472673ae7e9a4b420b239663fa208
description: 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.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

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.