Sharepoint Connector - Errors

0
Hello everyone,   I have a few questions about the SharePoint Connector.   I can currently display my various SharePoints drives in the explorer and navigate within them. However, I cannot create a drive item. When I create a new drive item, I also wonder what the option "List item Fields" means. Do I have to create them or not? These are also on the page of a new drive item.   If I select the document I want to upload on the page of a new drive item and click on the "Create" button, I get the error message shown below.   I also wonder what the option "Create List Item" is. I can also create this under a selected drive next to "Create Drive Item". What ist he difference?  If I try to create one I get another errror shown down below too.   Finally, I wanted to ask why there is no option to delete a drive item directly in the overview. I have not found any corresponding microflows.   Enclosed is my error message, which comes from the microflow "Sub_ResumableUpload" and there from the Put command. For test purposes, I also used the option "Use HTTP authentication" under the "HTTP Headers" tab. With valid and invalid login information. The error message was the same.   I have already granted all possible authorizations. I currently have the "Sites.FullControl.All" authorization and don't know what to do.   Create Drive Item Error: 400: Bad Requestat Sharepoint.Sub_ResumableUpload (CallRest : 'Call REST (PUT)')at Sharepoint.CreateDriveItem (SubMicroflow : 'Sub_ResumableUpload')at Sharepoint.ACT_CreateDriveItemCreate (SubMicroflow : 'CreateDriveItem')Advanced stacktrace: OK   Create List Item Error: Unable to create list item: 400{"error":{"code":"invalidRequest","message":"Files and folders should only be added to a DocumentLibrary via the OneDrive API","innerError":{"date":"2025-02-17T09:51:44","request-id":"***","client-request-id":"***"}}} OK   Thanks for helping me out!
asked
1 answers
0

Hello DD,

 

It looks like your problem is more API related than it is Mendix related.

 

In this stackoverflow post someone experienced the same problem:

 

https://stackoverflow.com/questions/50851894/how-to-create-sharepoint-list-item-with-microsoft-graph-api 

 

In short you need to use first the OneDrive related API before you can use the sharepoint.

 

Hope this helps,

 

Good luck!

answered