ebs.getOptionSetIdByName
Returns the ID of an option set based on its name.
Syntax
| Parameter | Type | Description |
|---|---|---|
optionSetName
|
string | Name of the option set. |
Return Value
Returns a string containing the corresponding option set ID or null if the provided option set name is not valid.
Examples
In this example, we retrieve the ID of the myOptionSet option set and store it in the myOptionSetId variable.
Copy
var myOptionSetId = ebs.getOptionSetIdByName('myOptionSet')