cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Spawn10
Helper II
Helper II

How do I get the properties of a selected file?

I am building a basic Flow to create a Planner task when a file is selected in a SharePoint document library. I want the add the name of the file selected, in the title of the task created, but I cannot get that to work. I can't seem to be able to get the file properties. Here is what my flow looks like

 

Flow.PNG

 

 

What am I doing wrong here? The ID in the "Get file metadata" is pulling the ID of the selected file, and the "Get file properties" action is getting the ItemId of from the "Get file metadata" action. 

Thanks for the help.

1 ACCEPTED SOLUTION

Accepted Solutions
Amanthaper
Super User
Super User

Hi @Spawn10 

You're doing the right steps.

While in  the Planner title-->Add dynamic content will show multiple places to get the file name. All your SP actions actually output a file name.

Amanthaper_1-1603816173396.png

 

Cheers,

Aman

------------------------------------------------------------------------------------------------------
If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.
------------------------------------------------------------------------------------------------------

View solution in original post

2 REPLIES 2
Sumen
Frequent Visitor

Hi,

Sumen_0-1603814641101.png

Have you tried "fileName" ?

Amanthaper
Super User
Super User

Hi @Spawn10 

You're doing the right steps.

While in  the Planner title-->Add dynamic content will show multiple places to get the file name. All your SP actions actually output a file name.

Amanthaper_1-1603816173396.png

 

Cheers,

Aman

------------------------------------------------------------------------------------------------------
If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.
------------------------------------------------------------------------------------------------------

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (71,932)