Mobile deep link structure

  • Release version: Yokohama
  • Updated January 30, 2025
  • 3 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Mobile deep link structure

    Mobile deep links in ServiceNow enable direct navigation to specific screens within mobile apps such as Now Mobile or Mobile Agent. These links consist of three components: a variable name, a reference to the target mobile app, and a public method that generates the deep link. This structure allows you to programmatically open various screen types including forms, lists, launchers, and authentication screens.

    Show full answer Show less

    Key Features

    • Variable Name: Assign any identifiable variable name to hold the deep link for easy reference in your code.
    • Mobile App Reference: Specify the target app by name—use 'Request' for Now Mobile or 'Agent' for Mobile Agent—to direct the deep link appropriately.
    • Public Methods for Link Generation: Several methods are available to generate links tailored to different screen types and use cases:
      • getButtonLink(buttonId, tableName, recordSysId): Opens an input form screen tied to a specific button.
      • getFormScreenLink(formScreenId, tableName, recordSysId): Opens a non-parameterized form screen.
      • getLauncherScreenLink(launcherScreenId): Opens a launcher screen.
      • getPrefillLink(forceLocalLogin): Provides a pre-filled login instance link for first-time mobile users to streamline authentication.
      • getScreenLink(documentId, uiParams): Links to list screens or other screen types, with optional UI parameters.
      • getSSOPrefillLink(sysid): Generates a secure single sign-on (SSO) link using a specified identity provider, useful for multi-IdP environments. Requires the Multi-Provider SSO plugin and active IdP.
      • getUniversalLink(url): Creates a link that opens a list, form, or browser screen based on a given URL.

    Practical Use

    By using this mobile deep link structure, ServiceNow customers can create customized, direct navigation paths within mobile applications to enhance user experience and streamline workflows. Whether launching specific forms, enabling secure SSO access, or guiding users to launcher screens, these links provide precise control over mobile navigation. Activating Multi-Provider SSO and properly identifying identity providers is essential when using SSO-related deep link methods.

    Familiarize yourself with how to construct and use mobile deep links in any screen type within a mobile app.