ftos.businessStatusWorkflow.getId
IMPORTANT!
Starting with v24.3.0, this is renamed from getBusinessStatus to ftos.businessStatusWorkflow.getId.
Starting with v24.3.0, this is renamed from getBusinessStatus to ftos.businessStatusWorkflow.getId.
Returns the ID of a business status based on its name.
This is a business logic method for business service components.
Syntax
function ftos.businessStatusWorkflow.getId(entityName: string, statusName: string): string
| Parameter | Description |
|---|---|
entityName
|
The name of the entity that has the business status is attached to. |
statusName
|
Name of the business status. |
Return Value
Returns a string value that contains the business status ID.
Examples
In this example, we store the ID of the Prospect business status of the Customers entity in a variable called statusID.
var statusID = ftos.businessStatusWorkflow.getId('Customers', 'Prospect');