Loading
保险
InsQuoteService:getQuoteVersions

InsQuoteService:getQuoteVersions

使用此服务根据业务机会 ID 检索报价的不同版本,然后根据报价字段集 QuoteCompareHeader 返回报价列表。

备注
备注

来宾用户不支持此服务。

如果来宾用户尝试运行使用此服务的 OmniScript 或集成程序或 UI 函数,服务将不会运行,来宾用户将看到错误消息。

类:InsQuoteService

方法:getQuoteVersions

工作原理

  1. 服务接收 quoteId 作为输入。

  2. 服务查询具有相同业务机会 ID 的其他报价。

  3. 该服务返回报价列表。

远程选项

选项

说明

quoteId

用于检索其他版本的报价 ID

activeQuotesOnly

可选

默认值是假。如果为真,则将其他条件添加到报价查询,以仅检索当前有效的报价(例如,报价的有效日期和结束日期之间的当前日期)。

includeFieldInfo

可选

默认为真。如果为真,包含 UI 使用的报价字段信息。

输入 JSON

请参阅以下输入 JSON 的示例。

{
  "quoteId":"0Q06g0000009YA3CAM"
}

输出 JSON

请参阅以下输出 JSON 示例。

{
  "fieldInfo": {
    "instest10__EndDate__c": {
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "DATE",
      "fieldLabel": "End Date",
      "fieldName": "instest10__EndDate__c"
    },
    "instest10__EffectiveDate__c": {
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "DATE",
      "fieldLabel": "Effective Date",
      "fieldName": "instest10__EffectiveDate__c"
    },
    "instest10__Type__c": {
      "options": [
        {
          "Id": "New Business",
          "Name": "New Business"
        },
        {
          "Id": "Endorsement",
          "Name": "Endorsement"
        }
      ],
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "PICKLIST",
      "fieldLabel": "Type",
      "fieldName": "instest10__Type__c"
    },
    "Name": {
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "STRING",
      "fieldLabel": "Quote Name",
      "fieldName": "Name"
    },
    "Id": {
      "isUpdateable": false,
      "isCreatable": false,
      "isRequired": false,
      "fieldType": "ID",
      "fieldLabel": "Quote ID",
      "fieldName": "Id"
    },
    "Status": {
      "options": [
        {
          "Id": "Draft",
          "Name": "Draft"
        },
        {
          "Id": "Needs Review",
          "Name": "Needs Review"
        },
        {
          "Id": "In Review",
          "Name": "In Review"
        },
        {
          "Id": "Approved",
          "Name": "Approved"
        },
        {
          "Id": "Rejected",
          "Name": "Rejected"
        },
        {
          "Id": "Presented",
          "Name": "Presented"
        },
        {
          "Id": "Accepted",
          "Name": "Accepted"
        },
        {
          "Id": "Denied",
          "Name": "Denied"
        },
        {
          "Id": "Issued",
          "Name": "Issued"
        }
      ],
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "fieldType": "PICKLIST",
      "fieldLabel": "Status",
      "fieldName": "Status"
    },
    "CreatedDate": {
      "isUpdateable": false,
      "isCreatable": false,
      "isRequired": false,
      "fieldType": "DATETIME",
      "fieldLabel": "Created Date",
      "fieldName": "CreatedDate"
    },
    "instest10__RootItemTotal__c": {
      "isUpdateable": false,
      "isCreatable": false,
      "isRequired": false,
      "fieldType": "CURRENCY",
      "fieldLabel": "Total Price",
      "fieldName": "instest10__RootItemTotal__c"
    }
  },
  "quotesToCompare": [
    {
      "attributes": {
        "type": "Quote",
        "url": "/services/data/v48.0/sobjects/Quote/0Q06g0000009yAWCAY"
      },
      "instest10__RootItemTotal__c": 2740,
      "CreatedDate": "2020-04-01T20:35:57.000+0000",
      "Status": "Draft",
      "Id": "0Q06g0000009yAWCAY",
      "Name": "Alan6 Auto Quote New Version",
      "instest10__Type__c": "New Business",
      "instest10__EffectiveDate__c": "2020-05-01",
      "instest10__EndDate__c": "2021-04-30"
    },
    {
      "attributes": {
        "type": "Quote",
        "url": "/services/data/v48.0/sobjects/Quote/0Q06g0000009yAHCAY"
      },
      "instest10__RootItemTotal__c": 1575,
      "CreatedDate": "2020-04-01T18:53:26.000+0000",
      "Status": "Issued",
      "Id": "0Q06g0000009yAHCAY",
      "Name": "Alan6 Auto Quote",
      "instest10__Type__c": "New Business",
      "instest10__EffectiveDate__c": "2020-04-01",
      "instest10__EndDate__c": "2021-03-31"
    }
  ],
  "errorCode": "INVOKE-200",
  "error": "OK"
}

结果描述

fieldInfo 报价中字段的相关信息

quotesToCompare 要比较的报价列表

 
正在加载
Salesforce Help | Article