Work with the Entity View Action Mapper for UI Builder
Summarize
Summary of Work with the Entity View Action Mapper for UI Builder
The Entity View Action Mapper (EVAM) application in UI Builder enables ServiceNow customers to standardize the display of various data sources within components, such as cards and lists. EVAM facilitates presenting data either as a card grid or a list, with an optional toggle for users to switch views. This helps maintain consistent and customizable presentation of data across your UI Builder pages.
Show less
Key Features
- Entity (Data Source): Defines the associated data to display, such as users or community posts.
- View: Controls how data and actions are presented on cards.
- Actions: Defines operations that can be performed from the card, e.g., activating a user.
- Map: Maps data sources to generic fields shown on cards and links actions to card views.
- Data Source Options: EVAM supports configuration via JSON and is an alternative to the multi-table data configuration option, which offers greater control and ease of use within UI Builder.
Using EVAM Data Sources in UI Builder
ServiceNow customers add EVAM data sources directly in UI Builder and bind them to components. EVAM data sources include configurations for data retrieval and pagination, such as page size, page number, and filters.
Different EVAM data source types are available:
- EVAM Data Resource: Composite type evaluated either on page load or via event handlers; includes fields for EVAM definition, pagination, and filter preferences.
- Fetch EVAM Data and Metadata: Use GRAPHQL type resources to fetch data or metadata, configurable with evaluation timing and event handlers.
- Search EVAM Data Resource: Composite type that supports search terms, filters, spell checking options, and pagination tokens to refine data retrieval.
Each data source configuration includes an option to add event handlers to manage data fetch initiation, success, or failure, enhancing control over data interactions.
Practical Application
By adding an EVAM data resource to your page in UI Builder, you can ensure a standardized and flexible approach for displaying data in cards and lists. This improves user experience by providing consistent visualization and interaction models across your ServiceNow applications.
With UI Builder, you can use the Entity View Action Mapper (EVAM) application to standardize how the data sources in your components are displayed in your cards and lists.
EVAM Overview
Entity View Action Mapper (EVAM) is an application that standardizes how different data sources are displayed in cards and lists. UI Builder uses EVAM data sources to show information in a component as a card grid view or as a list of information. You can add a toggle to your component to let users switch between card grid and list views.
- Entity (data source). Associated data that you intend to display, such as a community post or a user.
- View. How a card displays data and actions.
- Actions. Action that it performs on the card. For example, you can activate a user into your system.
- Map. A process that maps the data source to generic fields that are displayed on the card. You can also associate actions that trigger from the card view.
EVAM and Multi-table data configuration
The EVAM is an option for users who understand and are comfortable working with JSON. The multi-table data configuration option is an alternative that gives you greater control over the presentation of data, makes it easier to configure the data, and enables you to remain in UI Builder. Use the option that you prefer. For more information, see Multi-table data configuration.EVAM data sources
| EVAM data source | Description |
|---|---|
| EVAM Data Resource | Add an EVAM definition and other information about the data source.
To add an event handler for when that data fetch is initiated, succeeded, or failed, select Events. In the Now Code Editor section, which is next to the Configuration pane, preview the EVAM definition script. |
| Fetch EVAM Data | To add an EVAM definition and other information about the data source, select Configuration.
To add an event handler for when that data fetch is initiated, succeeded, or failed, select Events. Preview the EVAM definition script in the Now Code Editor to the right of the Configuration pane. |
| Fetch EVAM Metadata | To select when to evaluate the EVAM data resource and add an EVAM definition, select Configuration.
To add an event handler for when that data fetch is initiated, succeeded, or failed, select Events. Preview the EVAM definition script in the Now Code Editor to the right of the Configuration pane. |
| Search EVAM Data Resource | To add an EVAM definition, and other information about the data source, select Configuration.
To add an event handler for when that data fetch is initiated, succeeded, or failed, select Events. Preview the EVAM definition script in the Now Code Editor to the right of the Configuration pane. |