Sugarcrm支持产品指南糖开发人员糖开发人员指南10.3一体化网页服务休息API.终点/<module>/customfield POST
此版本仅适用于Sugarcloud客户。

/<module>/customfield POST

概述

为指定模块3d彩吧论坛一个新的自定义字段。

概括

此端点用于为指定模块3d彩吧论坛新的自定义字段。

请求论据

名称 类型 描述 必需的
数据 大批 字段元数据。 真的

请求例子

此示例将3d彩吧论坛一个十进制类型自定义字段:

{
    "localizations": {
      "en_us": {
          "LBL_AI_SCORE": "Ai Score"
      },
      ...
    },
    "数据":{
      "name":"ai_score",
      "label":"LBL_AI_SCORE",
      "type":"decimal",
      "len":"18",
      "precision":8,
      "required":false,
      "reportable":false,
      "audited":false,
      "importable":false,
      "duplicate_merge":false
    }
}

此示例将3d彩吧论坛一个TextField类型自定义字段:

{
    "localizations": {
      "en_us": {
          "LBL_AI_SCORE_DESC": "Ai Score Description"
      },
      ...
    },
    "数据":{
      "name":"ai_score_desc",
      "label":"LBL_AI_SCORE_DESC",
      "type":"varchar",
      "help":"Text Field Help Text",
      "comments":"Text Field Comment Text",
      "default_value":"",
      "len":255,
      "required":false,
      "reportable":true,
      "audited":false,
      "importable":"true",
      "duplicate_merge":false
    }
}

此示例将3d彩吧论坛一个具有新下拉列表的枚举类型自定义字段:

{
    "localizations": {
      "en_us": {
          "LBL_DROPDOWN_FIELD": "New Dropdown Field",
          "LBL_DD_ITEM_ONE": "First Text",
          "LBL_DD_ITEM_TWO": "Second Text",
          "LBL_DD_ITEM_THREE": "Third Text"
      },
      ...
    },
    "数据": {
      "name":"new_dropdown_field",
      "label":"LBL_DROPDOWN_FIELD",
      "type":"enum",
      "options": {
        "dropdownName": "a_new_dropdown",
        "dropdownList": [
          {"value":"First", "label":"LBL_DD_ITEM_ONE"},
          {"value":"Second", "label":"LBL_DD_ITEM_TWO"},
          {"value":"Third", "label":"LBL_DD_ITEM_THREE"}
        ]
      },
      "default_value":"First"
    }
}

此示例将使用现有的下拉列表3d彩吧论坛枚举类型自定义字段:

{
    "localizations": {
      "en_us": {
          "LBL_DROPDOWN_FIELD": "New Dropdown Field"
      },
      ...
    },
    "数据": {
      "name":"new_dropdown_field",
      "label":"LBL_DROPDOWN_FIELD",
      "type":"enum",
      "options": "account_type_dom",
      "default_value":"Analyst"
    }
}

回复

{
    "duplicate_merge_dom_value": 0,
    "required": false,
    "source": "custom_fields",
    "name": "ai_score_c",
    "vname": "LBL_AI_SCORE",
    "type": "decimal",
    "massupdate": false,
    "hidemassupdate": false,
    "no_default": false,
    "comments": "",
    "help": "",
    "importable": "",
    "duplicate_merge": "disabled",
    "audited": false,
    "reportable": false,
    "unified_search": false,
    "merge_filter": "disabled",
    "pii": false,
    "calculated": false,
    "len": 18,
    "size": "20",
    "enable_range_search": false,
    "precision": "8",
    "id": "ca9653de-0976-11eb-a558-6c400895ea84",
    "custom_module": "Opportunities"
}

更改日志

版本 改变
v11.11 添加 /<module>/ customfield post端点。

最后修改:2021-01-29 18:44:57