ftos.metadata.getOptionSetItemId
IMPORTANT!
Starting with v24.3, this is renamed from getOptionSetItemId to ftos.metadata.getOptionSetItemId.
Starting with v24.3, this is renamed from getOptionSetItemId to ftos.metadata.getOptionSetItemId.
Returns the attributes and items of an optionset.
This is suitable for all modules of business service components.
Syntax
function ftos.metadata.getOptionSetItemId(optionSetName: string, optionSetItemName: string): string
| Parameter | Description |
|---|---|
optionSetName
|
Name of the optionset. |
optionSetItemName
|
Name of the optionset item. |
Return Value
Returns a string containing the ID of the optionset item.
Examples
In this example, we get the ID of the Admin item in the Role optionset and save its value in the adminID variable:
var adminID = ftos.metadata.getOptionSetItemId('Role', 'Admin');