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

2021-03-17 02:26

阅读:624

标签: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 list2 = new List();
        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


评论


亲,登录后才可以留言!