IS_BEFORE_TODAY
IS_BEFORE_TODAY:
arg: { arg } # required
Description
The IS_BEFORE_TODAY
operation checks if a DateTime
value, provided as the argument arg
, is strictly before the current day (today). The comparison is based on the current date at UTC midnight. It returns a Boolean
value: true
if the arg
DateTime is before today, and false
otherwise.
Parameters
arg
(Operation<DateTime
>, required):
Return Type
Examples
-
Checking if a date field is before today:
IS_BEFORE_TODAY:
arg:
FIELD:
path: CA10__dueDate__c # Assume this field returns a DateTime valueThis example checks if the date in the
CA10__dueDate__c
field is before the current day. -
Using
IS_BEFORE_TODAY
in a Condition:- status: INCOMPLIANT
currentStateMessage: "The expiration date is in the past."
remediationMessage: "Review and update the expiration date to a future date."
check:
IS_BEFORE_TODAY:
arg:
EXTRACT: CA10__expirationDate__c # Assume 'CA10__expirationDate__c' is an extract returning DateTimeThis condition flags a resource as
INCOMPLIANT
if its expiration date, obtained from theCA10__expirationDate__c
extract, is before today.
See more details in: