IS_BEYOND_NEXT_DAYS
IS_BEYOND_NEXT_DAYS:
arg: { arg } # required
offsetDays: { offsetDays } # required
Description
The IS_BEYOND_NEXT_DAYS operation checks if a DateTime value, provided as the argument arg, is strictly later than a date calculated by adding a specified number of days (offsetDays) to 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 beyond the next offsetDays, and false otherwise.
Parameters
-
arg(Operation<DateTime>, required):- Specifies the
DateTimevalue to be checked. - This can be any operation that resolves to a
DateTimevalue, such asFIELD,EXTRACT,DATE_TIME_FROM, etc.
- Specifies the
-
offsetDays(number, required):- Specifies the number of days to add to the current date for the comparison.
- Must be a non-negative integer.
Return Type
Examples
-
Checking if a date field is beyond the next 7 days:
IS_BEYOND_NEXT_DAYS:
arg:
FIELD:
path: CA10__expiryDate__c # Assume this field returns a DateTime value
offsetDays: 7This example checks if the date in the
CA10__expiryDate__cfield is later than 7 days from now. -
Using
IS_BEYOND_NEXT_DAYSin a Condition:- status: COMPLIANT
currentStateMessage: "The resource is valid for more than 30 days."
check:
IS_BEYOND_NEXT_DAYS:
arg:
EXTRACT: CA10__validUntil__c # Assume 'CA10__validUntil__c' is an extract returning DateTime
offsetDays: 30This condition flags a resource as
COMPLIANTif its validity date, obtained from theCA10__validUntil__cextract, is beyond the next 30 days.
See more details in: