A note about restrictions: For security reasons, scripts have restrictions. These restrictions include the following:
The script supports the JavaScript ES5 standard.
- The setTimeout/setInterval/clearTimeout/clearInterval functions are not available for Script Task.
- The XHR/fetch APIs are not available for Script Task.
- The available global JavaScript objects list:
- Object
- Array
- Date
- Number
- Error
- String
- Boolean
- Math
- JSON
- If the script code executes time is more than three seconds, the system rejects it as a bad snippet. The entire transaction is terminated with an error message.
- If script mode is used, one package can update/create with a threshold of 5000 entitlements.
Refer to the EMS Help portal for more information on scripts within EMS. The Help portal allows you to select a sample script to assist in maintaining scripts within EMS.
After configuring your script, select the Create button to save your work. This takes us to the Upgrade Entitlement Version Script page. At this stage in the entitlement process configuration, you can edit, delete, or copy an entitlement. Let’s copy an entitlement.