We have been sending emails and SMSes from Service Cloud through marketing Cloud.We are just using SFMC as a gateway and using its Transactional API to send the emails and SMSes.We are building the content/body in service cloud and sending in the payload to Transactional API. Now we want to send Attachments in the email/SMSes .Is it possible to do it via transactional API. How can i send attachments from Service cloud in the payload? Any immediate help is much appreciated. This is how we are preparing the payload in SFDC.
'to' => em.recipient,
'contactKey' => em.contactKey,
'attributes' => new Map<String, Object> {
'HTMLContent' => em.content,
'Subject' => em.subject
}
};
recipients.add(recipient);
}
Map<String, Object> requestBody = new Map<String, Object>{
'definitionKey' => sendDefinition,
'recipients' => recipients
};
return requestBody