You are here:
InsQuoteService:getProductSpecs
Use this service in an OmniScript to get a list of specific product specs used in a quote, at the Quote Line Item level, and which includes product information.
This is helpful in large group quoting when you want to retrieve the unique products in a quote with multiple root products and multiple instances of the same root product.
Method: getProductSpecs
How It Works
-
The service takes a
quoteIdand finds the quote. -
Returns a JSON that includes these values:
-
productId -
productName -
ProductCode -
Type -
Subtype
-
Output JSON
The service returns a list of unique product specs and product information in the output JSON (example below).
These fields can be changed in the output JSON by modifying the
GetProductSpec fieldSet on the Product2 object. Note that these
fields will always be returned, even if they are removed from the
fieldSet.
{
"totalSize": 2,
"records": [
{
"displaySequence": -1,
"productId": "01tf4000003GucXAAS",
"productName": "Large Group PMI Advance",
"ProductCode": "LGPA",
"Type": "Medical",
"SubType": "PPO"
},
{
"displaySequence": -1,
"productId": "01tf4000003GucDAAS",
"productName": "Customizable Benefit Plan - PPO2",
"ProductCode": "ANTM CPD PPO2",
"Type": "Medical",
"SubType": "PPO"
}
]
}

