原创 如何获取氚云连接器信息及配置请求和写入方案

发布时间:
更新时间:
浏览次数:156
评论数:0

获取氚云连接器信息及配置指南

开发文档:氚云挂配器配置指南

建立连接器

  1. 登录氚云

  2. 获取授权信息

    • 在个人中心获取 EngineCodeSecret授权信息
  3. 输入连接器信息

    • Host 固定为 https://www.h3yun.com/OpenApi/Invoke 连接器信息

配置请求适配器

  1. 请求适配器路径

    \Adapter\ChuanYun\ChuanYunQueryAdapter
  2. 获取表单ID和字段key 表单ID 字段key

    • 注意:明细表的字段key格式为表key.字段key
  3. 请求调度者配置

    • API: LoadBizObjects
    • 请求方式:POST
    • 特殊注意事项:① 启用数据建模;② 过滤条件配置复杂。 请求调度者配置

    过滤条件示例:

    • ModifiedTime 大于等于上次同步时间:

      {
      "Type": "Item",
      "Name": "ModifiedTime",
      "Operator": 1,
      "Value": "{{LAST_SYNC_TIME|datetime}}"
      }
    • ModifiedTime 大于等于上次同步时间且 status 等于0且 F000018 等于否:

      {
      "Type": "And",
      "Matchers": [
       {
         "Type": "Item",
         "Name": "ModifiedTime",
         "Operator": 1,
         "Value": "{{LAST_SYNC_TIME|datetime}}"
       },
       {
         "Type": "Item",
         "Name": "Status",
         "Operator": 2,
         "Value": "0"
       },
       {
         "Type": "Item",
         "Name": "F000018",
         "Operator": 2,
         "Value": "否"
       }
      ]
      }

范例请求参数:

{
  "SchemaCode": "D2857040ec1eb366ceb47dfb7441cb8e1f9bc63",
  "BizObjectId": "e0c37dfc-d89d-4d32-878e-53605c679baa",
  "Filter": {
    "FromRowNum": "0",
    "RequireCount": true,
    "ReturnItems": [],
    "SortByCollection": [],
    "ToRowNum": "100",
    "Matcher": {
      "Type": "Item",
      "Name": "ModifiedTime",
      "Operator": 1,
      "Value": "2024-07-0911:00:24"
    }
  }
}

写入调度者配置

  1. 写入适配器路径

    \Adapter\ChuanYun\ChuanYunExecuteAdapter
  2. 写入调度者配置 写入调度者配置

  3. 写入参数示例

    {
     "SchemaCode": "D2857040ec1eb366ceb47dfb7441cb8e1f9bc63",
     "BizObject": {
       "CreatedBy": "8b424a5b-cf2a-4c13-8b62-052a7f4aa1a8",
       "OwnerId": "8b424a5b-cf2a-4c13-8b62-052a7f4aa1a8",
       "F0000002": "CGJM002685",
       "F0000001": "***",
       "F0000003": "***",
       "F0000006": "人民币",
       "F0000015": "892300",
       "D285704Fbdebecea94c34b2b80064ae8ac4a108e": [
         {
           "F0000009": "150800433",
           "F0000010": "StormLGRExtreme电控盒",
           "F0000011": "(空白)",
           "F0000016": "Pcs",
           "F0000012": "9.079646",
           "F0000017": "10.26",
           "F0000013": "2024-07-0900:00:00",
           "F0000014": "2100-01-0100:00:00",
           "F0000018": "TRUE",
           "F0000019": "130971"
         }
       ]
     },
     "IsSubmit": false
    }