Recent searches
No recent searches
Send automated e-mail to e-mail address in a customer field (via trigger or automation)
Answered
Posted Nov 16, 2023
I need to send a selected macro to an e-mail address contained in a customer field upon ticket creation or update. From what I have seen this is only possible through use of webhooks with the e-mail address included as a 'cc' rather than a 'to', has anyone found or can anyone suggest a solution that allows the macro to be sent directly to the required e-mail?
If not can anyone share their solution to adding an e-mail address in a custom field to a macro via webhook?
Thanks!
0
3
3 comments
Jacob the Moderator
Hi Matt,
I can think of a few options using a side conversation action from either a macro (manually applied) or a trigger (automated). Not knowing the exact use case here, I would caution against sending emails on every ticket update - are you looking to keep someone in BCC on the ticket?
Assuming your custom field is a drop-down ticket field, you could create a macro like this:

Where the To field holds the placeholder for your custom field "{{ticket.ticket_field_option_title_14149716112023}}", the number part should be your field ID.
You could also automate this using a trigger, like this:

I hope this helps you out.
2
Matt Way
Thanks, will take a look at the above.
For clarity, the use case is that when a ticket is created I need to reply to both the ticket requester and a third party with different macros. The third party e-mail is a variable that will be entered into a custom field in ZD when the ticket is initially created via API.
There would not be an update sent to the custom field e-mail address on every action, only when specific actions/changes were completed on/to the ticket.
I would need responses from the third party e-mail address to be visible in the ticket but not to the requester
0
Jacob the Moderator
Hey Matt Way
Sorry for the delay, it sounds like the trigger solution I outlined should work for your use-case, if you're using a text field to hold the email, you may need a different placeholder.
0