Robotic Process Automation (RPA)

 View Only

 How to upload a .xlsx file to a SharePoint site using the Microsoft Graph Files API and IBM RPA?

Anders Lundberg's profile image
Anders Lundberg posted Wed January 29, 2025 06:18 AM

Hi,

I'm using the IBM RPA command HTTP Request trying to upload an .xlsx file to a Sharepoint site. I use the Microsoft Graph Files API. I'm able to connect and read what's already is uploaded to the specific drive and Sharepoint folder where I would like to upload files. But the upload using HTTP Request with method = PUT, formatter = Bytes, Content-Type = application/vnd.openxmlformats-officedocument.spreadsheetml.sheet doesn't work.

When I run the same url and settings in Postman it works fine to upload a .xlsx file to the same Sharepoint folder.

I have tried several types of Content-Types and formatters in IBM RPA but I can't get it to work.

Anyone who knows how to make the upload work?

Is there another command in IBM RPA I should use?

/Anders