Can we add attachments in Eloqua emails using API
Hi,
I have found that Eloqua API supports attachments. Have tried implementing the same in REST using the below end point and payload.
https://secure.p03.eloqua.com/api/REST/2.0/assets/emailError
Content-Type: Application/json
{ "name": "Email PDF TEST", "emailFooterId": 1, "emailHeaderId": 1, "encodingId": 1, "emailGroupId": 1, "subject": "Attach PDF", "attachments": [ { "type": "ImportedFile", "id":"736", "folderId":"42", "fileName": "test.pdf", "link": "<link>.pdf", "name": "Document PDF", "currentStatus": "Active", "depth": "minimal", "description": "PDF", "permissions": [], "redirectLink": "", "scheduledFor": "", "sourceTemplateId": "", "trackedLink": "" } ], "htmlContent": { "type": "RawHtmlContent", "html": "<html><head></head><body>attachment test</body></html>" } }
It is creating the email but the attachment is not getting added.
Can you please let me know if I am missing anything