
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 06-22-2021 07:06 AM
If you’ve setup an EVAM data resource for the UI Builder or followed along with
After some trial and error, I’ve managed to map the JSON from the sample provided at the bottom of the View Template configuration page to the data displayed in the Data Set component (using User [sys_user] table as an example) as follows…
Static Values
Mappings
Here’s the View Template [sys_ux_composite_data_template] JSON used:
{
"component": "now-card-evam-record",
"staticValues": {
"highlightedHeaderIcon": {
"translatable": false,
"key": "user-outline"
},
"highlightedHeaderBkgColor": {
"translatable": false,
"key": "critical"
},
"subtitleIcon": {
"translatable": false,
"key": "calendar-fill"
},
"imageType": {
"translatable": false,
"key": "image"
},
"subtitleImageType": {
"translatable": false,
"key": "avatar"
},
"detailLabelOne": {
"translatable": true,
"key": "Email address"
},
"detailLabelTwo": {
"translatable": true,
"key": "Works for"
},
"detailLabelThree": {
"translatable": true,
"key": "Business phone"
}
},
"mappings": {
"highlightedHeaderLabel": "title",
"textHeaderLabel": "department",
"titleLabel": "name",
"imageURL": "avatar",
"subtitle": "user_name",
"subtitleAvatarName": "name",
"subtitleAvatarURL": "avatar",
"detailValueOne": "email",
"detailValueTwo": "company",
"detailValueThree": "phone"
},
"actionMappings": {
"clickAction": "navigation"
}
}
A few things to note
- detailLabelThree and detailValueThree do NOT appear when using Grid view with Card Height of Small
Small card: -
Remove subtitleAvatarURL from the mappings to remove the duplicate image
-
To get rid of it entirely, remove subtitleImageType from static values too
-
Options for the key value for highlightedHeaderBkgColor see the options listed under the sidebar property of the now-card component:
I anticipate that ServiceNow will eventually make it easier to configure the View Template via a GUI, instead of via JSON - perhaps in some manner like the Mobile Card Builder.
But until then, I hope this has been a handy resource.
- 7,110 Views

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi
How to make the titleLabel name to Bold

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Nia
This is a very helpful article - very helpful indeed.
I was about to try to draw out the physical card layout so that I could visually map the fields and labels provided in the now-evam-card-template JSON.
I've been looking in the Now Component library documentation for anything of this kind, and in the EVAM training material. Nothing of this nature found there.
You will have saved a lot of people a lot of time and frustration - well done !!
Regards
Andy

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Thanks Andy. I really appreciate that.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I'm trying to update the icon for Catalog genius result card but updating it to icon is not changing.
One article says we can and other says we cannot.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1198812
https://support.servicenow.com/kb?id=kb_article_view&sys_kb_id=7d870ff21b2b9914b4b577bc1d4bcb85
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
FINALLY! I've been searching high and low for this information. It's been making me absolutely CRAZY!
Thank You. Thank You. Thank You.
But, one question, is that the only card format? There aren't like 5, 10, 25 of these with different layouts? Or, preferably a way to map the fields into HTML? I'm stunned this is so rigid.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello Nia - I have this Question, I see the template in EVAM to find the data label and value, but i am unable to find this details,
Where to find this ? i search even on Data broker, code is there not sure that is the right place to look into this.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@kbridgeman007 You're right. There are different cards/components that you can use and the above is an example for the now-card-evam-record
@PaulSylo I'm not sure where that image comes from but have a look at https://[INSTANCE].service-now.com/nav_to.do?uri=sys_ux_composite_data_template.do?sys_id=bb06742cb7... as I think it should be similar setup to your image.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@Nia McCash - Where can I find an inventory and description of the different card types/layouts?
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello @Nia McCash .. this card comes out of the box,. I need to remove or want to know how this Response SLA /Resolution SLA is populated./ one observation is Response SLA appears only for the ticket whichever is gets breached.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
This is a great article, thank you Nia!

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
@kbridgeman007 Honestly, I don't know where one would find an inventory but I would look at https://[INSTANCE].service-now.com/now/nav/ui/classic/params/target/sys_ux_composite_data_template_l... for examples.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Nia,
Great article, it has been quite helpful!
Do you know how to (if it's possible) dynamically change the color of highlightedHeaderBkgColor?
Ex. if the state is in progress, the background color should be blue, if the state is open it should be yellow, and so on.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello @Nia McCash
this post is very useful thanks, I have a question, is there a limit of mapped fields you can add?
Becasue I am trying to add detailLabelFour what it is not showing under Work for label.
Thanks