本地企业发起审批实例
IDingTalkClient client = new DefaultDingTalkClient("https://eco.taobao.com/router/rest", "json");
SmartworkBpmsProcessinstanceCreateRequest req = new SmartworkBpmsProcessinstanceCreateRequest();
req.AgentId = 109488990;
req.ProcessCode = "PROC-019090AE-CFB8-46A5-A3A2-BED623D12920";
req.OriginatorUserId = "1001";
req.DeptId = 42489569;
req.Approvers = "manager5593";
req.CcList = "manager5593";
req.CcPosition = "START";
List<SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain> list2 = new List<SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain>();
SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain obj3 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain();
SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain obj4 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain();
SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain obj5 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain();
obj3.Name = "请假类型";
obj3.Value = "婚假";
obj3.ExtValue = "总天数:3";
obj4.Name = "开始时间:";
obj4.Value = "2017-07-01 01:33:27";
obj5.Name = "结束时间:";
obj5.Value = "2017-07-04 01:33:27";
req.FormComponentValues_ = list2;
list2.Add(obj3);
list2.Add(obj4);
list2.Add(obj5);
req.FormComponentValues_ = new List<SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain>();
req.FormComponentValues_ = list2;
SmartworkBpmsProcessinstanceCreateResponse rsp = client.Execute(req, token);
Console.WriteLine(rsp.Body);
添加到钉钉上去的审批实例 并没有我提交的表单信息。
-------------------------
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。