Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
GetDurationDateRange
Returns the start and end date given a duration.For example,
if you input the number 3 on the date 10/29/2024, it will return a start date of 7/1/2024
and an end date of 10/1/2024.
Signature
call(String action, Map<String, Object> args
Return Value
Returns the start and end date for a specified duration.
Examples
Output JSON example of the actions are as follows.
-
Output format:
1{ 2 "DurationStartDate": "2024-02-02T00:00:00.000Z", 3 "DurationEndDate": "2024-05-02T00:00:00.000Z" 4 }