cancel
Showing results for 
Search instead for 
Did you mean: 

Downloading Files using sharepoint

harvins.abraham
Level 2

How can I use the graph vbo to download images files from a sharepoint folder How do I get the access token for this?

4 REPLIES 4

justin.shea
Staff
Staff

Hi harvins.abraham, 

Are you using the Microsoft Graph – Download Files object from the DX? 
The User Guide states the following prerequisites: 

  • Blue Prism v6.4 or later
  • Microsoft Graph – Authentication VBO

Are you able to use the Microsoft Graph – Authentication VBO to get the access token? 

Be sure to read through the User Guide for this, as there are many specific steps. You might need to work with your IT department to ensure you have the correct permissions. 

Hope this helps! 

Hi Harvins

You can check below Microsoft article  As outlined in the article you need certain admin access to register the  application and generate access token. As Justin mentioned, I would suggest to reach your IT to get that info

https://learn.microsoft.com/en-us/graph/auth/auth-concepts 

https://learn.microsoft.com/en-us/graph/auth-register-app-v2

-----------------------
If I answered your query. Please mark it as the Best Answer

Harish Mogulluri

Hi Harish!

I'm trying to download files in OneDrive folder. I've managed to ask the admin to create Registration in Azure Portal and I currently have my Tenant ID, Client ID and Client Secret. When I tried authenticating to obtain the access token, I got an error and my Status Code ="401". Could you advice me on how to solve this issue? Also, what should I input for the Username and Password while I'm using "Get Delegated Access Token".

muzzammil_1999_0-1725349931378.png

muzzammil_1999_1-1725350074052.png

 





Hi @muzzammil_1999 ,

It looks the credentials you are using dont have access 
CHeck the highlight point in Microsoft doc

harishmogulluri_0-1725418609851.png

https://learn.microsoft.com/en-us/graph/auth/auth-concepts

-----------------------
If I answered your query. Please mark it as the Best Answer

Harish Mogulluri