I am setting up an automatic Custom File Properties workflow for DMS purposes. For that I am using the following:
I need to pass the Selected File's Metadata into my Power App in order to create the Document ID. The logic for the ID is based on the File Path (I can explain that logic if necessary) but there's some string manipulation and such. But I need the raw Metadata string for the File Path.
For the Workflow, I have currently:
1. PowerApp (v2) trigger
2. For the selected file (with correct Site address + Library name)
3. Get file metadata
4. Respond to a PowerApp or Flow (With the only output being the FilePath based on the dynamic value from step 3)
But when I try to save this, I get the following error:
The power flow's logic app flow template was invalid. The 'kind' property of template action 'For_a_selected_item' at line '1' and column '536' is not supported.
Any ideas on how to fix this? Or if there is some way to get a selected file's metadata, specifically the File Path, into Power App? I am very new to both Power Automate and Power Apps so please let me know if I'm misunderstanding something super basic.
I have figured out what was wrong and how to "fix" it:
It's inside the For a Selected File, yes, but I am very confused how/if my workflow is possible. This is the code inside the For a selected File:
The ideal scenario for my flow would be:
1. User triggers the Workflow in Sharepoint for their file
2. They get sent to the Power App to fill in properties. This is also where the Folder Path would be generated
3. After submitting, the input info will be sent back to Power Automate and the properties are added to the File Properties of that selected File
This is what the Power App looks like:
I need the File Path to generate the Folder Path code through string manipulation.
Is this even possible?
Check where you are referencing the property "kind".
I suspect it's in 'Get file metadata' and it should be referencing items('For_each')['kind'] or something similar instead.
stampcoin
105
Michael E. Gernaey
82
Super User 2025 Season 1
David_MA
62
Super User 2025 Season 1