function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Manish Kumar 23Manish Kumar 23 

Want to do attachment in sfdc through email on custom object record

We need a functionality of email to attachement in SFDC.
on email from users with attachment , it should attach under notes and attcahment under record of ABC object

 
AbhishekAbhishek (Salesforce Developers) 
To Send Email from Custom Object you can use the standard functionality of Activities. If you have Activities enabled for your custom object make sure you have the Activity History related list on the layout, the is a Send an Email button that does the work.

Now, if you want to certain actions when receiving an email you need to create an Inbound Email handler class and use Apex code within that class to perform the actions you want.

This is an example provided by the documentation

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_classes_email_inbound_using.htm|StartTopic=Content%2Fapex_classes_email_inbound_using.htm|SkinName=webhelp

In addition to that you will need to do some configuration under Setup => Develop => Email Services, where you need to specify a new Service bound the Handler class I mentioned above. Also, you can generate a unique address receiving those emails you need to process.

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.