We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

EVAM template not working as expected

Not applicable

Hello,

I am very new to UI Builder and EVAM currently trying to build an experience. I want to display every application in the Business applications table inside a data set container. I have configured EVAM Datasource as shown in the screenshots. My view template is as below:

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

{
	"component": "now-card-evam-record",
	"staticValues": {
		"detailLabelOne": {
			"translatable": false,
			"key": "Active Users"
		},
		"detailLabelTwo": {
			"translatable": false,
			"key": "Point of Contact"
		},
		"detailLabelThree": {
			"translatable": false,
			"key": "URL"
		}
	},
	"mappings": {
		"titleLabel": "name",
		"detailValueOne": "active_user_count",
		"detailValueTwo": "u_point_of_contact",
		"detailValueThree": "url"
	},
	"actionMappings": {
		"clickAction": "navigation"
	}
}

When I use the EVAM data resource in UI builder, I get 0 items, hence the dataset is not populated.

{
  "page_cursor": "e30",
  "page_size": 20,
  "page_number": 0,
  "is_last_page": true,
  "all_actions": [
    {
      "assignmentId": "7878cf3c1ba11150eacfed34b24bcbf7",
      "name": "navigation",
      "label": "Navigation",
      "actionType": "uxf_client_action",
      "actionDispatch": "NAVIGATION",
      "actionPayload": "{\r\n        \"table\": \"{{table}}\",\r\n        \"sysId\": \"{{sys_id}}\",\r\n        \"url\": \"{{navigation_url}}\"\r\n}"
    }
  ],
  "selected_filter": "",
  "items": [],
  "available_filters": [
    {
      "sys_id": "",
      "label": "Default"
    }
  ]
}

What am I doing wrong here? Any help is appreciated. 🙂

Thank you!

1 REPLY 1

Sunny SN
ServiceNow Employee

Came across a similar issue. Hope you able to figure it out by now

 

In the "EVAM Datasource M2M tab" -> datasource - make sure to add the filter and sort by column.