开发者社区> 问答> 正文

钉钉审批流接入问题

本地企业发起审批实例

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);


添加到钉钉上去的审批实例  并没有我提交的表单信息。

展开
收起
li399268107 2017-07-03 16:04:31 7354 0
3 条回答
写回答
取消 提交回答
  • Re钉钉审批流接入问题
    兄得,为什么我两个输入框,发起审批流程就一个值获取到
    2017-10-25 17:48:42
    赞同 展开评论 打赏
  • Re钉钉审批流接入问题
    兄弟现在解决了么
    2017-07-26 22:48:48
    赞同 展开评论 打赏
  • Re钉钉审批流接入问题

    -------------------------

    Re钉钉审批流接入问题
    这是我钉钉上提交的审批实例

    -------------------------

    Re钉钉审批流接入问题
    这是为什么?
    2017-07-03 16:05:37
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
钉钉小程序——为工作方式插上翅膀 立即下载
钉钉客户端自动化的应用 立即下载
使命必达 —— 钉钉企业级 消息服务的机遇与挑战 立即下载