How to Hide a Related List Tab on the Workspace When There Are No Records for that List
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Similarly to how you can use a list control to hide a related list tab when there are no records matching, how can you do the same but for the workspace view. The list control only works in the back-end view, but I haven't found an easy solution when dealing with the workspace view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wednesday
Hi,
Yes, this can be achieved in Workspace using UI Builder by applying a visibility condition on the Related List tab.
Since List Control only works in the platform UI, for Workspace you need to use the data resource “SOW Get Related List Configuration”.
Steps:
- Open UI Builder → Service Operations Workspace
- Navigate to the Record page
- Duplicate the OOTB variant (to make it editable)
- Select the “Related Records Tab” component (not the inner related list)
- Go to Configure → Visibility
- Add the below condition:
@data["SOW Get Related List Configuration"].results.length > 0Result:
- If no related records exist → the tab is hidden
- If records exist → the tab is visible
This approach ensures the tab itself is dynamically controlled based on data availability in Workspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
Sorry can you explain the @Data[] part. I'm doing this in a custom application where I currently have 2 related lists on the workspace record page view. One tab of the related list can be displayed at all time, but the other tab we would like to hide when there are no related records. I believe what you suggested will hide all related tabs, which is why this is difficult. I attached a pic so you can see these lists are both embedded in a repeater.
