Mass Update Sales Agreement Action
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:
1{
2 "inputs": [
3 {
4 "entityId": "0YALT000000H9rh4AC",
5 "products": [
6 "0YBLT0000000Mq94AE"
7 ],
8 "periods": [
9 "ALL"
10 ],
11 "fieldToUpdate": "SalesPrice",
12 "operation": "Increase By",
13 "numericValue": "15",
14 "numericValueType": "absolute"
15 }
16 ]
17}