Get Product Records By Product IDs Action

Fetch a list of product records based on a provided list of product IDs.

This action is available in API version 68.0 and later.

Special Access Rules 

To access this action, ensure that you have the Media Cloud Base user permission set enabled.

Supported REST HTTP Methods 

URI: /services/data/v68.0/actions/standard/getProdtRecByProdtIds

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a variable.

Inputs 

InputTypeDescription
productIdsstring array[]Required.
The collection of IDs of the product records to be fetched.

Outputs 

OutputTypeDescription
productListApex[]The list of product records that are fetched for the provided IDs.
isSuccessbooleanIndicates whether the process to fetch product records was executed.
errorCodestringThe code of the error if the action fails.
errorMessagestringThe error message if the action fails.

Example 

POST

This sample request is for the Get Product Records By Product IDs action.

1{
2  "inputs": [
3    {
4      "productIds": [
5        "01txx0000004CjrAAE",
6        "01txx0000004CjsAAE"
7      ]
8    }
9  ]
10}

This sample response is for the Get Product Records By Product IDs action.

1[
2  {
3    "actionName": "getProdtRecByProdtIds",
4    "errors": null,
5    "invocationId": null,
6    "isSuccess": true,
7    "outputValues": {
8      "productList": [
9        {
10          "Id": "01txx0000004CjrAAE",
11          "Name": "Prime Time Video Package"
12        }
13      ],
14      "isSuccess": true,
15      "errorCode": null,
16      "errorMessage": null
17    },
18    "sortOrder": -1,
19    "version": 1
20  }
21]