Script in record producer's variable field default value is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 04:45 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 10:03 AM
Hi @mohammadtaneem ,
What value are you getting in from the logged in user??? can you share your script here if that's ok.
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 11:02 AM
Hi @mohammadtaneem ,
sorry didn't see the screenshot, here you go:
javascript: gs.getUserID()
javascript: gs.getUser().getEmail();
Hope this helps!
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @mohammadtaneem ,
If this answered your question, please close the loop so that others can refer to it as a working solution.
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2025 10:23 AM - edited 08-11-2025 10:24 AM
The D need to be capitalized in gs.getUserID() you have gs.getUserId().