Loading

Case Field "Closed When Created" (IsClosedOnCreate) — Behavior and Custom Reporting Options

Дата публикации: Jun 3, 2026
Описание

The standard Salesforce Case field IsClosedOnCreate (also known as "Closed When Created") is documented to reflect a value of TRUE only when the Date/Time Closed equals the Date/Time Opened on a Case record. However, in practice this is not always the observed behavior.


When an organization reports on Case.IsClosedOnCreate, it is important to understand that "closed during creation" does not necessarily mean that the Date/Time Closed value precisely equals the Date/Time Opened value. While a user can create a Case and immediately choose to close it using the Save & Close button, both the IsClosedOnCreate flag and the DateClosed value are not written to the record until the Case is saved in a Closed status. This timing difference means the two timestamp values may not be exactly equal.
Salesforce allows multiple methods to create Case records. Any method that strays from the standard, linear creation flow may lead to discrepant behavior of the IsClosedOnCreate flag with respect to the Date/Time Closed and Date/Time Opened values.

Решение

This article explains why Case.IsClosedOnCreate may not behave as expected, and provides a recommended workaround for organizations that require a stricter definition of "Closed When Created."
If your organization requires "Closed When Created" to mean precisely that Date/Time Opened equals Date/Time Closed, the standard field does not reliably enforce this constraint due to the way the system processes and writes these values.


Recommended Workaround: Create a Custom Formula Field
Create a custom formula field on the Case object that explicitly evaluates whether DateOpened = DateClosed. Reference this custom formula field in your reports instead of the standard IsClosedOnCreate field.
This approach gives your organization a precise, deterministic calculation that is independent of system-write timing and supports accurate reporting in multilingual and high-volume Case creation environments.

Дополнительные ресурсы
Номер статьи базы знаний

000387621

 
Загрузка
Salesforce Help | Article