How to convert old UI Page to something modern for Workspace usage?

NagyDan1
Tera Expert

There is a UI Action on the HR Case form. It takes Description field and sends it to a UI Page.

The UI Page then let's the user select some other values, coming from a custom switching table.

Finally the User submits the UI Page and the HR Case is transferred to another HR Case or an Incident.

 

Now I need to convert this UI Page based logic to something more modern that is usable on the Workspace.

 

I intend to use the Configurable version of HR Agent Workspace.

 

One idea was to use "g_modal.showFrame()" to open the UI Page on the Workspace, but it has it's limitations, and this still relies on old Jelly code.

 

So what is a better way to migrate away from old Jelly based UI Pages for HR Agent Workspace?

1 REPLY 1

Ratnakar7
Mega Sage
Mega Sage

Hi @NagyDan1 ,

 

Some possible approaches include:

a. Custom UI Action with a modal or dialog: Instead of using a UI Page, you can create a custom UI Action that triggers a modal or dialog. Within the modal or dialog, you can include form elements and fields to capture the necessary inputs. Use client-side scripting (JavaScript) to handle the logic and data interactions.

b. Custom widget: If the functionality is complex or requires more advanced capabilities, you can consider creating a custom widget using ServiceNow's widget framework (such as UI Builder or UI Macros). This allows you to create a tailored user interface with custom logic and interactions.

c. Integration with Flow Designer: If the functionality involves more complex workflows or integration with other systems, you can leverage Flow Designer. Flow Designer allows you to design and automate processes by connecting various activities and actions together.

 

Thanks,

Ratnakar