We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to get user asset details and auto populate when certain field selected in record producer

suryateja07
Tera Contributor

How to get user asset details and auto populate when certain field selected in record producer 

2 REPLIES 2

Tanushree Maiti
Tera Patron

Hi @suryateja07 

 

Option 1 (No code): 

  • Navigate to your Record Producer, and go to the Variables related list.
  • Create or open the variable you want to auto-populate (e.g., user_email).
  • Scroll down and locate the Auto-populate section.
  • Set the Dependent field to the user reference field (e.g., requested_for).
  • Set the Dot walk path to the specific user field in the dropdown (e.g., email). Save the form.

 

TanushreeMaiti_0-1783873342465.png

 

Refer: https://www.youtube.com/watch?v=IMLdnF7ufOg

 

Option2 (code) : GlideAjax with Catalog Client Script

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Technical Consultant Manan Bhatt walks us through how to Auto-populate Variables on Catalog Item in the ServiceNow Utah Release. You can auto-populate the catalog item variables using an onchange client script. Learn more: ...

Sandeep Rajput
Tera Patron

 You can write an onChange client script with a GlideAjax call to a client callable script include to fetch the details you need. For more information please refer to https://www.servicenow.com/docs/r/api-reference/c_GlideAjaxAPI.html.