can we make any variable visible on sctasks by creating it on catalog form page as variable.

mishrarakes
Tera Contributor

I have a requirement of show a variable on SCTASK by creating it on catalog form page and make it invisible in catalog form and make it visible only on SCTASK only. I have created variable on catalog form and then with UI Policy made it invisible from catalog form and with another UI policy made it visible to RITM and SCTASK but it does not visible on SCTASK but visible on RITM and invisible in Catalog form,   variable editor is already in right side for SCTASK.  can some one help please..

10 REPLIES 10

GopikaP
Mega Sage

Hi @mishrarakes , let me make this clear - 

  • You have a variable under a catalog item
  • Also hide in RITM form - please correct me if I am wrong
  • But show in Catalog Task/Catalog View as well 

Create Catalog UI Policy with UI Policy Action to hide that variable -

2.png

And where are you creating the catalog Task?  - If it's in workflow/ flow - you can add that particular variable to the 'selected' bucket - 

3.png

 

See the Results : 

  • You can see 'Test' variable in Catalog view - 1.png
  • 'Test' variable is hidden in RITM view - 4.png
  • But 'Test' variable is visible in Catalog task - 5.png

 

If this is not what you are expecting, please clarify.

Hello @GopikaP  , first of all Thankyou for your response,  I need to create a SCTASK after submitting RITM, but as we can not trigger on "sc_req_item"  table, so I am creating SCTASK using business rule for each RITM, Thereafter, I need to show a variable name "security" type checkbox on SCTASK only, so I created a variable on catalog form then with one UI Policy made it hide from catalog form and with other UI Policy made it visible for RITM and SCTASK ,but its showing on RITM but not SCTASK.

Something doesn't add up here.  You've got conditions laid down enough such that you create the sc_tasks with Business Rules, but AREN'T using Flow for the same purpose?

Just use Flow.

Hi @mishrarakes , if the catalog task is to be created upon submitting RITM, you can use flow. That way you can easily choose which variables to be hidden/shown in catalog task as well. Let me know if you have any other reason for choosing BR to create catalog task.