trying to configure same UI action for three different views of the same table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago - last edited 4m ago
Hi experts,
i am trying to configure same UI action for three different views of the same table, below is the script that i am trying with but its not working
Business Requirement
I have three different list views (View A, View B, and View C) for the same table sn_grc_profile.
Each view shows different fields (X, Y, Z). The process is:
A user fills out the fields in a view (for example, field X in View A).
The user selects records in the list view and clicks Send for Approval.
A reviewer (checker) goes to the same view, reviews the records, and clicks Approve (or Reject) from the list view.
Currently, I created three separate buttons for each action: Send for Approval, Approve, Reject.
My challenge is that I want to reuse the same UI Action button across all three views.
Example: one Approve button should work for all three views (instead of having 3 separate Approve buttons).
Same goes for Reject and Send for Approval.
Also, the requirement is that users should be able to update multiple records directly from the list view using these buttons.
requesting for support on the issue, thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
53m ago
Hope this is not client side UI Action. Can you give the full script. How are you calling this function?
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
29m ago
Hi Palani, this is not client side ui action, requirement is to update the state field when the button is clicked on, there is different state field for each view, so using the ui action button wanted to validate the state fields and update for each view as there are different fields which required to be sent for approval. maybe am not going with right approach for the requirement please suggest best possible approach to achieve the requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
36m ago
what's your business requirement?
share the UI action config screenshots.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5m ago
Hi @Ankur Bawiskar ,
Business Requirement
I have three different list views (View A, View B, and View C) for the same table sn_grc_profile.
Each view shows different fields (X, Y, Z). The process is:
A user fills out the fields in a view (for example, field X in View A).
The user selects records in the list view and clicks Send for Approval.
A reviewer (checker) goes to the same view, reviews the records, and clicks Approve (or Reject) from the list view.
Currently, I created three separate buttons for each action: Send for Approval, Approve, Reject.
My challenge is that I want to reuse the same UI Action button across all three views.
Example: one Approve button should work for all three views (instead of having 3 separate Approve buttons).
Same goes for Reject and Send for Approval.
Also, the requirement is that users should be able to update multiple records directly from the list view using these buttons.
thanks and regards,
prasad.