How to create a Workspace Experience View Rule to force a specified view to be used
This is a handy guide on how to use view rules in a Workspace Experience.
Below are the steps to follow:
If not already available, create a UX View Rules Configuration record for your workspace experience (sys_ux_view_rules_configuration) via menu Next Experience → Configuration Settings → UX View Rules Configurations. Save the SysId and memorize the name.
Select your Workspace experience UX Page Registry configuration record via menu Now Experience Framework → Experiences or directly from the table sys_ux_page_registry.
Sample screenshot
- Create a new property from the UX Page Properties related list at the bottom with the following values:
Name: viewRuleConfigId
Type: string
Value: the SysId of the UX View Rules Configuration record created in step 1
- Now you can create your Workspace View Rule record via menu Workspace Experiences → Workspace View Rules, or from sysrule_view_workspace, and configure it accordingly associating the UX View Rules Configuration record created in step 1 from the relative list at the bottom.
Sample screenshot
https://www.servicenow.com/community/next-experience-articles/how-to-create-a-workspace-experience-view-rule-to-force-a/ta-p/2331936