Now you can make mass updates to sales agreement fields for different
products and periods with a single action.
This object is available in API version 48.0 and later for users with Manufacturing Cloud license.
Supported REST HTTP Methods
URI: /services/data/vXX.X/actions/standard/massUpdateSalesAgreement
Formats: JSON, XML
HTTP Methods: GET, HEAD, POST
Authentication: Authorization: Bearer token
Inputs
| Input | Type | Description |
|---|---|---|
| entityId | string | The ID of the sales agreement to mass update. |
| fieldToUpdate | string | The developer name of a sales agreement product schedule field. For example, SalesPrice. |
| periods | anyType | List of sales agreement product schedules in the yyyy-MM-dd date format. For example, 2020-01-01,2020-02-01. |
| products | anyType | Comma separated list of sales agreement product IDs. |
| operation | string | Operation for mass update. Valid values are:
|
| numericvalue | double | Numeric value to use in the operation for mass update. Can be any number up to 15 digits. |
| numericValueType | string | Type of operation for mass update. Valid values are:
|
Usage
Sample Request
The following example shows how to mass update sales agreement
fields:
{
"inputs": [
{
"entityId": "0YALT000000H9rh4AC",
"products": [
"0YBLT0000000Mq94AE"
],
"periods": [
"ALL"
],
"fieldToUpdate": "SalesPrice",
"operation": "Increase By",
"numericValue": "15",
"numericValueType": "absolute"
}
]
}