Use this flow to get a list of offers that are eligible for an asset based on specified inputs. This flow invokes Get Offers for Asset invocable actions to retrieve available upgrade or replacement offers for an existing asset in a cart, quote, or an order. For example, a sales rep can use this flow to replace one offer at a time on a broadband plan. This flow retrieves a list of offers for a customer who wants to know all the offers available to replace.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
Industries CPQ API Used to Invoke Get Offers for Asset Flow
- getCartsTargetOffers - Identify offers available for the specified assets.
- assetToOrder - Converts an existing asset data into an order for processing.
- assetToQuote - Converts an existing asset data into a quote for processing.
Input Values
| Parameter | description | data type |
|---|---|---|
| cartId | Optional. The ID of the quote, order, or opportunity record to associate with the cart. | String |
| objectType | Optional. The type of object to create offers for. The valid values are Quote or Order. | String |
| accountId | Optional. The ID of the account record associated with the quote or order. | String |
| assetIds | Optional. The list of asset IDs to evaluate the offers, separated by commas. | String |
| isDisconnectFlow | A Boolean value that indicates whether to execute a flow to replace an offer or delete an order line item. If the value is false, the existing offer in the cart is upgraded or replaced. If the value is true, the order line item is deleted. The default value is false. | Boolean |
| OpportunityId | Optional. The ID of the opportunity associated with the quote. | String |
| requestDateTime | Optional. The date and time when the request was placed to retrieve offers for the order in GMT format. | String |
| fields | Optional. The list of fields to retrieve, separated by commas. | String |
| noFilteredResponse | Optional. A Boolean value that indicates whether to provide the response without filtering. The default value is false. | String |
Output Values
| Parameter | description | data type |
|---|---|---|
| cartId | The ID of the created or referenced cart for which offers were retrieved. | String |
| offers | A JSON string that includes the details of the offers retrieved for the cart. | List of String |
| error | An error that was encountered during action execution. | String |
Example
JSON Request
accountId = (001Dn00001HfcZyIAJ)
assetIds = (02iDn000008r1GpIAI)
isDisconnectFlow = (false)
JSON Response Body
offers ([{"hasChildren":false,"ProductCode":{"value":"VPL_iPhone12"},"IsActive":{"value":true},"Id":{"value":"01uDn000001Af70IAC","label":"Price Book Entry ID"},"defaultQuantity":1.0,"UnitPrice":{"value":"980","label":"List Price"},"Product2":{"Description":"Splash, Water, and Dust Resistant 3 Rated IP68 (maximum depth of 6 meters up to 30 minutes) under IEC standard 60529.\r\nChip. A14 Bionic chip.\r\nCamera. Dual 12MP camera system: Ultra Wide and Wide cameras.\r\nVideo Recording. HDR video recording with Dolby Vision up to 30 fps.\r\nTrueDepth Camera.\r\nFace ID.\r\nApple Pay. \r\nApple Card.","Name":"iPhone 12","Id":"01tDn000000YJOZIA4"}}])
cartId (801Dn000000vRO7IAM)
error (null)