Hi all,
I know there are several posts about this, but I am stuck even after viewing them all.
I have a flow that requires a step to see if a file already exists by a user, then goes into a conditional to handle it.
On my "yes" side of the conditional, I need to grab the "Id" of a file so that I can grant permission to a user. That connector requires specifically the "Id" of a file.
The issue I am having is that this stage, I only have the file name and document library, so I need to find the Id of a file in a document library using path.
I checked sharepoint and my path is: https://(sharepoint)/sites/(my site name)/(folder)/Sharepoint_ID_4200.docx
The issue I am facing is that my "Get file metadata using path" results in a 404 every run, even when the file exists.
When I type the whole path (I found via sharepoint), of https://(sharepoint)/sites/(my site name)/(folder)/Sharepoint_ID_4200.docx , my web browser will download the file. I can also confirm that Sharepoint_ID_4200.docx exists visually in my document library.
My inputs:
site address (URL of the sharepoint site, from a dropdown)
Path: /(folder)/@{variables('File')}
File is provided in a string variable and the input at this stage is a string of "Sharepoint_ID_4200.docx" with no spaces.
I'm at a loss on what to do here, I need to find the "Id" of a specific file using only the location and name of a file, so I assumed by path would be a good approach, but it refuses to acknowledge most file existence when I can visibily see the file existing in the library.
I know there are several posts about this, but I am stuck even after viewing them all.
I have a flow that requires a step to see if a file already exists by a user, then goes into a conditional to handle it.
On my "yes" side of the conditional, I need to grab the "Id" of a file so that I can grant permission to a user. That connector requires specifically the "Id" of a file.
The issue I am having is that this stage, I only have the file name and document library, so I need to find the Id of a file in a document library using path.
I checked sharepoint and my path is: https://(sharepoint)/sites/(my site name)/(folder)/Sharepoint_ID_4200.docx
The issue I am facing is that my "Get file metadata using path" results in a 404 every run, even when the file exists.
When I type the whole path (I found via sharepoint), of https://(sharepoint)/sites/(my site name)/(folder)/Sharepoint_ID_4200.docx , my web browser will download the file. I can also confirm that Sharepoint_ID_4200.docx exists visually in my document library.
My inputs:
site address (URL of the sharepoint site, from a dropdown)
Path: /(folder)/@{variables('File')}
File is provided in a string variable and the input at this stage is a string of "Sharepoint_ID_4200.docx" with no spaces.
I'm at a loss on what to do here, I need to find the "Id" of a specific file using only the location and name of a file, so I assumed by path would be a good approach, but it refuses to acknowledge most file existence when I can visibily see the file existing in the library.
Categories: