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.

autopopulate the email address

Shir Sharvit
Tera Contributor

HI,

 

This is the code I have written.

What should I add so that once the response email opens it will autopopulate the email address of the sender.

ShirSharvit_0-1700753556945.png

 

2 REPLIES 2

Sonam_Tiwari
Kilo Sage

Hi @Shir Sharvit ,

 

Check out this thread once if this is what you are looking for :

https://www.servicenow.com/community/developer-forum/email-client-reply-to-autopopulate/m-p/1732665

 

Consider indicating the response as helpful and marking it as correct if it meets your needs.

-O-
Kilo Patron

I don't think that property contains what you expect it to contain.

I don't even think it is used any longer as it is empty in my PDI, but also at client instances.

What you could use instead is something like:

var recipientEmail = gs.getProperty('instance_name', '') + '@service-now.com';