I am not understanding the UI Action condition "RP.isRelatedList() && (new IncidentUtils().canShowRelatedListUIAction(current, parent, 'add'))"

srinadh kanchar
Giga Contributor

Hi All,

I can see the ADD button under Impacted services/CI related list . I opened the UI Action and checked for the condition . The condition is "RP.isRelatedList() && (new IncidentUtils().canShowRelatedListUIAction(current, parent, 'add'))" 
I am not clear with this condition can some one help me to understand? 

Thanks in advance,

Sri

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you need to check and understand the script include function "canShowRelatedListUIAction"

Did you do that?

regards
Ankur

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

Hi Ankur ,

Thanks for the replay . In the script include they mentioned as the users who have the ITIL or Sn_incident_write role can have the add button.

@srinadh kancharla 

Please check what's the exact visibility logic in that function.

that will answer you why button is hidden

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

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