I am trying to get the Identifier of a file in SharePoint by its filename so I can delete it. The file came from a Form and I get the filename with:
first(body('Parse_Dust_Blown_Out_Photo_JSON'))['name']
When I use "Get files (properties only)" with a Filter Query of:
FilenameWithExtension eq '@{first(body('Parse_Dust_Blown_Out_Photo_JSON'))['name']}'
It says the file is not found.
When I don't use a Filter Query and I output the "Get files (properties only)", it shows the file is there:
[
{
"ID": 562,
"{Name}": "bruce-banner_Adam Haas",
"{FilenameWithExtension}": "bruce-banner_Adam Haas.jpg",
"{Path}": "Shared Documents/Apps/Microsoft Forms/Daily Mulch Checklist/Photo of Dust Blown Out/",
"{FullPath}": "Shared Documents/Apps/Microsoft Forms/Daily Mulch Checklist/Photo of Dust Blown Out/bruce-banner_Adam Haas.jpg",
"{IsCheckedOut}": false,
}
]

So what am I doing wrong?