Hi! I have a flow that is supposed to be started for selected file. After I start the workflow I cannot use the "get file properties" activity, as FileID does not show on the list of selectable properties - the list of properties is empty. Any idea how to get properties of a file after starting flow from a file?
Could you please share a full screenshot of the configuration of your flow?
Are you using For a selected item as a trigger for Flow?
You could use the item ID output from For a selected item to populate it in the Id field of Get file properties.
Flow works fine:
I'm using a "For selected file" trigger which returns the following data: user e-mail, fileid, user ID, user name, time stamp, contents. As I understand I have selected wrong activity - I should use the "selected item" trigger? In my case when I used the "selected item" trigger I could not select libraries, only lists.
Could you share a screenshot of your Flow?
Sorry, I didn’t seem to understand what you meant before. I thought you wanted to use SharePoint-For a selected item.
Are you using OneDrive-For a selected file?
If so, you could use Get file metadata using path to get the ID and configure the file path of the trigger output in File Path field.
If not, please provide more details. Oddly enough, I didn't find the "get file properties" action in the OneDrive connector. Can you share a screenshot of it?
It's in Polish, so I'm not sure if it will be helpfull.
This is the triggering activity:
This is what this activity returns:
Information link takes me here https://docs.microsoft.com/pl-pl/connectors/sharepointonline/#foraselectedfilehybridtrigger but I do not see any trigger activities there.
Here Trigger-For a selected file is For a selected item, SharePoint library is similar to SP List item, each file is equivalent to an item, so this Trigger can be shared.
Just configure the list name or library name (Enter custom value) in For a selected item--List name filed.
I think it should be the reason for the region, the name is different, but the function is the same.
The "For a selected file" still works in that way: it doesn't allow to set the FileId to "Get file properties" action, and the reason why it still does that seems it's because of the property type.
There's a workaround using "initialize variable" where you can set it with the FileId property choosing String as the type. This way you would be able to call that variable in "Get file properties".
Look out for new contribution recognition badges coming SOON!
Join us for the first ever Power Platform Online Conference!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!