dingtalk.oapi.process.form.condition.list (查询已设置为条件的表单组件)

查询已设置为条件的表单组件

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
request QureyProcessRequest 可选 请求
  • └ agentid
  • Number
  • 可选
  • 11
  • 应用id
  • └ process_code
  • String
  • 必须
  • PROC
  • 审批模板id

响应参数

名称 类型 示例值 描述
errmsg String 成功 成功
errcode Number 0 0
list SimpleFormComponentVo [] 表单列表
  • └ id
  • String
  • TextField
  • 表单id
  • └ label
  • String
  • 输入框
  • 表单名称

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/process/form/condition/list");
OapiProcessFormConditionListRequest req = new OapiProcessFormConditionListRequest();
QureyProcessRequest obj1 = new QureyProcessRequest();
obj1.setAgentid(11L);
obj1.setProcessCode("PROC");
req.setRequest(obj1);
OapiProcessFormConditionListResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "errmsg":"成功",
    "errcode":0,
    "list":[
        {
                "id":"TextField",
                "label":"输入框"
        }
    ]
}

异常示例

  • JSON示例
{
	"errcode":88,
	"errmsg":"ding talk error"
}

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部