Box - Magento Integration

I’m trying to transfer files (PDF, CSV, images, and videos) from Box to Magento. However, when I set up the flow, the files coming from Box arrive without any content, and I’m unable to open them on the destination side. Could someone suggest a solution for this issue?

Hi Nikhil,

To diagnose can you kindly share more details like screenshots of your flow steps (especially Box export and Magento import configurations) plus if possible recent debug or (self triggered) error logs.

Update: I also noticed you posted in another thread about Box-related issues. If this turns out to be connected, it may require Celigo’s involvement.

The Box export should have “Parse files being transferred” set to “No.” For the Magento step, you should choose HTTP as the connection, then choose your Magento connection. Do not choose the Magento connector in the application dropdown. After choosing HTTP, the step type should be “Transfer files into destination application.” Under the Advanced section, put blobKey as the “Blob key path.” For the rest of the setup, use whatever endpoint Magento provides for sending files to them.

Hi Tyler,
Thank You. I am able to extract the blob. But my endpoint in Magento requires a base64 type encoding. So is it possible to convert it into base64 by just changing the character encoding.

Yes, just change the character encoding to "Base64". I'm not sure how Magento expects the Base64 string to be sent, but it often requires you to send JSON with the Base64 string in a field, or send it as multipart form data. If you link the docs you're looking at, I can let you know.

Either way, you may need to reference {{blob}} in your HTTP body, and when we send the file we'll convert whatever {{blob}} points to into a Base64 string.

Sample JSON payload

Sample multipart form
https://docs.celigo.com/hc/en-us/articles/360052055191-Upload-a-file-or-record-as-multipart-form-data#upload-a-file-or-record-as-multipart-form-data-0

Hi Tyler,
Thank you again for the information.
So we are using an endpoint addon known as Amasty in Magento which accepts JSON base 64 type. Documentation : Guide for Product Attachments for Magento 2 [Amasty Extensions FAQ] .
Our ultimate goal is to send a pdf to Magento and attach it to the product.