We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Developing UI Scripts Compatible with Both UI16 and Workspace

RyoyaFukuda
Tera Contributor

Hi, all.

I'd like to create a UI script that works in both UI16 and Workspace.

I understand that for UI16, "ScriptLoader.getScripts" is used to call UI scripts, and for Workspace, "g_ui_scripts.getUIScript" is used.

What is the best way to create a UI script that is compatible with both environments? Specifically, I'm looking for best practices on how to reuse the script's logic across both environments while ensuring it is called appropriately in each.

5 REPLIES 5

Hi @RyoyaFukuda 

 

Check this: https://sn-nerd.com/2023/11/28/how-to-convert-ui-scripts-to-run-in-configurable-workspaces/

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti