- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 06:31 AM
Hello Gurus!
I want to avoid writing a client script for this, if possible!
I inherited a 'u_event' table from Incident table and ended up with extra UI Actions that I dont want [example: The incident form has 'email', 'resolve incident', 'convert to service request' etc., UI actions that I dont want].
On the inherited 'u_event' form, I checked the configure -->UI Actions, those Ui actions are associated with Incident only.
How can I disable so that its only disabled on the inherited form [in my example only on 'u_event' form]. Obviously disabling on the Incident works but it is undesirable as it affects the incident users.
I also tried 'current.getRecordClassName() !='u_event'' on the Incident table here is the full condition: gs.hasRole("itil_admin") || gs.hasRole("itil") && current.getRecordClassName() !='u_event'
that did not work either 😞
Thanks for reading!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 06:45 AM
try with,
gs.hasRole("itil_admin") || gs.hasRole("itil") && current.sys_class_name!='u_event'
or check the 5th,
http://wiki.servicenow.com/index.php?title=UI_Actions#Restricting_Access_to_UI_Actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 06:45 AM
try with,
gs.hasRole("itil_admin") || gs.hasRole("itil") && current.sys_class_name!='u_event'
or check the 5th,
http://wiki.servicenow.com/index.php?title=UI_Actions#Restricting_Access_to_UI_Actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 06:45 AM
Ok, I got this sorted by putting additional paranthesis, like this:
(gs.hasRole("itil_admin") || gs.hasRole("itil") ) && current.getRecordClassName() !='u_event'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 06:47 AM
Thanks for the reply, Balaji, I was missing those additional parenthesis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2017 06:52 AM
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View
How To Mark Answers Correct From Community Inbox