Set up mappings between themes
Make sure that playbooks run as expected in your Service Portal by setting up mappings between your Service Portal theme and the UXF theme used in UI Builder.
Before you begin
Role required: admin, or portal admin with either snc_internal or snc_external
About this task
The Portal Playbook widget uses a system property ux_portal_theme_to_uib_theme_mapping to handle mappings between a Portal page theme and a UXF theme.
Procedure
- Navigate to .
- Select New in the upper right corner.
-
Enter values for the following fields.
Field Description Name Specify your Service Portal property in the name. Give your system property the name ux_portal_theme_to_uib_theme_mapping.[the sys ID of your service portal theme]. For example, if you use the La Jolla theme for your Service Portal, it has a sys ID of a7a6e78277002300a6e592718a10617a. You would enter ux_portal_theme_to_uib_theme_mapping.a7a6e78277002300a6e592718a10617a as the name. Value To specify the sys UX theme and sys UX style that you want to map the Service Portal theme to, enter a comma-separated string of [the sys ID for the sys UX theme], [the sys ID of the sys UX style]. For example, if you want to map your Service Portal theme to the Polaris UX theme in dark mode, the sysId for the Polaris UX theme is 31bf91ae07203010e03948f78ad30095, and sys ID for the Dark sys UX style is e09ef7ae07103010e03948f78ad3002c. You would enter 31bf91ae07203010e03948f78ad30095, e09ef7ae07103010e03948f78ad3002c as the value. Note:The second value in this string is always an optional sys_ux_style. The first value is always the sys_ux_theme. - In the form context menu, select Save.
Result
The mapping between your Service Portal theme and the UXF theme is saved. Launch the playbook in Service Portal to see your changes.
Note:
To turn a mapping off, you must delete it.
What to do next
Embed a playbook in a Service Portal page and customize the Service Portal playbook runtime experience in the ServiceNow AI Platform®.
To learn more about customizing the playbook runtime experience in Service Portal, see Embed the playbook in Service Portal.