- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 10:57 AM
I have a variable on a record producer mapped to pull over a field from the HR Profile. However, it is pulling the Value of the field instead of the Label. How can I change which one the variable displays.
Can I edit this on the variable itself, or do I need to add a Client Script on the record producer?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 11:26 AM
Got it - so is your Process Level variable a string variable? If that is the case, you could modify the processLevel line from your script include as below and it should work:
homePhone : profileGR.getValue('u_ph_home_ph'), //GlideRecord.getValue() method returns string so you don't have to call toString()
processLevel : profileGR.getDisplayValue('u_process_level'), //GlideRecord.getDisplayValue() method returns string so you don't have to call toString()
If this answer is helpful please mark correct and helpful!
Regards,
Christopher Perry
Regards,
Chris Perry

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 11:03 AM
Hi there,
Could you please share the code for how you are populating the record producer variable right now?
Regards,
Christopher Perry
Regards,
Chris Perry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 11:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 11:07 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 11:26 AM
Got it - so is your Process Level variable a string variable? If that is the case, you could modify the processLevel line from your script include as below and it should work:
homePhone : profileGR.getValue('u_ph_home_ph'), //GlideRecord.getValue() method returns string so you don't have to call toString()
processLevel : profileGR.getDisplayValue('u_process_level'), //GlideRecord.getDisplayValue() method returns string so you don't have to call toString()
If this answer is helpful please mark correct and helpful!
Regards,
Christopher Perry
Regards,
Chris Perry