We have a number of automated processes that generate emails into our helpdesk. The “From” of these messages is the process user and not a live requestor.
For example, we have a process that finds all the customers who’s accounts have been deactivated since the last time the report was run. For each deactivated account found an email message is sent to the helpdesk queue responsible for dealing with these things. The emails are each plain text. The body of each message contains the customer’s Full_Name, Email_Address, Account_End_Date. Something like:
Account deactivation notice for customer Alice Aubrey (firstname.lastname@example.org). Account deactivated on 2015-02-20 13:00:00
This can be reformatted easily so I am not concerned about that.
I would like a template that can be associated with the “On Resolve” action that will harvest the Full_Name, Email_Address, Account_End_Date fields above and then create an outbound message to the customer that says something like:
Dean Alice Aubrey,
This is to notify you that your account with us was deactivated on 2015-02-20 13:00:00
I have tried creating a template that tries to parse the $Ticket->_RecordNote field but I’m not sure that is the way to go… because it didn’t work
What is the best way to harvest data from the initial ticket body for use in an outbound template
Is it OK to CC in the template as I suggested above?