I am not understanding the UI Action condition "RP.isRelatedList() && (new IncidentUtils().canShowRelatedListUIAction(current, parent, 'add'))"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2022 12:34 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2022 12:52 AM
Hi,
you need to check and understand the script include function "canShowRelatedListUIAction"
Did you do that?
regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2022 01:11 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2022 11:08 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader