BatchUpdateDocsList(obsolete)

4.6开始废弃,推荐使用UpdateDocument代替

接口功能

更新指定 Form的文档,可以同时触发 workflow

请求参数
参数 类型 说明
DocIds List<String>
FieldsValue Dictionary <String, String> 要更新的字段或者执行的workflow步骤需要的参数添加在FieldsValue中
ActionCode String workflow步骤对应的action code
EntityName String 指定 Form , Form别名, Form的标识
StaffId String 操作用户ID
StaffName String 操作用户Name
CurrentUserRole List<String> User类型的参数值是数组类型
ActionMessage String workflow 操作说明
UpdateWorkFlowArgs Boolean 传 false
Items List<BatchUpdateDocsModel> 单一的常规更新需执行上述所有步骤,批量则直接使用BatchUpdateDocsModel
返回数据类型
new {
    entityName = "",
    dataId = "",
    result = "1",
    msg = "Process successed"
}

其中result为1时成功,其他值失败

输入示例
{
    "DocIds": null,
    "FieldsValue": null,
    "ActionCode": null,
    "EntityName": null,
    "StaffId": null,
    "StaffName": null,
    "CurrentUserRole": null,
    "ActionMessage": null,
    "UpdateWorkflowArgs": false,
    "Items": [
    {
        "Token": "",
        "DocIds": [
            "44a4027944be4860a18ca9f13d4ddf44",
            "b7a4027944be4860a18ca9f13d4ddf53"
        ],
        "FieldsValue": {"textbx_address":"Some Address 2" },
        "ActionCode": "",
        "EntityName": "sdkwebapi",
        "StaffId": "d515f318-40a4-481f-8afb-d4fd5ed3f1a2",
        "StaffName": "Will",
        "CurrentUserRole": [

        ],
        "ActionMessage": "",
        "UpdateWorkflowArgs": false,
        "Items": null
    }]
}
返回示例
{
    "StatusCode": 200,
    "Info": "Request (or process) succeeded",
    "Data": [
        {
            "EntityName": "DemoFormAlias1",
            "dataId": "7d5b134b-3b89-413f-ad4e-86d21f98a62e",
            "result": "1",
            "msg": "Process successed"
        },
        {
            "EntityName": "DemoFormAlias2",
            "dataId": "j38s29ds-23r2-g564-e3e2-89fui398dj30",
            "result": "1",
            "msg": "Process successed"
        }
    ]
}
© Digital Maker Product Team all right reserved,powered by Gitbook该文件修订时间: 2023-02-02 10:40:12

results matching ""

    No results matching ""