开发者社区> 问答> 正文

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



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-->
谁能告诉我什么原因,菜鸟啊,不懂,不懂,谢谢啦!







展开
收起
偶是菜鸟 2017-12-29 17:35:43 6606 0
3 条回答
写回答
取消 提交回答
  • Redingtalk.smartwork.bpms.processinstance.list获取审批实例列表
    钉钉“审批”功能中怎样实现类似流程中的“加签”功能?
    2018-02-06 14:02:21
    赞同 展开评论 打赏
  • Redingtalk.smartwork.bpms.processinstance.list获取审批实例列表
    DefaultDingTalkClient
    SmartworkBpmsProcessinstanceCreateRequest
    FormComponentValueVo

    请问这几个类从哪个包引用的?
    2018-01-18 15:13:58
    赞同 展开评论 打赏
  • Redingtalk.smartwork.bpms.processinstance.list获取审批实例列表
    原因找到了,原来是传入参数菜单ID不对,写对后可以正常获取数据
    2017-12-30 09:07:39
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载