How to set dynamic reply from email address when replying to email from the ticket

ShubhamK2600572
Tera Contributor

I have a requirement when incident application is x then when anyone reply to an email from the ticket should send from email address y but else it should send from SMTP email address. For this I have created a reply sent email client template and i have written the script but it is sending all email from y email address not for if incident application is x.

1 ACCEPTED SOLUTION

@ShubhamK2600572 

did you add log and see what came in app variable?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@ShubhamK2600572 

share your config screenshots and script

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@ShubhamK2600572 

did you add log and see what came in app variable?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

It is giving undefined value