Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Auto populate "requested for" email id and manager

karunasrikuna
Tera Contributor

Hi , 

 

I am working on creating a catalog item , I want to auto populate the email address field and manager field based on "Requested for" field. How can we achieve this. Any help would be appreciated.

 

Thanks,

Karuna.

 

 

6 REPLIES 6

Rohit99
Mega Sage

Hi @karunasrikuna,

You can use the Auto-Populate section which is provided in variables of maintain items.

attaching screenshots for reference.

 

email_03.PNGemail_04.PNG 

 

Please mark my response as correct and helpful if it helped solved your question.

 

Thanks,

Rohit Suryawanshi

Yashsvi
Kilo Sage

Hi @karunasrikuna,

To auto-populate fields based on the "Requested for" field in a ServiceNow catalog item using the Out-Of-The-Box (OOTB) feature:

Use Auto Populate Feature
1. Navigate: In your catalog item, go to the variable form for each variable you want to auto-populate (Email Address and Manager).
2. Auto Populate Configuration:
- For Email Address:
1. Open the Email Address variable.
2. Scroll to the Auto Populate section.
3. Set Reference qualifier to the `Requested For` field.
4. Use the script: `javascript:current.variables.requested_for.email`
- For Manager:
1. Open the Manager variable.
2. Scroll to the Auto Populate section.
3. Set Reference qualifier to the `Requested For` field.
4. Use the script: "javascript:current.variables.requested_for.manager"

 

Yashsvi_0-1717747189507.png

 

By using the OOTB Auto Populate feature in the variable form, you can easily configure the `Email Address` and `Manager` fields to auto-populate based on the `Requested For` field in your ServiceNow catalog item.

 

Thank you, please make helpful if you accept the solution.