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.

1 REPLY 1

Dr Atul G- LNG
Tera Patron

Hi @RyoyaFukuda 

UI16 is going to be deprecated soon, so I would recommend not spending much time on it. Instead, focus on building scripts for  Workspace 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************