ftos.businessStatusWorkflow.wasUpdated
IMPORTANT!
Starting with v24.3.0, this is renamed from isBusinessStatusChange to ftos.businessStatusWorkflow.wasUpdated.
Starting with v24.3.0, this is renamed from isBusinessStatusChange to ftos.businessStatusWorkflow.wasUpdated.
Checks if a record has transitioned from a business workflow status to a different business workflow status. The record is determined by the context of an event triggered server side script.
This is a business logic method for business service components.
Syntax
function ftos.businessStatusWorkflow.wasUpdated(fromStatus: string, toStatus: string): boolean
| Parameter | Description |
|---|---|
fromStatus
|
Initial business status. |
toStatus
|
Final business status. |
Return Value
Returns true if the status change is confirmed and false if it isn't.
Examples
In this example, we check if a record's business workflow status has changed from prospect to customer and store the result in a boolean variable called validation:
var validation = ftos.businessStatusWorkflow.wasUpdated('prospect', 'customer');