Hi...
i have created a flow integrated with PowerApp.. i am getting Folder Name from PowerApp (String Vaule)..
i used this folder name in Onedrive List files connector instead of selecting Last folder i used the string value (which i got from power apps), i am getting following error
BadRequest
{ "status": 400, "message": "API not found", "source": "127.0.0.1" }
the Same Folder Name(string value) used in FTP Server FTP works fine..
Item<Listfilesinfolder_Folder> contain string value PaulStreet
if i used the folder by selecting from Root Folder .. flow works fine..
Please help me to resolve this...
Thnaks...
Solved! Go to Solution.
This is because the value that is required by the "List files in folder" action is actually an ID, not a path. OneDrive has a unique ID for each file/folder, which is preserve when you rename/move the file/folder -- and which is what the connector uses to communicate through the OneDrive API.
For FTP, since there is no such thing, the connector uses the path as the ID. That is why it is working for you.
The right thing to do, would be to browse the folder, so that you will get the File/Folder ID. And then, use the ID to make the call to list the files in the folder. That is automatically done by the Flow UI.
If you want to do this through PowerApps, you will have to first make a call to "Get file metadata using path", and then from the response you can use the "ID".
HTH
Hi @Talha,
Thanks for reporting this.
It seems that currently the Folder input under OneDrive for Business "List files in folder" can't accept the dynamic content. I tested it and got the error message below:
"status": 404, "message": "The resource could not be found.", "source": "127.0.0.1"
Which indicates that it can't find the proper folder path based on the value input.
The error message you encounted should be related with the Parameter you specified, if you choose the "Ask in PowerApps" multiple times, it will generated the API error.
I have forwarded from my side, if I have any feedback, I will post here.
Regards
This is because the value that is required by the "List files in folder" action is actually an ID, not a path. OneDrive has a unique ID for each file/folder, which is preserve when you rename/move the file/folder -- and which is what the connector uses to communicate through the OneDrive API.
For FTP, since there is no such thing, the connector uses the path as the ID. That is why it is working for you.
The right thing to do, would be to browse the folder, so that you will get the File/Folder ID. And then, use the ID to make the call to list the files in the folder. That is automatically done by the Flow UI.
If you want to do this through PowerApps, you will have to first make a call to "Get file metadata using path", and then from the response you can use the "ID".
HTH
Thanks Sameer...
By using ID, List files in folder - Onedrive connected woking...
Thanks again..
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
13 | |
10 | |
9 | |
6 | |
6 |
User | Count |
---|---|
21 | |
20 | |
17 | |
8 | |
8 |