cancel
Showing results for 
Search instead for 
Did you mean: 

Automate POST API with Send file option

kirtish.trivedi
Level 5
I have a requirement to send .xlsx file daily using POST API.

I have configured POST Method  And I have selected "Send File" option.

While I use API in BP Action, it asks for Binary. I have imported file as binary and passed the variable. It is working fine
My problem is I want to Automate this .xlsx file import in Binary variable  process since .xlsx file content will be different everyday . D
Please assist how to  achieve this

------------------------------
Kirtish Trivedi
------------------------------
2 REPLIES 2

ritansh.jatwani
Level 9
Hi @Kirtish Trivedi.

Please use the inbuilt function "LoadBinaryFile" available in File-->LoadBinaryFile to load the file. The filepath can be passed from a variable. PFB the screenshot for the same:

6857.png

Please let me know if you still faces any issue.​

------------------------------
Ritansh Jatwani Senior Consultant
Consultant
EY
Gurgaon
------------------------------

Hi @ritansh.jatwani,

Thank you for letting me know this Built in Function. It works.​

------------------------------
Kirtish Trivedi
------------------------------