cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
basukunal001
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
RandyHayes
Super User
Super User

@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 below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,756)