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.

2 REPLIES 2

Tanushree Maiti
Mega 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 mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

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