钉钉发起审批实例的指定人和抄送人

IDingTalkClient client = new DefaultDingTalkClient(“https://eco.taobao.com/router/rest”);
SmartworkBpmsProcessinstanceCreateRequest req = new SmartworkBpmsProcessinstanceCreateRequest();
req.AgentId = DingConfig.DingAgentID.ToLong();
req.ProcessCode = RegersterProjectProcessCode;
req.OriginatorUserId = Ext.CurrentUserID();
req.DeptId = project.DeptID.ToLong();
req.Approvers = “026326422336029594”;
req.CcList = “026326422336029594”;

req.CcPosition = “START”;
List list2 = new List();
SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain obj3 = new SmartworkBpmsProcessinstanceCreateRequest.FormComponentValueVoDomain();
list2.Add(obj3);
obj3.Name = “项目名称”;
obj3.Value = project.ProjectName;
req.FormComponentValues_ = list2;
SmartworkBpmsProcessinstanceCreateResponse rsp = client.Execute(req, _dingService.Corp_Access_token);
return rsp;

审批流在设置下一道审批人是有系统指定审批人,还有是自选必选审批人,如果是第一种,那么审批人可以为空,如果是第二种,必须要填写审批人

你可能感兴趣的:(钉钉)