Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Want to hide/unhide particular variables on a catalog task

papa_pra
Tera Contributor

Hi Guys,

I'm working on a scenario where I want to hide a particular variable(e.g Var1) on a catalog task 2 which got triggered after close completing a catalog task 1 and after hiding that particular variable(var1) want to make another variable visible(e.g var 2) on this catalog task 2. var2 was hidden on RITM and Catalog task 1 but I want it visible on catalog task 2.

Note: Catalog item is based on workflow. 

1 REPLY 1

Iraj Shaikh
Mega Sage

Hi,

 

The variables can be shown on a catalog task from the workflow. Open the workflow of your catalog item then open the workflow activity of the catalog task on which you want to show the variables. There is "Variables on Task Form" under "Add variables" section as shown below. Just move the variables from 'Available' to 'Selected' and then click on 'Update' button. Now, only the variables present in the 'Selected' section will be visible on the catalog task.

 

In the screenshot below, only 'description' variable will be visible on the catalog task.
Screenshot 2023-12-04 at 4.36.20 PM.png

 

Note: "Variables on Task Form" section shows the variable's backend values.
Screenshot 2023-12-04 at 5.11.27 PM.png

 

In your case, you need to move var2 variable of catalog task 2's workflow activity from 'Available' section to 'Selected' section.

 

Please mark it helpful.