Render Portal widget in workspace

Kachu
Kilo Sage

HI Community, I have a requirement where i need to render a mapfor which we have already created widget with URLS that would render a map from GIS and works great on service portal. we would like to get the same map rendered in workspace with Ui builder. 
have any one have implemented where we can interact with map with in ui builder ? we would like to keep this Inside ServiceNow not using CLI or react to create custom component. 

few thing i have tried:
Kept custom page and tried open widget with the page on Ui builder.
open page with record producer  and worked when opening in new tab using button component does not full fil on existing record.
tried I frame, open catalog item, document display  ootb component and did not work.
I have seen some one creating custom component that renders page which is called "lumen mars"  i guess but still does not fulfil the requirement.

Any ideas or help is highly appreciated. Thanks all

1 REPLY 1

Matthew_13
Mega Sage

Hi,

This is a known limitation I found with UI Builder / Workspaces.

Service Portal widgets can’t be reused in UI Builder Angular vs Now Experience and interactive external content like GIS maps is blocked in Workspace due to security/CSP restrictions. That’s why iframe, document viewer, record producer, or custom page approaches don’t work.

If you need the map embedded and interactive inside Workspace, the only supported approach today is a custom UI Builder component. Anything else  like widgets, iframes, page rendering is unsupported or basiclly won’t survive upgrades.

Opening in a new tab will work, but in-context rendering requires a custom component.

Hope that helps my friend!

 

@Kachu - Please mark as Accepted Solution and Thumbs Up if you find Helpful!!