You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Can we add attachments in Eloqua emails using API

in Eloqua 3 comments

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

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!