如何获取在SharePoint Designer 2013中启动任务过程的任务ID [英] How to Get Task ID of Start a Task Process in SharePoint Designer 2013

查看:115
本文介绍了如何获取在SharePoint Designer 2013中启动任务过程的任务ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个工作流,在该工作流中,我需要获取批准团队的意见,并在一封电子邮件中显示这些意见,然后将其发送给发起人.

I am developing a workflow in which i need to get the comments of a approval team and show them in an email which will be send to the initiator.

我知道当我们使用分配任务过程"时如何获取评论.因为它返回TaskID,并且我们通过将该TaskID与Task List GUID进行比较来使用该TaskID来获取评论.但是,当我们使用启动任务流程"并将其设置为等待"时, 对于第一个响应",它没有任务ID.我可以理解,开始任务过程"是针对多个人的,因此在单独分配任务时返回多个id是不合逻辑的,但是还有其他方法.

I know how to get comments when we use "Assign a Task Process" because it returns the TaskID and we use that TaskID for getting the comments by comparing it with Task List GUID. But when we use a Start a Task Process and i set it to "Wait for the first response", it doesn't have the task id with it. I can under stand that "Start a task process" is for multiple people so its illogical to return the multiple ids as tasks are assigned individually but is there any other way around.

我只需要从任务列表中获得第一次批准者的评论.

I need to get the comments of first approver only from task list. 

预先感谢

BR

阿卜杜勒·曼南·纳西尔(Abdul Mannan Nasir)

推荐答案

阿卜杜勒

如您所知,当您使用启动任务过程"时,任务ID没有变量,这是设计使然.

As you know, when you use "Start a task process", there is no variable for Task ID, it is by design.

作为一种解决方法,我建议您在工作区中使用并行块,并在其中添加一些分配任务".操作插入到该块中,然后这些操作将并行运行,并且每个操作都有任务ID.

As a workaround, I suggest you use a Parallel Block in your worfklow, and insert some "Assign a task" actions into the block, then these actions will be run in parallel and each action has Task ID.

谢谢

温迪


这篇关于如何获取在SharePoint Designer 2013中启动任务过程的任务ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆