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
J. Scott CromieJ. Scott Cromie 

How to get a "permalink" to an attachment to send through email (from node.js app)

Hey fellow propellerheads,
 
I am building an integration with SFDC out of a node app, and I would like to get the URL to an attachment and provide it as a permalink (or a 30 day link if necessary) to an end user.  In essence, I'm looking to return the SRC="https://<myurl>/services/data/v37.0/sobject/Atachment/<AttachId>/Body" which my FE guy would throw into an <A> tag in both a page and an email.
 
I haven't seen anything out in the wild yet which would allow this - just a note in the docs stating that sending an email out of SFDC will give a permalink if the attachment is over 3MB.
 
Anyone out there have any examples of doing this?
 
Thanks in advance for  the help.
 
Scott