Getting the task status and assignee in the workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 08:26 AM
Hello,
do you have any idea how to get the task status and assignee in the workflow?
I tried with this code in the task block in workflow (sc_task):
It doesn't work 😞
I know it's so easy to do in BR, but I cannot use it and have to stick to workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 08:38 AM
Hi @MysUser ,
Check this thread.
https://www.servicenow.com/community/developer-forum/workflow-scratchpad/m-p/1837158
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2024 09:50 AM
If this is a Catalog Task activity on a (legacy) workflow, 'current' refers to the field on the RITM record. If you are assigning the task to a user via the Assigned to field in the same Catalog Task activity, you should be able to use:
workflow.scratchpad.assignee = task.assigned_to;