The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Deep link to open a catalog item form in the now mobile application

Mikhail6
Tera Contributor

I am able to create a deep link to open a specific category in service catalog but I can't find a way to open a form.

To generate a link to a specific category, I'm using the following script:

 

var deepLinkGenerator = new global.MobileDeepLinkGenerator("request");
var uiParams = {
ui_parametr_sys_id: category_sys_id;
var link = deepLinkGenerator.getScreenLink(list_screen_sys_id, uiParams);
gs.info(link);

/*
where:
list_screen_sys_id - sys id of sys_sg_list_screen record, in my case the "Services" screen
category_sys_id - sys id of catalog items category
ui_parametr_sys_id - UI parameters sys_id, It can be found in the “UI Parameters” related list of the “Screen” record
*/

 

Below a screenshot of what I can open:

Mikhail6_2-1711466508804.jpeg



Please advise how can I generate a link to open a specific catalog form. I think I need to use a specific screen record but I can't find an appropriate one.

The screenshot of what I need to open:

Mikhail6_0-1711466685948.png


Regards,
Mikhail

 

2 REPLIES 2

Michele30
Tera Guru

Have you resolved the issue? I am in the same situation. Thanks

sarah_bioni
ServiceNow Employee
ServiceNow Employee

Hi @Mikhail6 and @Michele30 ,

 

I recently handled a similar issue for one of my customers. Here’s the script I used:

 

var deepLinkGen2 = new global.MobileDeepLinkGenerator('Request');
data.genLink = deepLinkGen2.getUniversalLink('/mesp?id=sc_cat_item&sys_id={sys_id}');
 
I use this script in a widget that is mentioned on the mobile screen.
 
Regards,
Sarah Bioni