• Sajjad Mussani
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hi
Please help me with some code snippet for trigger that fires after a case is created using Email To Case functionality in SF.
Trigger should capture the case number, contact email, case subject and case body for the newly created case.
thanks
Hello
In my org, we already have the standard email-to-case setup. It uses our customercare@mycompany.com email address.
We also have "Case Auto Response Rule" that catches all emails coming to customercare@mycompany.com and sends a templated response with the case id.
Now, I have written a custome InboundEmailHandler to catch all incoming emails, check the subject line and do stuff in code.

Problem/Question:
Instead of creating a new email address to use for this customer handler, I would like to connect this to our main customercare@mycompany.com email address.  Any emails sent to this address should first go through my custom handler and then do email-to-case and Case Auto Response.

Any help would be greatly appreciated
Hi
Please help me with some code snippet for trigger that fires after a case is created using Email To Case functionality in SF.
Trigger should capture the case number, contact email, case subject and case body for the newly created case.
thanks