cancel
Showing results for 
Search instead for 
Did you mean: 

400 error when using the Sharepoint download file action

Jedwards54
Level 4

HI 

I'm getting a 400 Bad request when trying to download a file using the Graph api - Download Action. 

I have entered the Sharepoint Site id File ID and access token which are all correct, but still the action is refusing to work. Any thought on how to get this resolved? 

Thanks, 

Jack

 

Jedwards54_0-1750245690209.png

 

 

10 REPLIES 10

Neel1
MVP

Hello @Jedwards54 - Bad request means there is some issue in the input how you are passing- syntax issue, param issue.

also, can you share which DX asset you are using.

i just tried with VBO v3.1.0  [See below] and it worked fine [ this is DX asset link - BluePrism Digital Exchange ]

Input are self explanatory. Let me know if you need help. 

 

Neel1_1-1750247654814.png

 

 

HI @Neel1 

thanks for the response. I have just tried the following action and still get the same issue. 

I'll go an check the Dive ID and Site ID now to see if there incorrect. 

 

Neel1
MVP

@Jedwards54  - Okay . Let me know if you need help in finding those IDs

@Neel1 do you know the best way of Retrieving a Drive ID?

Neel1
MVP

@Jedwards54 - while there are multiple way to fetch Drive ID. You can find Drive ID from  Action - Get Default Drive Details Action.

Input - Site iD and token

Output - You will get Content data item [JSON format]. Convert it to Collection using Utility -JSON and

id column will be your Drive ID in collection

Neel1_2-1750249532719.png

 

Neel1_1-1750249402806.png

also refer below link for more information.

https://morgantechspace.com/2022/09/how-to-find-site-id-drive-id-and-item-id-using-microsoft-graph-api.html

 

 

@Neel1 

thanks for your help. 

I have updated the ID'S but still getting the 400 Invalid request. 

 

Thanks, 

Jack

Neel1
MVP

Strange @Jedwards54 

is  your drive ID look like this - "b!cJOPwqCdDY_pSxkR2OWudYi3nForc2qAH...-MzEsZmU4NDE" ?

Neel1
MVP

@Jedwards54 -

can you confirm if your drive id look like this - b!cJOPwqCdDY_pSxkR2OWudYi3nForc2qAH...-MzEsZmU4NDE

HI @Neel1 

all sorted an now working, it was in fact the drive ID that was incorrect. thanks for your help.