Plytix multipart/form-data

Good Morning, 

I'm new to using multipart/form-data. I'm trying to do a PUT request to replace asset content. I did a POST request to retrieve the SKU's from Plytix. I then made a get request to Orgill to retrieve the Images/ documents. It was returned in a XML format so I made a script to turn that into JSON and returned the data. I'm pretty much stuck on the multipart/form-data request body. All of the attempts I've made returns: "The body does not have valid data required for multipart/form-data request."

 

 

0

Comments

1 comment
Date Votes
  • Joseph on your export, you should set a path to records and it should be "data". The Plytix api is responding with a data array and every object in that array is a sku. You'll save yourself from having to use the one-to-many option on every downstream bubble. See reference in this other post on how to do it: https://docs.celigo.com/hc/en-us/community/posts/23918214529691/comments/23992301646107.

    As for the rest of your issue, you don't actually have the blob of the image - you just have the url. You need a lookup step to get the actual contents of the image and the use that to post to Plytix.

    Lastly, you should definitely not have the user token hardcoded into your url. That should all be setup on the connection properly so it's encrypted.

    I would suggest you come to office hours since there are several things to fix here.

    0

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post