TLDR: I have a multi-pick combo box on a PowerApps form which allows users to select multiple people as "stakeholders" for a document. Need to take that input and update the "Stakeholders" field for the pertinent Sharepoint file. Problem is that Flow gives various errors when I try to do this using "Update File Properties."
Situation:
Company we hired didn't deliver a document control solution we need. I'm not on our IT team but somehow ended up making the document control system and several flows to handle item-level permissions and approvals. Document Control is set up as a Sharepoint library with each file having required metadata fields. Now I'm trying to build a form so users can upload their own files and input the required metadata themselves.
It's possible I'm making this more difficult than necessary so let me know if I'm missing an obvious solution.
Via the PowerApps form users:
- Upload the file. When a button is clicked that file is then uploaded into the Sharepoint document control library.
- Specify metadata.
The metadata is then sent to a Flow which uses Update File Properties to update the appropriate metadata fields. All of the metadata updates fine except for Stakeholders. Stakeholders can be 0, 1, or more than 1 person. All stakeholders are selected via a single combobox on the form ("Combobox__Stakeholders").
Combobox__Stakeholders has Items set as:
Office365Users.SearchUser({searchTerm: ComboBox__Stakeholders.SearchText, top:10})
I don't know how Flow needs Stakeholders formatted so that they can be accepted in a multi-person field. ANY help at all would be great. I've tried MANY solutions some of which I remember enough to outline below.
Failed solutions:
I've tried sending over Stakeholders' emails as a semicolon deliminated string via:
Set(var__Metadata_update_results, 'Test:29f.3(PA)-UpdatemetadatafromBasic_form1'.Run(var__FileID, TextInput__Title.Text, Concat(ComboBox__Owner.SelectedItems, Mail, ";"), Concat(ComboBox__Approver.SelectedItems, Mail, ";"), Text(LookUp('Department List', Title=ComboBox__Department.Selected.Name, ID), "[$-en-US]#"), Text(LookUp('Document Type', Title=ComboBox__Document_Type.Selected.Name, ID), "[$-en-US]#"), Substitute(TextInput__Keywords.Text, Char(10), ";"), Concat(ComboBox__Stakeholders.SelectedItems, Mail, ";")).flowcomplete)
But the detail inputs array:

sees that string as 1 user and thus rejects it since it can't find the concatenated use. I was hoping it'd work because I was able to add multiple keywords/tags using that method.
I tried splitting the string of emails into an array then formatting to look like a normal array of claims and submitting it to Update File Properties using the "input entire array" format:

But this resulted in a "Bad gateway" error.
I think my lack of experience is making something relatively simple be extremely difficult.
If there's a way to directly edit metadata in a library with version history (both major & minor) enabled, then that would be even better since then I wouldn't have to keep tinkering with PowerApps and Flow.
Please let me know what other information you need to help me out. Thank you!