Dynamic related record tables

  • Release version: Zurich
  • Updated July 31, 2025
  • 4 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 Dynamic related record tables

    The dynamic related records feature in ServiceNow enables you to configure and display related records dynamically on the Related Records tab based on different contexts and definitions. This functionality enhances how related data, such as SLAs, emails, or case tasks, is retrieved and shown for various source records or playbook activities.

    Show full answer Show less

    Key Components

    • Related Record Context [snrelatedrecordcontext]: Defines the context for displaying related records by specifying the source table (e.g., customer service cases or playbook activities), conditions for when related records appear, and which related record definitions apply. Key fields include the table to apply to, primary and secondary reference fields used in scripted queries, conditions, and activation status.
    • Related Record Definition [snrelatedrecorddefinition]: Identifies specific types of related data to retrieve, such as active contracts or emails. Each definition includes a display label for filtering, the table to query, optional reference tables, a script to filter records, and an active flag to enable or disable the definition.
    • Context Related Record Definition [snm2mcontextrelatedrecorddefn]: Manages the association between context records and their related record definitions. It controls the order of related record types in the filter list and whether each association is active.

    Practical Use for ServiceNow Customers

    By configuring these tables, you gain fine-grained control over which related records appear for different record types and under what conditions. This flexibility allows you to tailor the Related Records tab to display relevant data dynamically, improving user experience and data accessibility across cases, activities, or other records.

    The feature supports complex scenarios such as:

    • Showing related records for both source records and playbook activities.
    • Applying additional conditions to control when related records are retrieved.
    • Associating multiple related record definitions with a context and managing their display order.

    Ensuring active status on context and definition records is essential for the related data to appear as expected.

    The dynamic related records feature uses different tables to store context and definition information.