How to overwrite the "Security does not allow the execution of that action against the specified record" message?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 03:51 AM
Hi ,
Please let me know if you have any suggestions to overWrite the " Security does not allow the execution of that action against the specified record" with custom message. I don't want to alter the existing condition of the UI action and if doen't met the condition it will populate the custom message but not the "Security does not allow the execution of that action against the specified record" message.
Regards,
Venkat.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 03:54 AM
Hi there,
Have a look at this article I wrote a few weeks ago:
Changing out-of-the-box Messages
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 03:55 AM
Or to make your search shorter:
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 04:04 AM
Hi Mark,
Thanks for the response. I want to modify this message only particular to that UI action but not the instance level.
Please let me know if you have any suggestions.
Regards,
Venkat

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2020 04:09 AM
And you don't want to edit the UI Action? Hmmm... maybe you could add a onLoad Client Script, which contains the message (name of the sys_ui_message record in the message field, nothing else in the client script). onLoad Client Script only to run on the particular table you are on.
Would that be an idea?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field