You need to sign in to do that
Don't have an account?
HAZLITT VASUDEVAN
How to get email body information into custom object field in apex
Laptop Warranty is my custom object
now this code only sends the info to the given mail but I want the content to go into a separate custom object field as email body.
now this code only sends the info to the given mail but I want the content to go into a separate custom object field as email body.
As per the requirement I assume you just need the email body to be saved in a field.That could be pretty easy:
Get the record id of the custom object where you want the body to be saved ,( could you SOQL to fetch that)
and by using id, you can go for something like-
Thanks
All Answers
Please check out the code implementation from this thread:
https://developer.salesforce.com/forums/?id=906F00000008oD2IAI
You can try to implement the similar logic to get the email body into your custom objects fields.
Hope above information helps. Please mark as Best Answer so that it can help others in future.
Thanks.
As per the requirement I assume you just need the email body to be saved in a field.That could be pretty easy:
Get the record id of the custom object where you want the body to be saved ,( could you SOQL to fetch that)
and by using id, you can go for something like-
Thanks
@Shivankur @Oshin Agrawal