Expand my Community achievements bar.

Join us for Adobe Campaign Community Q&A Coffee Break on Thursday, March 7th at 8am PT with Eric Perrin, Gael Mouello, Chakravarthy Kalva, Bruce Swann and Sandra Hausmann.
SOLVED

Posting FormData object to external API from Workflow

Avatar

Level 2

Hello,

I would like to know if anyone can help me find how to send a file to an external API.

My external API has a "Content-Type = multipart/form-data" requirement.

As far as i know the only way to do this in javascript normally is to declare a FormData object, append values and file to it and send it through XmlHTTPRequest using Post method.

Problem is, the FormData object is not defined in Adobe Campaign Classic JS so I'm stuck. 

 

Thank you.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2
1 Reply

Avatar

Correct answer by
Level 2