Script in record producer's variable field default value is not working

mohammadtaneem
Tera Contributor

hiii iam working on record producers i  am getting the issue while  fetching values based on currently logged in user through default value variable.Help me to resolve the bug

8 REPLIES 8

Hemanth M1
Giga Sage
Giga Sage

Hi @mohammadtaneem ,

 

What value are you getting in from the logged in user??? can you share your script here if that's ok.

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Hi @mohammadtaneem ,

 

sorry didn't see the screenshot, here you go:

 

HemanthM1_0-1754935315054.png

 

 

javascript: gs.getUserID()

javascript: gs.getUser().getEmail();

 

Hope this helps!

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Hi @mohammadtaneem ,

 

If this answered your question, please close the loop so that others can refer to it as a working solution.

 

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Brian Lancaster
Tera Sage

The D need to be capitalized in gs.getUserID() you have gs.getUserId().