+ Start a Discussion
siva shakthisiva shakthi 

Email service Class

Hi,
I'm creating an email service class.
I need to read the body of the email template which I'm receiving and I
need to update the status on the custom field based on the template message.
condition to check id and error reason or success reason.
could you please help me with this.

Thanks in advance.
Best Answer chosen by siva shakthi
Neha AggrawalNeha Aggrawal
Hi Siva,

I think this link should help you: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_inbound_using.htm

The code is quite straight forward. Just modify it to suit your requirements.

Hope this helps.
Thanks and Regards, 
Neha Aggrawal
www.initaura.com - Everything Salesforce (http://www.initaura.com)