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 Automate / ParseJSON multiple use...
Power Automate
Answered

ParseJSON multiple users from SharePoint list to People Picker in PowerApps

(0) ShareShare
ReportReport
Posted on by 75

Hello, 

 

I am trying to use ParseJSON to get a SharePoint item, the SharePoint list has a column that can contain multiple people. I am having trouble bringing that into PowerApps.

Below is my flow, 

NicolleAbrahams_0-1692030817056.pngNicolleAbrahams_1-1692030830358.png

And my OnStart property where the flow runs is,

 

Set(varTasks,'BPA-DC-TaskInformationRetrieve'.Run(varParam).taskresult);
Collect(
colTaskResult,
ForAll(
Table(ParseJSON(varTasks)),
{
ID: Value(Value.ID),
Title: Text(Value.Title),
DocumentNumber: Text(Value.DocumentNumber),
Division: Text(Value.Division),
PracticeArea: Text(Value.PracticeArea),
Area: Text(Value.Area),
DocumentType: Text(Value.DocumentType),
Revision: Text(Value.Revision),
DocumentController: Text(Value.DocumentController),
ProcessOwner: Text(Value.ProcessOwner),
Approvers: Text(Value.Approvers),
FileNamewithExt: Text(Value.FileNamewithExt),
RequestType: Text(Value.RequestType),
RequestDescription: Text(Value.RequestDescription),
Comments: Text(Value.Comments)
}
)
)

Does anyone have any idea how to get that Approvers object to a form where I can add the values to a ComboBox People Picker to search the email addresses.

 

TIA

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

    Hi @NicolleAbrahams ,

     

    You should be able to get the table Approvers from ParseJSON outputs into collection. I assume the array of Approvers in the flow only includes the Claims column, the formula would be:

    Set(varTasks,'BPA-DC-TaskInformationRetrieve'.Run(varParam).taskresult);
    Collect(
    colTaskResult,
    ForAll(
    Table(ParseJSON(varTasks)),
    {
    ID: Value(Value.ID),
    Title: Text(Value.Title),
    DocumentNumber: Text(Value.DocumentNumber),
    Division: Text(Value.Division),
    PracticeArea: Text(Value.PracticeArea),
    Area: Text(Value.Area),
    DocumentType: Text(Value.DocumentType),
    Revision: Text(Value.Revision),
    DocumentController: Text(Value.DocumentController),
    ProcessOwner: Text(Value.ProcessOwner),
    Approvers: ForAll(Table(Value.Approvers),{Claims:Text(ThisRecord.Value.Claims)}),
    FileNamewithExt: Text(Value.FileNamewithExt),
    RequestType: Text(Value.RequestType),
    RequestDescription: Text(Value.RequestDescription),
    Comments: Text(Value.Comments)
    }
    )
    )

     

    Best regards,

  • NicolleAbrahams Profile Picture
    75 on at

    That worked great to get the Approvers value from Power Automate. I am now having trouble displaying those multiple values in a People Picker. I have the following on the DefaultSelectedItems, any idea why this is not working?

     

    ForAll(First(colTaskResult).Approvers, ThisRecord.Claims)

     

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @NicolleAbrahams ,

     

    Since you only have Claims values, in Combo box it cannot find the corresponding person from the person column.

     

    Actually, based on my test, the array variable is not needed in the flow. You can use multi-select person column in the Select action directly.

    vjefferni_0-1692090239117.png

     

    Then in your App, get required columns (DisplayName, Email, Department and JobTitle) value:

    Set(varTasks,'BPA-DC-TaskInformationRetrieve'.Run(varParam).taskresult);
    Collect(
    colTaskResult,
    ForAll(
    Table(ParseJSON(varTasks)),
    {
    ID: Value(Value.ID),
    Title: Text(Value.Title),
    DocumentNumber: Text(Value.DocumentNumber),
    Division: Text(Value.Division),
    PracticeArea: Text(Value.PracticeArea),
    Area: Text(Value.Area),
    DocumentType: Text(Value.DocumentType),
    Revision: Text(Value.Revision),
    DocumentController: Text(Value.DocumentController),
    ProcessOwner: Text(Value.ProcessOwner),
    Approvers: ForAll(Table(Value.Approvers),{Claims:Text(ThisRecord.Value.Claims), DisplayName:Text(ThisRecord.Value.DisplayName),Email:Text(ThisRecord.Value.Email),Department:Text(ThisRecord.Value.Department),JobTitle:Text(ThisRecord.Value.JobTitle)}),
    FileNamewithExt: Text(Value.FileNamewithExt),
    RequestType: Text(Value.RequestType),
    RequestDescription: Text(Value.RequestDescription),
    Comments: Text(Value.Comments)
    }
    )
    )

     

    Now, you can use below formula in DefaultSelectedItems:

    First(colTaskResult).Approvers

     

    Best regards,

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard