Hello,
I have a pretty cool app I've been developing to be used with a document library and part of what I would like to achieve is the ability to upload a file and metadata to a document library w/ PowerApps and Flow. I've been following along with this video https://www.youtube.com/watch?v=5XsWgVnR7SU and I've been able to successfully create a file(s) but I'm stuck at the part where I add the metadata.
The metadata in question:
| Column Name | Data Type | Data Source |
| Process ID | Single line of text | Master Process List |
| Process | Look up | Look up to Process ID in Master Process List |
| Document Type | Choice | Document Library |
| Document Level | Choice | Document Library |
| SS Index | Number | Document Library |
| SysIndex | Single line of text | Document Library |
In the PowerApp, I want to allow users to fill out a form and enter metadata for the 5 fields in red. I am not understanding how to pass the value from the Process look up column to my variable in flow so that I can use it to set the value of the Process field in my library.
My current formula on select of my button looks like this:
PowerAppsbutton.Run(
JSON(
colDocs,
JSONFormat.IncludeBinaryData
),
ProcessDrop.Selected.Title,
DocTypeDrop.Selected.Value,
DocLevelDrop.Selected.Value,
Value(SSIndexText.Text),
SysIndexText.Text
)
- "Process" is the Title column in my library and will only accept an Integer variable. when using the "Update File Properties" action in flow
- DocType and Doc Level are single-choice columns and use string variables in flow.
- SSIndex is a number column in the library and uses an integer variable in flow.
- SysIndex is a single line of text but will only accept an integer variable in the "Update File Properties" action.
The formula returns no errors until I run the app and select the button and then it tells me that my Process_Variable has an invalid value for parameter and the flow does not run at all. I am certain I need to use the ID from the look up but I don't know how to go about that. Thank you for any and all help! @wyotim