cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Person or group field in PowerApps

Hi All,

 

I am designing a PowerApps form for a SharePoint list which contains a 'Person or Group' field. The value/user for this field is retrieved from SharePoint security group. Please see the field settings below for the field.

basukunal001_0-1598902576599.png

 

Please suggest how can I handle this field in PowerApp form.

 

Thanks,

Kunal

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @basukunal001 ,

Do you want to patch SP Group to Person or Group field in your SP List?

 

I have made a test on my side, please try the following workaround:

The Person or Group field configuration as below:

4.JPG

 

App's configuration as below:

5.JPG

Set the OnSelect property of the "Patch" button to following:

Patch(
      '20190816_case6',
      Defaults('20190816_case6'),
      {
          ProductName: "SP Group Test",
          SPGroupPeopleField: {
                                  Claims: "c:0o.c|federateddirectoryclaimprovider|" & LookUp(Office365Groups.ListOwnedGroups().value, mail = "PowerApps@xxxxxx.xxmicrosoft.com").id,
                                  Department: "",
                                  DisplayName: "Power Members",
                                  Email: "PowerApps@xxxxxx.xxmicrosoft.com",
                                  JobTitle: "",
                                  Picture: ""
          }
      }
)

On your side, you should type the following formula:

Patch(
      'Your SP List',
      Defaults('Your SP List'),
      {
          ProductName: "SP Group Test",
          SPGroupPeopleField: {
                                  Claims: "c:0o.c|federateddirectoryclaimprovider|" & LookUp(Office365Groups.ListOwnedGroups().value, mail = "<Type Your SP Group Email Address Here>").id,
                                  Department: "",
                                  DisplayName: "<Type your SP Group Name Here>",
                                  Email: "<Type Your SP Group Email Address Here>",
                                  JobTitle: "",
                                  Picture: ""
          }
      }
)

Note: You need to add Office 365 Groups connector as data source in your canvas app firstly.

 

Please try above solution, then check if the issue is solved.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Super User III
Super User III

@basukunal001 

You might start out by taking a look at this posting.  I describes what you might be looking for and more.

I hope it is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

It seems for PowerApps, we can patch office 365 group in Person or Group field but cannot patch SharePoint group in Person or Group field.

Hi @basukunal001 ,

Do you want to patch SP Group to Person or Group field in your SP List?

 

I have made a test on my side, please try the following workaround:

The Person or Group field configuration as below:

4.JPG

 

App's configuration as below:

5.JPG

Set the OnSelect property of the "Patch" button to following:

Patch(
      '20190816_case6',
      Defaults('20190816_case6'),
      {
          ProductName: "SP Group Test",
          SPGroupPeopleField: {
                                  Claims: "c:0o.c|federateddirectoryclaimprovider|" & LookUp(Office365Groups.ListOwnedGroups().value, mail = "PowerApps@xxxxxx.xxmicrosoft.com").id,
                                  Department: "",
                                  DisplayName: "Power Members",
                                  Email: "PowerApps@xxxxxx.xxmicrosoft.com",
                                  JobTitle: "",
                                  Picture: ""
          }
      }
)

On your side, you should type the following formula:

Patch(
      'Your SP List',
      Defaults('Your SP List'),
      {
          ProductName: "SP Group Test",
          SPGroupPeopleField: {
                                  Claims: "c:0o.c|federateddirectoryclaimprovider|" & LookUp(Office365Groups.ListOwnedGroups().value, mail = "<Type Your SP Group Email Address Here>").id,
                                  Department: "",
                                  DisplayName: "<Type your SP Group Name Here>",
                                  Email: "<Type Your SP Group Email Address Here>",
                                  JobTitle: "",
                                  Picture: ""
          }
      }
)

Note: You need to add Office 365 Groups connector as data source in your canvas app firstly.

 

Please try above solution, then check if the issue is solved.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (15,644)