Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add parameters in mobile deep link and generate a url to auto-populate 2 fields

Stephie Soo
Mega Guru

Hi, my script is this:

 

var deepLinkGenerator = new global.MobileDeepLinkGenerator('Agent');

var uiParams = {

"ui_parameter_sys_id_field_1": "ABCD",
"ui_parameter_sys_id_field_2": "DEFG"};

var deepLinkGenScreen = deepLinkGenerator.getScreenLink(screen_A_sys_id,uiParams);

gs.info(deepLinkGenScreen);

 

I have tested that i'm able to access the screen/form without the uiParams parameter via the generated link however i cant seem to auto-populate the necessary fields with values. Am i missing something? 


Can i check for the ui_parameter_sys_id_field_1, i should be getting the sys_id of the respective field from my UI Parameter Table right? 

 

I even tried just the sys_id of short description ui parameter and string value but it doesnt even populate my short description with the string. 

var uiParams = {

"ui_parameter_sys_id_short_description": "ABCD"};

 

Able to help assist?

0 REPLIES 0