0

I'm trying to create a workflow rule or trigger that will only fire when an outbound Email Message was generated by Auto Response rules. Is there a field (or a set of fields) that can be used to determine this? Is there some other way to identify the Email Message as an Auto-Response message?

  • Does the content of the outbound email affect what your workflow is going to do? If you don't care what the email says, then you should just be able to run a workflow rule or process builder or Apex trigger using the same criteria as the auto-response rule. Seems like your automation can be independent of the auto-response, though you use the same criteria of course. – David Cheng Dec 24 '17 at 22:52
  • For other reasons, notably, traceability, I tend to put the name of the template in the footer of the email message. This way, when as sysad, someone forwards me an email and says "change xxx", I can figure out which email template is the right one to modify. You could leverage this idea and inspect the contents of the message to ascertain its source, provided you use unique email templates for your auto-responses – cropredy Dec 24 '17 at 23:25
  • @DavidCheng - The issue is that there is business logic that should only run if an email was sent via auto-response. I don't know how to create a trigger or Process Builder that will only run when the auto-response rule has sent an email. I believe that (behind the scenes) the auto response rules are only run when the DML Options for auto-response rules are set. I don't know how to make a process builder or trigger that only runs when certain DML Options are set. – salesforce-hacker Dec 24 '17 at 23:34
0

You can define auto response rule through out-of-box functionality.

Normally for sending an auto response email we use to define a Organization wide email address like noresponse@validemaildomain.com

Secondly, this auto response email can be found as Task with Email attribute as checked.

So, based on above two you can identity email From addresses of auto response email

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.