We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

AssignedTo Catalog task Variables not popping up on workflow script

Shree Nag
Tera Expert

Hello,

I have  catalog item variables, manager and assignment group, that a user inputs on a catalog item form.

In the workflow I need to assign it to catalog task in catalog task activity advanced script.

 

I'm able to get assignment group information but not able to find "assignedto" on catalog task variable in thw workflow.

 

Please help me understand how to get the catalog item variable Manager to get to catalog task variable "AssignedTo".

task.assignedto is not popping up. I have added all variables to Add variables section of the workflow.

I have attached screenshots of the catalog task created and workflow script.

 

In short:

 

task.assignment_group = current.variables.assignment_group; // This works

task.assignedto= current.variables.manager; // this does not work.

 

Any pointers appreciared.

 

-Thanks

 

1 ACCEPTED SOLUTION

VishalC3
Tera Expert

HI @Shree Nag ,

 

I think issue is essentially in format. correct below line : 

 

task.assignedto= current.variables.manager; to

 

task.assigned_to = current.variables.manager;

 

Please let me know if this works.

 

Thanks,

Vishal

View solution in original post

2 REPLIES 2

VishalC3
Tera Expert

HI @Shree Nag ,

 

I think issue is essentially in format. correct below line : 

 

task.assignedto= current.variables.manager; to

 

task.assigned_to = current.variables.manager;

 

Please let me know if this works.

 

Thanks,

Vishal

Shree Nag
Tera Expert

Ahh! Thank Got !