GlideappCalculationHelper - Global
-
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- API reference
The GlideappCalculationHelper API is a scriptable object that provides methods that add items to an existing request or request the recalculation of the price of a request.
The methods for this API are used in global server-side scripts (script includes, business rules, etc.). There is currently no support for scoped applications.
GlideappCalculationHelper - addItemToExistingRequest(String requestID, String catalogID, String quantity)
Adds a specific catalog item to an existing request. This API should be used only before a request (REQ) is approved. After the REQ is approved, the RITM process is not initiated.
Name | Type | Description |
---|---|---|
requestID | String | Sys_id of the request to which to add the catalog item(s) |
catalogID | String | Sys_id of the catalog item to add to the request |
quantity | String | Number (quantity) of the specified catalog item to be add to the request. |
Type | Description |
---|---|
void |
Example
GlideappCalculationHelper - rebalanceRequest(String requestID)
Recalculates the price of all of the items in a specified request.
Name | Type | Description |
---|---|---|
requestID | String | Sys_id of the request for which to recalculate the price |
Type | Description |
---|---|
void |