The CreatorCon Call for Content is officially open! Get started here.

Getting the task status and assignee in the workflow

MysUser
Tera Contributor

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

workflow.scratchpad.assignee = current.assigned_to;

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.

2 REPLIES 2

Runjay Patel
Giga Sage

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

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

Brad Bowman
Kilo Patron
Kilo Patron

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;