Hide Activity stream for one table based on a condition from workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 10:53 AM
Hi,
I need to hide Activity stream for one table based on a field condition. If the field is yes then dont show activity logs in Workspace.
I have used view rules and view rules config but it is still showing the activities.
client script is not working as well.
Any help will be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2023 01:23 PM
Hi @ServiceNowVS,
You should be able to use dynamic data binding on the record page within your workspace. You can dynamically set the visibility of the Activity Stream component based on whatever conditions you choose. I imagine you'll want something similar to this:
The first screenshot shows where to go to find the component visibility. The second screenshot shows an example of what you could append to the dynamic component visibility. You can specify the table you would want to hide the component on and then the field to check the value on. Really you could put whatever conditions you wanted in there to control the activity stream visibility. Whatever conditions you implement though, I would recommend doing it in addition to what is already there. I wouldn't override their dynamic visibility, I would just append to it.
Hope that makes sense and points you in the right direction!
- Aylee