Skip to main content
Question

Hi, I am trying to pass a file in the rest web service post request but I didn't see any option in post request action anyone can guide me on how can we pass a file in a post request. I have tried using custom parameters. Thanks, Arun


Screenshot (193)_LI

6 replies

Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2693 replies
  • March 11, 2022

Hi @Arun Kumar​ ,

 

Please use below Bot Store for uploading a file via POST method,

 

https://botstore.automationanywhere.com/bot/get-post-file-package/p>

 

Command : POST File


Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2693 replies
  • March 11, 2022

Hi @Arun Kumar​ ,

 

Can you pass the Subscription key in the header and File as below and try?

 

Pass File as Binary or Raw


  • Author
  • Cadet | Tier 2
  • 2 replies
  • March 11, 2022

Hi @ChanduMohammad S​ ,

 

Thanks for the response. I am not passing the file as form data. my task is to pass a file under the body as a row data or binary file. I think this https://botstore.automationanywhere.com/bot/get-post-file-package work for form data. for a better understanding, I need to pass only the subscription key for API in the header and file under the body as raw data or binary file.Screenshot (196)_LI I attached is my postman application screen on how I am passing file.


Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2693 replies
  • March 11, 2022

Hi @Arun Kumar​ ,

 

I'd recommend opening a support ticket with AA using below link

 

https://apeople.automationanywhere.com/s/support/p>

 

if you don't have access to the above link, Send an email to AA Support team "apeopleopsteam@automationanywhere.com" to get the access.


  • Author
  • Cadet | Tier 2
  • 2 replies
  • March 11, 2022

hi @ChanduMohammad S​ ,

 

I am trying in the same way but it was not working for me that's why I raised a query here. check attached screenshots. thanks, ArunScreenshot (197)_LIScreenshot (198)_LI


Forum|alt.badge.img+12

Hello @ChanduMohammad S​, Please refer steps details available on below KB article.

https://apeople.automationanywhere.com/s/article/FAQ-Control-Room-API/p>


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings