Variables section in Catalog task is not showing up. These tasks are created through run script in the Workflow. Any insights on this Please advise anyone.

Chaithra Srini1
Mega Expert

Hi everyone,

I am working on one requirement where I had to create some of the catalog tasks using run script in the Workflow. But, variables section is being missed from all of those tasks. We usually set variables to be displayed in the task form through workflow. But, in this case, how to display the variables section within the task form of the Request item. Please provide your insights if anybody know info on this. 

Thanks in advance.

Regards,

Chaithra

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

(Out-of-the-box) When doing this manually, you would usually on a Catalog Task step, add variables from the left to the right column. The relation behind this is actually stored in table: sc_item_variables_task.

So if wanting to create variables scripted. And having them displayed also on the Catalog Task... you also need to script the relation to table sc_item_variables_task.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

5 REPLIES 5

Mark Roethof
Tera Patron
Tera Patron

Hi there,

(Out-of-the-box) When doing this manually, you would usually on a Catalog Task step, add variables from the left to the right column. The relation behind this is actually stored in table: sc_item_variables_task.

So if wanting to create variables scripted. And having them displayed also on the Catalog Task... you also need to script the relation to table sc_item_variables_task.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

Thank you. I will try this and let you know the results.

Regards,

Chaithra

Nitin_NOW
Tera Guru

Hello 

As you are working on the workflow, I would recommend to use Catalog Task activity, which is a OOTB feature instead of a Run Script. 

Please hit correct based on impact of response.

Nitin

Chaithra Srini1
Mega Expert

Hi Mark and Nitin,

My issue has been resolved. I followed community post as below. I am giving link here, so anyone who is in need can refer this. 

https://community.servicenow.com/community?id=community_question&sys_id=0280cfe1db98dbc01dcaf3231f96...   

This is what exactly I was looking for. Thanks a lot for your help and insights. 

Regards,

Chaithra