---
schema_version: "1"
id: b301b3688bff433fff502135036458b35bbd84fbb46bb03e2d6356e600e7c1d4
title: Mass Update Sales Agreement Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/mfg_actions_mass_update_sales_agreement.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/mfg_actions_mass_update_sales_agreement.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7ab5d0d3b521e22fc528c7f918061419a1e38805537e903692ee38e21f86fec2
description: Now you can make mass updates to sales agreement fields for different products and periods with a single action.
---
# Mass Update Sales Agreement Action

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

![Note](https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/images/icon_note.png)

#### Note

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

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

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d18510e88">Input</th>

              <th class="featureTableHeader  " id="d18510e91">Type</th>

              <th class="featureTableHeader  " id="d18510e94">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d18510e88" data-title="Input"><span class="keyword parmname">entityId</span></td>

              <td class="entry" headers="d18510e91" data-title="Type">string</td>

              <td class="entry" headers="d18510e94" data-title="Description">The ID of the sales agreement to mass update.</td>

            </tr>

            <tr>
              <td class="entry" headers="d18510e88" data-title="Input"><span class="keyword parmname">fieldToUpdate</span></td>

              <td class="entry" headers="d18510e91" data-title="Type">string</td>

              <td class="entry" headers="d18510e94" data-title="Description">The developer name of a sales agreement product schedule field. For example, <samp class="codeph nolang">SalesPrice</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d18510e88" data-title="Input"><span class="keyword parmname">periods</span></td>

              <td class="entry" headers="d18510e91" data-title="Type">anyType</td>

              <td class="entry" headers="d18510e94" data-title="Description">List of sales agreement product schedules in the <samp class="codeph nolang">yyyy-MM-dd</samp> date format. For example, <samp class="codeph nolang">2020-01-01,2020-02-01</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d18510e88" data-title="Input"><span class="keyword parmname">products</span></td>

              <td class="entry" headers="d18510e91" data-title="Type">anyType</td>

              <td class="entry" headers="d18510e94" data-title="Description">Comma separated list of sales agreement product IDs.</td>

            </tr>

            <tr>
              <td class="entry" headers="d18510e88" data-title="Input"><span class="keyword parmname">operation</span></td>

              <td class="entry" headers="d18510e91" data-title="Type">string</td>

              <td class="entry" headers="d18510e94" data-title="Description">Operation for mass update. <p class="p">Valid values are:</p>
                <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">Increase By</samp></li>

                  <li class="li"><samp class="codeph nolang">Decrease By</samp></li>

                  <li class="li"><samp class="codeph nolang">Replace With</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d18510e88" data-title="Input"><span class="keyword parmname">numericvalue</span></td>

              <td class="entry" headers="d18510e91" data-title="Type">double</td>

              <td class="entry" headers="d18510e94" data-title="Description">Numeric value to use in the operation for mass update. Can be any number up to 15
                digits.</td>

            </tr>

            <tr>
              <td class="entry" headers="d18510e88" data-title="Input"><span class="keyword parmname">numericValueType</span></td>

              <td class="entry" headers="d18510e91" data-title="Type">string</td>

              <td class="entry" headers="d18510e94" data-title="Description">Type of operation for mass update. <p class="p">Valid values are:</p>
                <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">percentage</samp></li>

                  <li class="li"><samp class="codeph nolang">absolute</samp></li>

                </ul>
              </td>

            </tr>

          </tbody>

        </table>

## 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"
    }
  \]
}