Related List UI Action button is missing in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2025 12:58 AM
Hello Everyone,
I have created two custom tables: Talent and Companies. Using these tables, I created an M2M table to establish a many-to-many relationship.
In the M2M table, I created a List UI Action, which works as expected in the Native UI. However, in Workspace, the UI Action is missing.
FYI, I enabled Workspace Form Button, Workspace Form Menu and Format for Configurable Workspace. I also added the same script in the Workspace Client script.
Additionally, I checked Declarative UI Actions (both List and Related List) but my Ui Action was not present there.
However, it does appear in the UX Form Action Layout Items.
Can anyone help me understand what went wrong and why my UI Action is missing in the workspace M2M related List?
Note: The UI Action is visible in under the M2M record in workspace, but not in the related list within Workspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2025 10:53 AM
Hi @Itallo Brandão ,
Thanks for the above script.
Please take a look at my script below, which is not working as expected. Let me know if there are any errors in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2025 10:15 AM
Hi Mohammed,
Thanks for the update! A few more things to verify when configuring a Declarative List UI Action for a custom M2M table in Workspace:
Confirm the Correct “Context” and Table Setup
- In Declarative Action > Action Assignment, verify that:
- Action Type is set to List (or Related List, depending on how you need it to appear).
- The Table is exactly your M2M table (ensure the correct table name, including any scope prefix, if applicable).
- The Condition is satisfied (e.g., current user has the needed roles).
- In Declarative Action > Action Assignment, verify that:
Check the Workspace Data Resource
- In UI Builder, open your Workspace experience and locate the page/component showing the M2M list.
- Make sure the data resource for your M2M table is configured to use or reference your Declarative Action.
- Sometimes you have to add the new action to the list of available “Actions” for that data resource in UI Builder.
Role and Visibility Constraints
- Double-check you’re logged in with a user who has the roles required to see or execute the UI Action.
- If the M2M table is restricted or the UI Action has any “visible” script conditions, confirm they evaluate to true.
Match the Exact Workspace and Screen
- If you have multiple Workspaces, confirm you’re testing in the one where the Declarative Action is assigned.
- A mismatch in “Workspace” or “Experience” references might cause the action not to appear.
Look for Logs or Console Errors
- Sometimes, if a Declarative Action fails to load, you might see a clue in the browser console (F12).
- Check the System Logs (in ServiceNow) for any errors about the action’s script, scope, or assignment.
Try a Simpler Test Action
- As a troubleshooting step, create a very minimal Declarative List UI Action (no script, no roles) assigned to the M2M table—just a label.
- If that minimal action appears, you’ll know the basics are set up correctly, and you can layer on roles/conditions afterward.
If you walk through each of these checks and still don’t see the Declarative List UI Action, let us know which step (if any) might be failing or if you see any error messages. That can help pinpoint why the action isn’t visible in your M2M Workspace list.
Hope this helps you narrow down the cause! Let me know how it goes.
Best regards,
Itallo Brandão