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
Paula Kern 4Paula Kern 4 

Send email from opportunity and have response email download the attachment to the opportunity that originally sent the email

Extreme newbie here.  I need to be able to send an email to person from an opportunity and then when the user responds download the attachment Is there any code out there for this?  Any help would be greatly appreciated
Avishek Nanda 14Avishek Nanda 14
Hey Paula,

Correct me if am wrong.
Do you intend to send an email from Opportunity where recepient should have an option to download the attachment of the Opportunity?

If this is user case then create a URL field on Opportunity. When you attach the file under file Update the External Sharing Link in the URL field. Include the Field in the Email template. When User Click on the link and download the attachment. 

Regards,
Avishek Nanda
Paula Kern 4Paula Kern 4
I just want the attachment to automatically download to the opportunity
Avishek Nanda 14Avishek Nanda 14
Hi Paula,

If your user are using salesforce to Outlook. It can be done. Please find this article. 

https://help.salesforce.com/articleView?id=Why-is-my-email-not-attaching-to-the-Opportunity-record-when-using-Email-to-Salesforce-or-Salesforce-for-Outlook&language=en_US&type=1

Else you can write a email services code.

let me know if this helps. 
 
Regards,
Avishek Nanda