How to implement multi-level / stacked breadcrumbs in a custom Configurable Workspace?

mtk
Tera Contributor

I’m working on a custom Configurable Workspace in UI Builder and would like to implement multi-level (stacked) breadcrumb navigation for a records (let's say Issue record), similar to the navigation behavior available in some OOTB ServiceNow workspaces.

For example, when a user navigates through related Issue records, I would like the breadcrumb to look like:

All Issues > ISS0001  >  Record A  >  Record B  > ..

If anyone has implemented something similar or knows where to inspect the OOTB configuration, I’d appreciate any guidance.
1 ACCEPTED SOLUTION

IbrarA
Kilo Sage

Hi @mtk ,

Breadcrumbs come from the App shell, not from a component you put on the record page, so a workspace runs on either the Workspace tab shell or the Breadcrumb shell and the trail only shows up on the second one.

 

The bit that matters for your case is that out of the box the Breadcrumb App Shell only handles two levels, which ServiceNow confirmed in the thread below, so All Issues > ISS0001 will work but Record A and Record B won't stack on their own. To get the deeper levels you need an extension point, so go to sys_extension_point, look up sn_app_shell_aw.AppShellBreadcrumbItemsProvider by API Name, and use Create Implementation from the Related Links.

 

The provideItems function is what returns the payload the shell renders, so open one of the existing implementations to see the shape and then build yours around your Issue hierarchy.

 

You can also check this link:

https://www.servicenow.com/community/next-experience-forum/how-to-config-breadcrumbs-app-shell-bread...

 

Thanks

View solution in original post

3 REPLIES 3

IbrarA
Kilo Sage

Hi @mtk ,

Breadcrumbs come from the App shell, not from a component you put on the record page, so a workspace runs on either the Workspace tab shell or the Breadcrumb shell and the trail only shows up on the second one.

 

The bit that matters for your case is that out of the box the Breadcrumb App Shell only handles two levels, which ServiceNow confirmed in the thread below, so All Issues > ISS0001 will work but Record A and Record B won't stack on their own. To get the deeper levels you need an extension point, so go to sys_extension_point, look up sn_app_shell_aw.AppShellBreadcrumbItemsProvider by API Name, and use Create Implementation from the Related Links.

 

The provideItems function is what returns the payload the shell renders, so open one of the existing implementations to see the shape and then build yours around your Issue hierarchy.

 

You can also check this link:

https://www.servicenow.com/community/next-experience-forum/how-to-config-breadcrumbs-app-shell-bread...

 

Thanks

mtk
Tera Contributor

Thank you for your reply. Yes, I'm already using the Breadcrumb App Shell, and I’m aware of the two-level limitation. I also tried creating an implementation of sn_app_shell_aw.AppShellBreadcrumbItemsProvider 

but unfortunately I haven’t been able to get it working as expected. I was wondering to find an example that implement a multi-level hierarchy.
Thanks. 

glad my response helped you 😇