Stock Rotation Execution Input

Input representation for performing an action on a stock rotation execution.

JSON Example 

1{
2  "actionType": "GenerateClaim",
3  "stockRotationExecutionId": "1Ft1234567890abcdef",
4  "sourceObjectIds": [
5    "obj-1",
6    "obj-2",
7    "obj-3"
8  ],
9  "filterCriteria": {
10    "fieldCriteria": [
11      {
12        "fieldApiName": "AccepedQuantity",
13        "operator": "GreaterThan",
14        "filterValues": [
15          "100"
16        ]
17      },
18      {
19        "fieldApiName": "Status",
20        "operator": "In",
21        "filterValues": [
22          "ReadyForClaim"
23        ]
24      }
25    ]
26  }
27}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
actionTypeStringThe action to perform on the stock rotation execution. Valid values are:
  • GenerateClaim — Generate claims for scrapped items and returns.
  • CalculateClaimAmount — Calculate the claim amount for the stock rotation line items that are filtered.
Required66.0
filterCriteriaStock Rotation Filter Criteria InputThe filter criteria for selecting stock rotation line items.Optional. Either sourceObjectIds or filterCriteria must be provided.66.0
sourceObjectIdsString[]The IDs of stock rotation line items to include in the action.Optional. Either sourceObjectIds or filterCriteria must be provided.66.0
stockRotationExecutionIdStringThe ID of the stock rotation execution to run the action on.Required.66.0