Script to Auto-populate email address into field within record producer.

jewing
Tera Contributor

Hello,

 

I created a record producer for a service that's designed to allow users to request access to another system on our infrastructure. In the simple workflow, the requestor selects their requested user in the first field that is a "reference" of "user sys_user". I'm wanting to automatically fill in the next field entitled "email" with the email address of the user identified in the previously selected field. Any ideas on how to accomplish this as I don't see much information for this specifically?

 

See the attached screen shot for better illustration:

  • Field 300 - User First & Last Name - Reference > "user sys_user"
    • Data captured from "user sys_user" reference in Field 300 automatically populates email of selected user in Field 450. 
  • Field 450 - user email - Single Line Text (Automatically receives email of previously selected user in Field 300)

Thank you for any information you can provide.

 

5 REPLIES 5

Tarun Yadav
Tera Contributor

Hi ,

 

There is no need to write any client script.

 

Servicenow has introduced "Auto Populate" feature in catalog variables which can be directly configured with No-Code.
TarunYadav_0-1679893169326.jpeg

You can use this feature and define the autopopulate field based on another question.

 

Please mark this as helpful and correct if it resolves your query

 

Regards

Tarun Yadav