Accessing the parameters from the URL encoded using the MobileDeepLinkGenerator

jacque3
Kilo Guru

Hi Everyone,

We're currently implementing a deeplinking to our now mobile app - I was using the MobileDeepLinkGenerator script include to generate the URL and add it in our QR so that user can directly scan the QR and open the incident form. We're looking for a way to autopopulate the form in mobile once the URL is scanned. 

This is the URL we used to generate: /mesp?id=sc_cat_item&sys_id=728437846384638b32af23&param1=TEST&param2=TEST2.

var mbd = new MobileDeepLinkGenerator();

var link = mbd.getUniversalLink("/mesp?id=sc_cat_item&sys_id=728437846384638b32af23&param1=TEST&param2=TEST2");

This will generate an encodedlink. I have tried using the decodeURICompomponent() and GlideStringUtil.base64Decode();.

To autopopulate the form we would like to decode the link to get the parameters example the param1 and param2 but got no luck in decoding the URL from the mobile. or even in background script.

Any help will be appreciated.

Thank you \^O^/

 

 

 

 

1 ACCEPTED SOLUTION

jacque3
Kilo Guru

I end up using a custom widget for this one as they can just directly use the getparameter() and it can directly get the parameter from the encoded URL.

View solution in original post

1 REPLY 1

jacque3
Kilo Guru

I end up using a custom widget for this one as they can just directly use the getparameter() and it can directly get the parameter from the encoded URL.