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.

How to show UI action in only one catalog item?

snserge
Kilo Contributor

Hi guys,

I have a UI action which does its job well, but only problem is that it shows in every tasks. I want it to only show in one service catalog item task. is that possible?

The UI Action

find_real_file.png

The task where it should only be shown

find_real_file.png

1 ACCEPTED SOLUTION

Hi Serge,



Pass sys_id instead of item name as Item field on Request item table is a reference field.



current.request_item.cat_item == 'sys_id_of_item'


View solution in original post

8 REPLIES 8

Jaspal Singh
Mega Patron
Mega Patron

Hi Serge,



You can try using by adding below condition as an & to above condition in the screenshot.



current.request_item.cat_item



provided if the Catalog item remains same.


Hi Jaspal,


Thank you for your answer. If I just had current.request_item.cat_item, how do I specify the catalog item in question?


nishailame
ServiceNow Employee
ServiceNow Employee

sc_task has reference to request_item which has reference to catalog item..



 


Thanks.


PS: Hit like, Helpful, Correct and Endorse, if it answers your question.


Hi Nisha, I know but my question is that shall I not specify which catalog item I want?