web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Writing multiple peopl...
Power Apps
Answered

Writing multiple people from people picker to a Power Automate variable, then SharePoint Document Set afterwards.

(0) ShareShare
ReportReport
Posted on by 24

1. I have created an 'Initialise Value' in Power Automate, with a PowerApp trigger.

FrivTorchic_1-1678174531912.png

 

2. I have written a line to put data from a datacardvalue which is a multi-selection people picker (Combo Box) in PowerApp. This line is throwing an error because I don't know how to write multi-select people data into the OnSave property of the SharePointIntegration app.

FrivTorchic_2-1678174572361.png

The whole code for the OnSave property:

If(
CILEntryFormNew.Mode = FormMode.New,
// FormMode.New: Run the flow and reset the form
'CILFlow01-CreateDocumentSet'.Run(
DataCardValue11_1.Text,
DataCardValue7_1.Text,
DataCardValue3_1.SelectedDate,
DataCardValue14_1.SelectedDate,
DataCardValue2_1.Selected.Value,
DataCardValue6_1.Selected.Value,
DataCardValue5_1.Text,
DataCardValue4_1.Text,
Concat(DataCardValue9_1.SelectedItems, Concat(Email)),
Concat(DataCardValue12_1.SelectedItems, Concat(Email)),
DataCardValue8_1.Selected.Value,
DataCardValue10_1.Selected.Value
);
ResetForm(CILEntryFormNew),
// FormMode.Edit: Submit the form
SubmitForm(CILEntryFormNew)
)

3. This code and data from PowerApps form will be fed into a PowerAutomate flow and the datacardvalues are used to update a SharePoint item property in a document set library.

 

Really appreciate any help, thanks.

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @FrivTorchic ,

     

    Please try:

    Concat(DataCardValue9_1.SelectedItems,Email,";"),
    Concat(DataCardValue12_1.SelectedItems,Email,";")

     

    Best Regards,

    Bof

  • FrivTorchic Profile Picture
    24 on at

    Hi @v-bofeng-msft ,

     

    This works, this gives the correct email address from the people picker. However the email address is not enough data it seems to be put inside the Power Automate 'Update File Properties' string? Looks like it needs a 'claims' property too?

    FrivTorchic_0-1678182404520.png

     

    Power Automate:

    FrivTorchic_2-1678182674500.pngFrivTorchic_3-1678182711921.png

     

    SharePoint Library:

    FrivTorchic_1-1678182519842.png

  • Verified answer
    FrivTorchic Profile Picture
    24 on at

    Hi everyone,

     

    For my business case, @v-bofeng-msft did give me the majority of the clue.

    Concat(DataCardValue9_1.SelectedItems,Claims,";"),

    However instead of 'email', I used 'Claims' and piped that into the Power Automate 'Update File Properties' step.

    FrivTorchic_4-1678238290648.png

    This worked.

  • v-bofeng-msft Profile Picture
    on at

    Hi @FrivTorchic ,

     

    Is Risk Owner a person column who allows multiple selections? If so , you need to built an array to update it.

     

    Best Regards,

    Bof

  • FrivTorchic Profile Picture
    24 on at

    @v-bofeng-msft I do have person columns that allow multi-select. How do I go about setting up an array for the claims? I think Power Automate only allows strings to be outputted from Power Apps.

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @FrivTorchic ,

     

    You need to format the strings transferred by the app into a specific array in flow.

    Please check these links:
    https://powerusers.microsoft.com/t5/Building-Flows/Update-a-person-field-in-sharePoint-with-multiple-values/td-p/751610

    https://www.youtube.com/watch?v=5MeJCcdgm0k

     

    Best Regards,

    Bof

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard