We are using Salesforce and Marketing cloud to process data, create a campaign, populate a template and send emails. Pretty much as you'd expect. Separately, we have an internal system that is connected to an app that our users use to access their details. This system doesn't have the capability to send emails in the same format as Salesforce/SFMC (it doesn't matter if Salesforce or Marketing Cloud sends the email).
The Plan: we are going to create the email in SFMC but not send it. Then push/pull that email, with all fields populated, to our internal system. The receiving station can display emails in the format that SFDC/SFMC would create but cannot create emails in that format. We cannot send health related information in the emails to the recipient but we can through the app which has a gateway to access. In summary: Salesforce makes pretty emails, our app can display personal information which cannot be included in an email. We want to send pretty emails to recipients that have calls to action based on their personal information.
Research: I have been doing a little research looking through the SFMC API documentation and especially this: SFMC API Documentation|Email to work out if this is possible.
The Push vs Pull argument would be better if PUSH was the solution but I am unsure if the receiving system can accept the push. I am making the assumption that it can.
- Can we generate the email and not send it? In a class, in SFDC?
- Can we push the email to the other system in a SOAP API call?
- Can we move the email to the other system in a REST API call?
- Which is the better approach? My assumption is that a RESTful call may not handle the size of the data in an email - am I wrong?
- What form does the data in the email take?
- xsd:string is listed in the documentation but what about images etc?
I don't have a developer on my team right now so some of this may seem basic API but please forgive me my lack of knowledge.