cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pgraver
New Member

File Id is not valid

Capture 3.PNGI am trying to build a flow where an email will get sent out at a specific time and will grab the latest file in a folder and attach it to the email. I am having problems with when I try to grab the file content. It gives me the error of "The File id is not valid". Any help would be appreciated.

Capture.PNGCapture 2.PNG

3 REPLIES 3
tom_riha
Super User
Super User

Hello @pgraver ,

I think that the 'Get file content' action is asking for the file identifier, not the file path. You should have the file identifier among the dynamic content coming from the 'List files in folder' action.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
pgraver
New Member

Hello @tom_riha, I went ahead and made the change and got "The response is not in a JSON format" Capture 4.PNG

This is what I changed.

Capture 5.PNG

Just the file Id, not path.

image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,790)