您在此处:
InsQuoteService:getProductSpecs
在 OmniScript 中使用此服务,以在报价行项目级别获取报价中使用的特定产品规格列表,其中包含产品信息。
当您想要检索报价中具有多个根产品和同一根产品的多个实例的唯一产品时,这在大型组报价中非常有用。
方法:getProductSpecs
输出 JSON
该服务返回输出 JSON 中唯一产品规格和产品信息的列表(以下示例)。
通过修改 Product2 对象上的 GetProductSpec 字段集,可以在输出 JSON 中更改这些字段。请注意,这些字段将始终返回,即使它们已从 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"
}
]
}
