开发者社区> 问答> 正文

dingtalk.smartwork.bpms.processinstance.list获取审批实例列表

偶是菜鸟 2017-12-29 17:35:43 3107


dingtalk.smartwork.bpms.processinstance.list (获取审批实例列表)


按照说明后修改代码如下:

            //获取菜单审批信息
            IDingTalkClient client = new DefaultDingTalkClient("https://eco.taobao.com/router/rest");
            SmartworkBpmsProcessinstanceListRequest req = new SmartworkBpmsProcessinstanceListRequest();
            req.ProcessCode = "76648092"; //菜单ID            
            req.StartTime = ConvertDataTimeToLong(DateTime.Parse("2017-10-01"));
            req.EndTime = ConvertDataTimeToLong(DateTime.Parse("2017-12-10"));
            req.Size = 8;
            req.Cursor = 0;
            //req.UseridList = "manager1,manager2";
            SmartworkBpmsProcessinstanceListResponse rsp = client.Execute(req, access_token);
            
            Console.WriteLine(rsp.Body);
            Console.WriteLine("***************************************");
返回的结果如下:

<?xml version="1.0" encoding="utf-8" ?><dingtalk_smartwork_bpms_processinstance_list_response>
    <result>    <ding_open_errcode>0</ding_open_errcode>
        <result></result>    <success>true</success>
    </result>    <request_id>rx6bf21rubvf</request_id>
</dingtalk_smartwork_bpms_processinstance_list_response><!--top011186096016.eu13-->
谁能告诉我什么原因,菜鸟啊,不懂,不懂,谢谢啦!







XML 数据格式
分享到
取消 提交回答
全部回答(3)
  • suiusoar
    2018-02-06 14:02:21
    Redingtalk.smartwork.bpms.processinstance.list获取审批实例列表
    钉钉“审批”功能中怎样实现类似流程中的“加签”功能?
    0 0
  • nic活着
    2018-01-18 15:13:58
    Redingtalk.smartwork.bpms.processinstance.list获取审批实例列表
    DefaultDingTalkClient
    SmartworkBpmsProcessinstanceCreateRequest
    FormComponentValueVo

    请问这几个类从哪个包引用的?
    0 0
  • 偶是菜鸟
    2017-12-30 09:07:39
    Redingtalk.smartwork.bpms.processinstance.list获取审批实例列表
    原因找到了,原来是传入参数菜单ID不对,写对后可以正常获取数据
    0 0
添加回答
+ 订阅

大数据计算实践乐园,近距离学习前沿技术

推荐文章
相似问题
推荐课程