-
Notifications
You must be signed in to change notification settings - Fork 84
Utilities
Various extensions that don't fit a particular category.
Table of content
ℹ️ These components are part of the Apex Formula Evaluator package.
Calculates the duration in terms business hours between two dates.
Original contribution by Chris Van Der Merwe
Type: Invocable Action
Inputs:
Name | Type | Description |
---|---|---|
businessHoursId | Id |
The Id of the Business Hours. |
startDate | DateTime |
The start date. |
endDate | DateTime |
The end date. |
Outputs:
Pick one of the output values (do not add them up) to get the duration expressed in the desired time unit.
Name | Type | Description |
---|---|---|
durationMs | Long |
Duration in milliseconds |
durationSec | Long |
Duration in seconds |
durationMin | Long |
Duration in minutes |
durationHours | Long |
Duration in hours |
durationDays | Long |
Duration in days |
ℹ️ Note: This action is part of the Apex Formula Evaluator package.
Evaluates a formula.
This action works well in combination with the Formula Builder community-contributed flow screen component.
Original contribution by Enrico Murru and Andrii Kraiev
Type: Invocable Action
Inputs:
Name | Type | Description |
---|---|---|
formula | String |
The formula. Example: $Record.Name == "Trailblazer Co."
|
context | String |
The formula context passed as a JSON string. Example: [{ "Name": "$Record", "Value": "0015I000003U7ayQAC" }]
|
Outputs:
Name | Type | Description |
---|---|---|
result | String |
The formula result |
Generates a random value.
Type: Invocable Action
Inputs:
Name | Type | Description |
---|---|---|
randomType | String |
A type of random value: number or boolean . |
minNumber | Integer |
An optional minimum value if the type is number . |
maxNumber | Integer |
An optional maximum value if the type is boolean . |
Outputs:
Only one output value is provided depending on the randomType
selected.
Name | Type | Description |
---|---|---|
randomNumber | Double |
A random number. |
randomBoolean | Boolean |
A random boolean value. |
ℹ️ These components are part of the Apex Formula Evaluator package.