码迷,mamicode.com
首页 > Windows程序 > 详细

钉钉二次开发c#发起审批

时间:2020-03-04 14:49:16      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:oba   over   add   nat   user   bsp   for   技术   年龄   

原文:钉钉二次开发c#发起审批

技术图片
  string token = _t.GetTokens();


        
        IDingTalkClient client = new DefaultDingTalkClient("https://eco.taobao.com/router/rest");
        SmartworkBpmsProcessinstanceCreateRequest req = new SmartworkBpmsProcessinstanceCreateRequest();
        req.AgentId = ;
        req.ProcessCode = "";
        req.OriginatorUserId = "";
        req.DeptId = ;
        req.Approvers = "";


        List<SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain> list2 = new List<SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain>();
        SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain obj3 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain();
        

        obj3.Name = "名称";
        obj3.Value = "吃饭";

        list2.Add(obj3);

        SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain obj4 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain();
        

        obj4.Name = "年龄";
        obj4.Value = "18";

        list2.Add(obj4);

        SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain obj5 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain();

        list2.Add(obj5);
        obj5.Name = "性别";
        obj5.Value = "";
        


        req.FormComponentValues_ = list2;


        SmartworkBpmsProcessinstanceCreateResponse rsp = client.Execute(req, token);
        return rsp.Result.ProcessInstanceId;
技术图片

 

钉钉二次开发c#发起审批

标签:oba   over   add   nat   user   bsp   for   技术   年龄   

原文地址:https://www.cnblogs.com/lonelyxmas/p/12408976.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!