I was wondering is there a possibility to use Salesforce Service Cloud to send out an email attachment to Marketing Cloud via Salesforce Standard Object "Notes & Attachments"?

Either using AMPScript or API calls?

Example using this url from "Notes & Attachments": https://c.cs6.content.force.com/servlet/servlet.FileDownload?file=00PN0000002uScw

To push to Marketing Cloud attached as an email an send out.

  • That URL isn't publicly accessible. You'd need to make it available the the SFMC servers as they send. In order to understand what you're trying to achieve, could you explain exactly what the use case is, please? Is this attachment specific to the recipient or a generic document sent to all?
    – Macca
    Dec 9, 2015 at 10:28
  • Hi Adam, What im trying to do ideally is to use salesforce to call out SFMC to send out an email (to/cc recipient) via a particular record (e.g oppty). On the same time it also send attachments to it where that attachment is residing in "note and attachment" from that record.
    – shunjieNeo
    Dec 11, 2015 at 1:06

2 Answers 2


As Adam says, one option would be to use SMTP Relay...


On the CRM side of things, you can configure SMTP relay...


This would route all workflow emails via SFMC from what I read. You'd have to discuss how to send selectively via SFMC with some Salesforce CRM experts (of which I'm definitely not one).

Taking another tack, I can only take you so far with Marketing Cloud. You can trigger an SFMC email either by rolling your own Apex triggers in CRM, or using the relatively new Triggered Send functionality of the V5 connector (the object needs to a have lookup field related to a CRM Lead or Contact)...


If the object's not directly related the the Lead or Contact, you'll need to roll your own trigger or the likes to access SFMC's APIs directly.

You can use the AttachFile() AMPScript function within the SFMC email to pull in an attachment from a URL and this URL would need to be passed in as a personalisation string or you could do some Salesforce AMPScript in the email to go search for this value, somehow.

Your challenge would be to make the attachment publicly available so that the AttachFile() can access the file. Using sites in Force.com, here's an example of a thread talking about how to do this...


  • Thank Macca and Adam !! i try out the suggestion and advices provided by you and Adam. =D
    – shunjieNeo
    Dec 14, 2015 at 2:22

It's certainly possible to send attachments through SFMC utilizing the AttachFile() AMPScript function.

As @Macca suggested, where the attachments reside is a key consideration.

Also, It's a per email charge.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.