Dynamic related record tables
Summarize
Summary of Dynamic related record tables
The Dynamic Related Records feature in ServiceNow enables you to configure and display related records dynamically within the Related Records tab. This is achieved by using multiple specialized tables that extend thesysmetadatatable to define the context, data definitions, and their relationships. This functionality helps you tailor related record displays based on specific records or activities, improving data visibility and relevance.
Show less
Key Components
- Related Record Context [snrelatedrecordcontext]: Defines when and for which records related records appear. It specifies the source table (such as cases or playbook activities), conditions for execution, and which related record definitions to apply. Key fields include:
- Applies to table: The source record table, e.g., Case or Activity Execution.
- Primary and Secondary reference fields: Fields used by scripted queries to filter related data.
- Conditions: Additional filters on source records.
- Inherited: Option to include tables extending from the source table.
- Related Record Definition [snrelatedrecorddefinition]: Specifies the types of related data to retrieve, such as SLAs, emails, or case tasks. Each definition includes:
- Display label: Name shown in the Related Records tab filter dropdown.
- Queries from: The table storing the related records.
- Primary and Secondary reference tables: Tables expected in the definition script for filtering.
- Script: Defines how to retrieve records based on context.
- Active flag: Enables the definition for display.
- Context Related Record Definition [snm2mcontextrelatedrecorddefn]: Links context records to their related record definitions, managing which related record types appear for a given context. Important fields are:
- Order: Controls display order in the Related Records tab filter list.
- Active flag: Enables the linked related record definition for the context.
Practical Use for ServiceNow Customers
By configuring these tables, you can customize which related records are shown for different record types or playbook activities in your environment. This allows for enhanced contextual awareness and streamlined navigation for users working with complex datasets such as customer service cases or onboarding activities. The ordering and activation controls let you prioritize and enable only relevant related record types, ensuring an intuitive and efficient user experience.
The dynamic related records feature uses different tables to store context and definition information.