Hello Everyone,
I am building a flow which is connected with PowerApps. I am trying to get file information from SharePoint File Document Library. The idea is that the file ID (ItemID) is fed into the flow from PowerApps, and the flow is supposed to retrieve the file info.
Now I have two files in the document library, as show below. One files ID number is 1 and the other one is 2, I have verified it.
When the ID number "1" is sent from PowerApps into Power Automate, it works just fine and it pulls data.
But when I send the number 2 from PowerApps into Power Automate, it gives me an error. Stating that the file is not found.
I have no idea what is the problem, any help will be greatly appreciated.
Hi Pstork1,
I created a flow, where I can enter the FileID number manually and try to get the file. And it works, SS below:
Hi Happyume,
When I copy paste the link, it works, I get this:
Did you double check that the item id for the second file is actually 2? SharePoint doesn't reuse ID numbers so if file 2 was created and then deleted and then recreated it would be a different ID. Add ID to the view in SharePoint and verify the actual ID numbers.
The first thing to try will be going to
https://aris.sharepoint.com/sites/IODS_Project/_api/web/lists/GetByTitle('IODS_Jobs_Master_File')/Items(2)
and providing what output do you get?
For SharePoint Lists, you should get an XML output starting like:
<?xml version="1.0" encoding="utf-8"?><entry xml:base="https://aris.sharepoint.com/sites/IODS_Project/_api/" xmlns="http://www.w3.org/2005/Atom"