We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Mobile App deep link creation

NaguK
Giga Contributor


var deepLinkGen = new global.MobileDeepLinkGenerator("Agent");

// 2. Define your Function (Action) details from your screenshots
var buttonId = '5836a435fbe272d05e6bf8d57eefdc48'; ("sys_id of create incident function")
var tableName = 'custom_table';

// 3. Generate the link for a Function
// Note: We use getFunctionDeepLink to ensure the mobile app handles the transition correctly
var deepLink = deepLinkGen.getButtonLink(buttonId, tableName, "");

// 4. Output the link
gs.info(deepLink);

why this script is not working?

0 REPLIES 0