Mass Update Sales Agreement Action

Now you can make mass updates to sales agreement fields for different products and periods with a single action.

These actions update the sales agreement based data in your Salesforce org. You must perform a database rollback to undo these actions.

Note

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 Details
entityId
Type
string
Description
The ID of the sales agreement to mass update.
fieldToUpdate
Type
string
Description
The developer name of a sales agreement product schedule field. For example, SalesPrice.
periods
Type
anyType
Description
List of sales agreement product schedules in the yyyy-MM-dd date format. For example, 2020-01-01,2020-02-01.
products
Type
anyType
Description
Comma separated list of sales agreement product IDs.
operation
Type
string
Description
Operation for mass update.

Valid values are:

  • IncreaseBy
  • DecreaseBy
  • ReplaceWith
numericvalue
Type
double
Description
Numeric value to use in the operation for mass update. Can be any number up to 15 digits.
numericValueType
Type
string
Description
Type of operation for mass update.

Valid values are:

  • Percentage
  • Absolute

Usage

Sample Request
The following example shows how to mass update sales agreement fields:
{
“entityId”: “a07B0000007qbQOIAY”,
“fieldToUpdate”: “DiscountPercentage”,
“periods”: “[”2020-01-01“,”2020-02-01“]”,
“products”: “[”a07B0000007qbQOIAY“,”a07B0000007qbQOIAY“]”,
“operation”: “ReplaceWith”,
“numericvalue”: 10,
“numericValueType”: “Percentage”
}