Forum Discussion
Get File Content Using Path - Not Found Error
I'm trying to create a simple Flow to convert a document to PDF (from a SPO Document Library) and then email it. (How this isn't OOB functionality for SPO is beyond me and a frustration that I will take out in another venue )
Anyway, https://docs.microsoft.com/en-us/connectors/sharepointonline/#get-file-content-using-path for the SP connector keeps saying my file isn't found, but it is, and I have fought with it enough and am breaking down to ask for help. I can literally copy/paste the passed String into my browser and up pops the file. (Oh, also, I tried https://docs.microsoft.com/en-us/connectors/sharepointonline/#get-file-content and it says the ID is invalid so, yep.. idonno.)
Thanks!
Solved it - posting as a reply for future reference in case it's helpful to someone else.
Need to use "Get File Properties" after "For A Selected File" because the Dynamic Value "ID" from "For A Selected File" is not the "Identifier" that "Get File Content" wants.
So "Get File Properties" uses "ID" as input, and then you use its output "Identifier" to "Get File Content" and works like a charm.
Entirely unnecessary, imo, because why can't "For A Selected File" just return all the properties for that selected file? BUT more importantly is not referenced anywhere in the https://docs.microsoft.com/en-us/connectors/sharepointonline/#get-file-content for this Connector.
5 hours I will never get back.
2 Replies
- wkeberBrass Contributor
Solved it - posting as a reply for future reference in case it's helpful to someone else.
Need to use "Get File Properties" after "For A Selected File" because the Dynamic Value "ID" from "For A Selected File" is not the "Identifier" that "Get File Content" wants.
So "Get File Properties" uses "ID" as input, and then you use its output "Identifier" to "Get File Content" and works like a charm.
Entirely unnecessary, imo, because why can't "For A Selected File" just return all the properties for that selected file? BUT more importantly is not referenced anywhere in the https://docs.microsoft.com/en-us/connectors/sharepointonline/#get-file-content for this Connector.
5 hours I will never get back.
- scottalanturnerCopper Contributor
Two hours I will never get back - thanks for this - worked for me!