Run Salesforce Pricing Action

Invoke the Pricing Connect API by providing the context, pricing procedure, and price waterfall details.

This action is available in API version 60.0 and later. You can use this action with Flows only. To use this action with an API tool such as Postman, see Run Salesforce Headless Pricing Action.

Special Access Rules 

The Run Salesforce Pricing action is available in Developer, Enterprise, and Unlimited Editions where Salesforce Pricing is enabled.

Supported REST HTTP Methods 

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

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

Inputs 

InputTypeDescription
contextInstanceIdstringRequired. ID of the context data that’s used to build the pricing procedure. Get the context instance ID by invoking the Context Service API. See Context Service (POST).
discoveryProcedurestringName of the discovery procedure that’s used to execute the discovery process of the pricing data.
effectiveDatestringDate when the pricing rules, as specified in the pricing procedure, are applied. The effectiveDate parameter determines which pricing procedure to execute when multiple active versions of pricing procedures are available with different date ranges.
isDeveloperNamebooleanIndicates whether the input value in a procedure must use the API name of the pricing (true) or the field name (false).
isSkipWaterfallbooleanIndicates whether the price waterfall data must be generated (true) or not (false).
pricingProcedureNamestringRequired. Name of the pricing procedure record that’s used to execute the pricing process.
skipDiscoverybooleanIndicates whether to skip executing the discovery procedure (true) or not (false).

Outputs 

OutputTypeDescription
executionIdstringID of the executed pricing data.

Example 

POST

This sample request is for the Run Salesforce Pricing action.

1{
2  "inputs": [
3    {
4      "contextInstanceId": "32f2c894-ba5e-41c0-91e4-2ab5826f579b",
5      "pricingProcedureName": "PricingAction",
6      "isSkipWaterfall": false,
7      "skipDiscovery": false,
8      "isDeveloperName": true,
9      "effectiveDate": "2023-11-16T12:20:00.000Z",
10      "discoveryProcedure": "ES1"
11    }
12  ]
13}

This sample response is for the Run Salesforce Pricing action.

1{
2  "actionName": "runSalesforcePricing",
3  "errors": null,
4  "isSuccess": true,
5  "outputValues": {
6    "executionId": "2QTurzG2NRQ5bgrjvvqyh"
7  },
8  "version": 1
9}