Define an EVAM view template

  • Release version: Australia
  • Updated March 12, 2026
  • 1 minute to read
  • You can configure multiple view templates per data source based on conditions to customize how data displays for users. The view template maps fields from the view configuration to component.

    Before you begin

    Role required: admin or evam_admin

    About this task

    The view template is referenced from the Entity View Action Mapper (EVAM) view configuration record. For more information, see Define an EVAM configuration bundle.

    Procedure

    1. Navigate to All > Entity View Action Mapper (EVAM) > View Definition > View Templates, and then select New.
    2. On the form, fill in the fields.
      Field Description
      Name Name of the EVAM view template.
      Application Application scope of the EVAM view template.
      Active Option to activate the EVAM view template.
      Template A JSON template that defines the view for a mapped data source.
      For example, the default search template contains the following:
      {
          "component": "sn-search-result-evam-card", 
          "staticValues":  {  
            },
          "mappings": {
              "title": "ai_search_teaser_title",
              "summary": "ai_search_teaser_text"
          },
          "actionMappings": {
              "clickAction": "navigation"
          }
      }

      Use sn-search-result-evam-card as the component for search result pages.

    3. Select Submit.