Mobile deep link generator

lmichaels
Tera Contributor

Hi Community. Please could you confirm if this is possible and how:

Requirement:
1) Generate Mobile deep link which;
A) Launches the Now Mobile app
B) Lands the User on the Report a Incident form
C) Populates variables on the form with certain values ??

 

I have done A and B using the below script, by replacing buttonID with the sys_id of the Function record: Incident creation (see attached button image which is the function). 

 

var deepLinkGenerator = new global.MobileDeepLinkGenerator("request");
var link = deepLinkGenerator.getButtonLink("buttonId");
gs.info(link);

 

The button the user clicks on is a Function record which is type = URL and there is a Link URL which directs User to the Incident record producer form (see pictures). 

Please confirm if it's possible to pass certain parameters on this script using this getButtonLink method? And how? 

1 REPLY 1

Vishal26
ServiceNow Employee
ServiceNow Employee

Hi

Some Questions:

What type of parameters are you trying to pass? fixed or dynamic?

How is the user logging into to the portal?