Sales Transaction Bulk Operation Input

Input representation of the details of a request to perform bulk operations for specified quote line items or order products.

JSON Example 

This sample request deletes the quote line item that’s specified in the graph property.

1{
2  "pricingPref": "System",
3  "graph": {
4    "graphId": "updateQuote",
5    "records": [
6      {
7        "referenceId": "refQuote",
8        "record": {
9          "attributes": {
10            "method": "PATCH",
11            "type": "Quote",
12            "id": "801xx000003GZ9bAAG"
13          }
14        }
15      }
16    ]
17  },
18  "bulkOperations": [
19    {
20      "method": "Delete",
21      "targetEntity": "QuoteLineItem"
22    }
23  ]
24}

This sample request modifies the discount for all lines in a quote line group. Additionally, this request modifies the margin for all lines in another quote line group. The details of quote line groups are specified by using filter conditions.

1{
2  "pricingPref": "System",
3  "graph": {
4    "graphId": "updateQuote",
5    "records": [
6      {
7        "referenceId": "refQuote",
8        "record": {
9          "attributes": {
10            "method": "PATCH",
11            "type": "Quote",
12            "id": "0Q0SG000000Awlt0AC"
13          }
14        }
15      }
16    ]
17  },
18  "bulkOperations": [
19    {
20      "method": "Patch",
21      "targetEntity": "QuoteLineItem",
22      "targetFields": {
23        "Discount": "50"
24      },
25      "filters": [
26        {
27          "field": "QuoteLineGroup",
28          "operator": "eq",
29          "value": [
30            "1C9SG0000000IrO0AU"
31          ],
32          "index": "1"
33        }
34      ],
35      "condition": "1"
36    },
37    {
38      "method": "Patch",
39      "targetEntity": "QuoteLineItem",
40      "targetFields": {
41        "Margin": "20"
42      },
43      "filters": [
44        {
45          "field": "QuoteLineGroup",
46          "operator": "eq",
47          "value": [
48            "1C9SG0000000IrO0AP"
49          ],
50          "index": "1"
51        }
52      ],
53      "condition": "1"
54    }
55  ]
56}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
conditionStringNumber that’s assigned to a filter condition for sequential processing of filters.Optional65.0
filtersSales Transaction Bulk Operation Filter[]Details of the filter conditions.Optional65.0
methodStringAction that you want to perform on the specified object. Valid values are:
  • Delete
  • Patch
Optional65.0
targetEntityStringYou can perform bulk operations on these target objects:
  • QuoteLineItem
  • QuoteLineGroup
  • OrderItem
  • OrderItemGroup
Optional65.0
targetFieldsMap<String, Object>Fields of the specified target object on which you want to perform the operation.Optional65.0