getObjectKeys
Returns the keys of a JSON object.
Syntax
function getObjectKeys(objectName: string): string[]
| Parameter | Description |
|---|---|
objectName
|
Name of the object. |
Return Value
Returns an array that contains they object's key names.
Examples
In this example:
- We extract the key names from the Customers entity's business statuses mapping. For details on how to get an entity's business statuses, see ftos.businessStatusWorkflow.getStatuses.
- We store the list of IDs in a variable called statueses.
var statuses = getObjectKeys(ftos.businessStatusWorkflow.getStatuses('Customers'));