getBusinessStatus
Returns the ID of a business status based on its name.
Syntax
function getBusinessStatus(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 = getBusinessStatus('Customers', 'Prospect');