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

Venkatesh5
Tera Contributor

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.

7 REPLIES 7

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

Mark Roethof
Tera Patron
Tera Patron

Or to make your search shorter:

find_real_file.png

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

LinkedIn

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

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

LinkedIn