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

get file metadata in flow cannot be used with fileid, internally reverting to "get file metadata using path"

Hi,

 

I'm trying to get the metadata for a file by file id but my flow kept on failing with odd errors ("file /19 does not exist"). Looking into the issue I thought it was odd that the Get File Metadata action has a folder symbol on the right. I then tried to use the "Get File Metadata using path" action instead and noticed it is identical, except for the label at the identified. The peek code feature however shows the same command is being used, and the file id is actually being supplied as path command, hence it fails. The peek code content is below, but it doesn't allow me to edit so I believe this is a bug.

 

Thanks

Andy

 

{
    "inputs": {
        "host": {
            "connection": {
                "name": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sharepointonline']['connectionId']"
            }
        },
        "method": "get",
        "path": "/datasets/@{encodeURIComponent(encodeURIComponent('https://...'))}/files/@{encodeURIComponent(triggerBody()?['entity']?['FileId'])}",
        "authentication": {
            "type": "Raw",
            "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
        }
    },
    "metadata": {
        "flowSystemMetadata": {
            "swaggerOperationId": "GetFileMetadata"
        }
    }
}
1 REPLY 1
Highlighted
Community Support
Community Support

Re: get file metadata in flow cannot be used with fileid, internally reverting to "get file metadata using path"

Hi @Andy7 ,

 

Could you share a screenshot of the Flow configuration?

Basically, we can use these two actions with the configuration shown below:

53.PNG

I did the test on my side, they are all work.

Please provide more details and we would provide proper workaround for you.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (5,938)