I have a problem with my flow. It says that the route did not match or something like this I don't know.
I want to do the same as this guy in this video : https://www.youtube.com/watch?v=s3PC7tqqoI4
I replicate the same flows using my sharepoint and then I got this :
Do someone know where I do wrong please ? I'm quite confuse and I didn' find any solution on internet nor within the forum
Solved! Go to Solution.
Thanks for your reply. You be better to post this issue in PowerApps forum.
Believe the PowerAutomate issue is resolved now. I am not sure how PowerApps renders the HTTP response object which in your case is the PDF doc.
Most likely you are not using the correct file identifier for the Get File Content action step.
If you know the Filename then use the Get File Properties (SharePoint) action step filtered by File name, then use the file identifier in your Get File Content Action step.
If you need any further help in this please let me know.
Thanks for helping me with this issue !
I'm still getting error. Don't know if I done it correctly, i'm not experienced at all
In "get File properties" I can't choose other file than "Documents" (my folder where my docs are is in Documents>Contrats de sous-traitance)
Thanks for your reply.
You need to filter by filename. Then add a foreach loop to get the identifier.
Another option is if you know the full path then try using the Get File Metadata using Path action step. This should also give you the file identifier.
Thanks for your response
Each PDF have a different name and I would like to get acces to all of them. Can I filter them by ".pdf" maybe instead ?
I don't know how to do a foreach loop also, can you teach me how to do it please ?
Thanks for using your time helping me, I'm unexperienced with all of this
Are all the documents stored under the root of the library or in different folders. Could you please show a screenshot of your document library?
Thanks for the screenshot. So that means you need to get all the PDF docs, get each file identifier then pass to next flow step. Is that correct?
No no thanks to you for your help 😊
Yes this is correct, so then I can click on the gallery and the item I selected will be show in the PDF Visionner device in powerapps !
Thanks a lot
I don't think, I just have my Librairy called "Documents" and then I created a folder "Contrats de sous-traitances" in it to store my PDF contracts
Sorry for any misunderstanding, english is not my native language, I speak french
Please follow the below steps.
Remove your Get File content step and add the below steps
First add the list folder step. Select your SharePoint address and select the library and folder name. Below 'aj' is my SharePoint library name and 'Test2' is my folder name. Your case you need to select it accordingly.
Next we need to filter the PDF docs. So for this I am using Filter Array step.
Next we nee to add a For Each loop to iterate the PDF files from the array collection above and Get file contents
Add rest of your logic inside the For Each loop accordingly.
Here is my test result.
Please see my earlier reply. For some reason it didn't posted all the contents correctly. I have edited it again. Please have a look.
Thanks for your help, here is what the flow looks like now :
WHen I go to "My flows" "Selected flow" and then "Runs" i can see in the records that the status is "Succeeded" !! Thank you !
But when I try the flow in my app, it doesn't work, I don't know why :
You see, I have to click on the gallery above and then the document is showed in PDF Visionner. But here it doesn't work at all
When I click on " Open in my navigator instead" I have this message :
The translation is (after the word "message") : The input content is not valid : " the value "content-type" given "pdf" is not written well"
So I believe I have made a mistake despite your advice unfortunately
Thanks a lot for your help Abm
I corrected a little thing in the flow ;
In response step, instead of "pdf" I wrote "application/pdf".
Then I tried the application, last error dissapear but there is a new one instead !
If I click on "more informations button" it shows this message :
PDF.js v1.9.426 (build: 2558a58d)
Message: Invalid PDF structure
Ever heard about this before ?
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Many congratulations to the Season 1 2021 Flownaut Crew!
Check out our new profile badges recognizing authored solutions!
Check out the community blog page where you can find valuable learning material from community and product team members!