UI action showing after condition, but "Action not authorized" message is displayed after clicking on it

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 12:19 AM
Hello,
I have a related list on a contract called Entitlements. That related list has 2 UI actions, "Add" and "Remove" which are actually copies of "New" and "Edit" button but with slightly different conditions.
I have read different threads and changed the action names of the buttons but it still shows the message, so now I've changed the action names back to what they were.
On the contract form I have a checkbox called "Differential". My requirement is that If that checkbox is false, the buttons should appear.
My condition for the "Remove" UI Action is the following:
If I add the condition "&& current.contract.u_differential == false" to the current one, I can see the button on the related list, but when I click on it, the message "Action not authorized" appears.
I don't understand why it works perfectly before the added condition and it doesn't afterwards.
Any ideas?
Thank you,
Elena

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 12:25 AM
Hi,
Can you change the action name of the UI action and check if the issue still exist.
Regards,
Vaishnavi Lathkar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 12:38 AM
Hey,
Yeah, I did change the action name and I have the same issue.
Now I see that my pictures are not shown. 😞
Thanks for the response,
Elena

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 12:41 AM
Hi Elena,
Please see below KB article from ServiceNow.
Resolution is provided in this article.
Just check if you have the UI action with the same name in the Instance.
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 01:13 AM
Hey,
I changed the action name and I have 2 problems:
- the message still displays
- the "New" and "Edit" buttons appear on the related list
I did the following test:
In my "Add" UI Action, I have the same action name as the one from "New" button and I override the "New" button, but I still get the message.