What is the intended design for displaying record producer variable values on the target case table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 11:25 AM
I am wondering what the best practice recommendation is regarding how to display/map record producer variables to the target HR Case table. I've seen a handful of different recommendations in the Community over the years, some of it dating back to the Istanbul release.
Display variables from record producer on HR case (scoped)
One of the original posts I came across contains a reply from a ServiceNow employee, stating that the variable editor was removed from the scoped HR application and that users were to create custom columns on the respective COE tables and map the variables to these fields.
This Now Support article, last updated May 21, 2022, reinforces the concept of creating custom fields on the COE tables but mentions handling the mapping logic in an OOB script include. Digging into the code, and as the article mentions, the record producer variable names and values and stored in the Payload [payload] field on the HR Case [sn_hr_core_case] table in JSON format.
I've seen other posts where people have added the variable editor onto the COE tables but it sounds like it may be read only, which poses a problem if you want to update or set any variable values in a task.
Is the recommendation still to create custom fields on the COE tables? If so, how do we dynamically show them/hide the irrelevant fields? Do we need to make a UI view for every HR service that uses a record producer in order to handle which fields are shown?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 01:56 PM
@Nick Peters Yes, you need to create custom fields on the COE tables to map the answers to. Then check the Map to field box on the record producer. Then you can create UI Policies to make the variables visible, mandatory or read only on the HR Case form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 08:18 PM
Hi @Nick Peters ,
You will have to go with Custom fields on the COE table. to Hide/show the irrelevant fields , you can go with UI policies or client scripts.