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"
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!
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.
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).
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.
WarrenBelz
146,635
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional