We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Catalog Variables Not Visible on SCTASK

zee15
Tera Contributor

Hi,

I am facing an issue with displaying catalog variables from the RITM on the corresponding SCTASK.
Currently, we have a common Flow Designer flow that is attached to multiple catalog items. Each catalog item has its own set of variables. When a user submits a request, all variables are displayed correctly on the RITM.

 

However, when the SCTASK is created via Flow Designer, those variables are not visible on the task.
I am aware that there is an option to apply a template in the “Create Catalog Task” action. However, this field allows only a single template to be selected. Since this flow is associated with nearly 300 catalog items, each with different variables, it is not feasible to manage all of them using a single template.

zee15_0-1778744440075.png

 


Could someone please suggest if there is a way to dynamically display or pass the catalog variables to the SCTASK in this scenario? If yes, how can I achieve this?
Thanks in advance.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@zee15 

I don't think possible to handle this using Flow

Instead use script in flow action and then include that in your flow, linkage happens in this table "sc_item_variables_task"

Your flow action will accept RITM sysId so that it knows which catalog item variables to pick

check this link on how to link variables to sc_task

Adding Variables to a Task via a script instead of using the slush bucket within a workflow for a Ca... 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Tanushree Maiti
Tera Patron

Hi @zee15 

Is your variable editor already added in SC_TASK.

Have you used Catalog UI Policies, Catalog Client Scripts for your catalog item . If yes, make sure it  applies to Target record - likewise Applies to Catalog item, Applies to Catalog Task checkboxes are checked or not.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0777766 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Ankur Bawiskar
Tera Patron

@zee15 

I don't think possible to handle this using Flow

Instead use script in flow action and then include that in your flow, linkage happens in this table "sc_item_variables_task"

Your flow action will accept RITM sysId so that it knows which catalog item variables to pick

check this link on how to link variables to sc_task

Adding Variables to a Task via a script instead of using the slush bucket within a workflow for a Ca... 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader