cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pato3
Regular Visitor

Having problems with OneDrive for Business while testing my flow

I'm currently doing a flow to attach uploaded files in MS Forms into an e-mail, but I'm always having problems with the OneDrive for Business process. In this flow in particular, I'm using Get file content using path, and though in my Inputs I have a "true" I always got this error in my outputs: 

 

"statusCode": 403,
"headers": {
"Pragma": "no-cache",
"Transfer-Encoding": "chunked",
"x-ms-request-id": "3c39829a-a818-4356-acdc-3de6863a4dd4",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "false",
"Cache-Control": "no-cache",
"Date": "Mon, 07 Jun 2021 13:20:18 GMT",
"X-AspNet-Version": "4.0.30319",
"X-Powered-By": "ASP.NET",
"Content-Type": "application/json",
"Expires": "-1",
"Content-Length": "91066"
},
"body": {
"status": 403,
"message": "Forbidden - \r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\r\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns:o=\"urn:schemas-microsoft-(etc.. this response is huge)
"source": "api.connectorp.svc.ms"

 

1 ACCEPTED SOLUTION

Accepted Solutions

If you don't have permission to view them manually because you are an intern then you won't be able to retrieve the contents of them to create the file in SharePoint.  You must have permission to retrieve and view the file in order to use the contents to create a new file because the flow runs in your security context.  You will not be able to do what you are trying to do without access to the files in OneDrive.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Pstork1
Dual Super User
Dual Super User

Did you try opening the file in OneDrive manually to make sure its there and that you can access it?

Can you post a screenshot of your flow so we can see how you configured it.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Yes, I checked manually and the files are in the OneDrive of my organization in their correct format, though once selected I cannot view them since I'm an intern and I dont have that permission in particular 😅.

 

But the problem in particular is not viewing them, but to select those items from OneDrive to put attach them somewhere else, like in Sharepoint or in an E-mail. Here I post the screenshots of the flow, most processes are written in spanish, but I believe it can be inferred wich processes they are (I might be wrong though, if you need it, please tell me to change their names manually).

 

 

Pato3_1-1623073881762.pngPato3_2-1623073900074.pngPato3_3-1623073922281.png

 

 

If you don't have permission to view them manually because you are an intern then you won't be able to retrieve the contents of them to create the file in SharePoint.  You must have permission to retrieve and view the file in order to use the contents to create a new file because the flow runs in your security context.  You will not be able to do what you are trying to do without access to the files in OneDrive.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

It was indeed an issue of Permissions with my account in the organization! I setted up a meeting with my manager to add her connection in the Power Automate Flow and it worked perfectly! Thank you very much!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,476)