logo

NJP

Adding additional data points to the Employee Information card

Import · Aug 30, 2022 · article

Hello ServiceNow Community.

We have been getting questions on how to add additional data points to the Employee Information card on the configurable workspace. This article will walk you through a simple use case so that you, too, can add additional data points specific to each Employee.

In this use case, we have a requirement to show Marital Status on the Employee Information card when creating, or working a case within HR Agent Workspace.

The configuration for the employee section is present in UI Builder and not from the Case Creation Config record. Here are the steps to configure the additional data points:

  1. Make sure your scope is set to the Agent Workspace for HR Case Management application
  2. Open /sys_ux_macroponent.do?sys_id=9d865ddb0f3320102208555db4767e37&sysparm_view=&sysparm_domain=null&sysparm_domain_scope=null (This is the macroponent of case creation page. Open the respective macroponent if you have created a duplicate)
  3. Go to the ‘Data’ section and search for ‘employeeFields’ as seen in the following image. This configuration starts at line 317: image
  4. In this section we define the fields to be shown in employee card. To achieve our use case, I have added the marital_status field. Note the values need to be comma-separated. The updated line in the macroponent image is displayed below: image
  5. Add/Remove fields as per your requirement here. (The fields are from HR Profile record and can be dot walked.)
  6. Save this updated record refresh for the changes to take effect. (Refresh UIB too if it is open before modifying the macroponent.) The finished image is displayed below where the newly added field is now visible in the Employee Information Card. image

IMPORTANT: Macroponents are not domain separated. Changes made to macroponents affect all landing pages that use the value stored in this reference field.

View original source

https://www.servicenow.com/community/hrsd-articles/adding-additional-data-points-to-the-employee-information-card/ta-p/2310502