You are here:
Invoke the Place Sales Transaction API in a Flow
Invoke the Place Sales Transaction (PST) API to create, update, and delete quotes and orders and price their related products and services. Before you can invoke the action, create and set the values of an Apex-defined variable to use as the graph input for the action. You can use the other inputs to configure how Salesforce prices and validates the quote or order. The action returns the ID of the sales transaction as well as status information.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions of Revenue Cloud where Transaction Management is enabled |
In Flow Builder, add an Action element to your flow. Select the Revenue Cloud category, and search for Invoke Place Sales Transaction API.
Set Input Values
| Input Parameter | Description |
|---|---|
| Catalog Rates Preferences | Specify how Agentforce Revenue Management prices a quote or order during processing. For example, if you add a quote line item to a quote, it’s possible that you don’t want to price the quote yet. Possible values are:
The default value is |
| Configuration Method | Specify when Agentforce Revenue Management fetches rate card entries for quote line items with usage-based pricing during the quote creation process. Possible values are:
The default value is |
| Configuration Options | Specify the rules that Salesforce follows to validate a quote or order. These options are expressed as booleans. To specify Revenue Cloud to perform an action, set the value for the option to true. You can specify true for multiple options. Options include:
The default value for all options is
|
| Context Detail | Specify a string that contains the context ID so you can reuse the session context in a subsequent Place Sales Transaction API operation. |
| Graph | This input is an Apex-defined variable of class RevSalesTrxn_RecordReference. It has two fields.
The value of the
|
Store Output Values
| Output Parameter | Description |
|---|---|
| Context Detail | An alphanumeric string that identifies the context. |
| Sales Transaction ID | The ID of the quote or order in this transaction. |
| Status URL | A link to the AsyncOperationTracker table that shows the status of your request. To return the status of that action, append an action’s Tracker ID to the URL. |
| Tracker ID | An alphanumeric string that identifies the specific action. To return the action’s status, append this ID to the Status URL. |
Usage
To set up the Place Sales Transaction API input:
- Use an Assignment element to set the field values of the
TransactionNameRecordMapWrapper,OppNameRecordMapWrapper, andPricebookNameRecordMapWrapperof RevSalesTrxn_RecordMapWrapper class variables. - If you want to include configuration options, create the options as new Boolean variables.

