<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007Wh2PICAZOkta Classic EngineWorkflowsAnswered2022-03-31T16:59:03.000Z2022-03-21T10:37:21.000Z2022-03-31T16:59:03.000Z

JoeH.35511 (Customer) asked a question.

Send carriage returns in Compose output to body of HTTP Raw Request

We're working with a vendor who's API requires data content type to be multipart/form-data

 

The data needs to be in the following form and include carriage returns at the end of each line.

 

--------------------------boundary

Content-Disposition: form-data; name="updates"

[{"employeeID":"ID","workEmail":"Username","status":"active","preferredName":"First name","lastName":"Last name","department":"Department","jobTitle":"Title"}]

--------------------------boundary--

 

We are putting this together in a Compose block and passing the output to the body of a HTTP Raw Request function but we haven't found a way to pass the carriage returns. 

Is this possible? Or is there a better method of putting the data together and submitting it?


  • JoeH.35511 (Customer)

    Hey Mick,

     

    Their API documentation is not publicly available. They recommended the following command to submit the data.

     

    curl -v -X POST {URL} -F "updates=[{\"employeeID\":\"{ID}\",\"workEmail\":\"{EMAIL}\",\"status\":\"active\",\"preferredName\":\"{FIRST_NAME}\",\"lastName\":\"{LAST_NAME}\",\"department\":\"{DEPT}\",\"jobTitle\":\"{TITLE}\"}]" -H "Authorization: Bearer {TOKEN}"

     

    Expand Post
  • MaxKatz (Okta)

    Hi @JoeH.35511 (Customer)​  - I reached out to support. They recommend to open a case so they can troubleshoot and look at the payload/documentation.

This question is closed.
Loading
Send carriage returns in Compose output to body of HTTP Raw Request