cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
poweruser8
Frequent Visitor

How to populate a sharepoint group in dropdown in powerapps?

How to populate a sharepoint group in dropdown in powerapps? So that a  user will be able to select users from a specific  sharepoint group only.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @poweruser8 :

Do you want to get users in SharePoint group?

My method is to use flow.I'v made a test for your reference:

1\Add a flow('PowerApp->SendanHTTPrequesttoSharePoint')

1FKZ88SXT.JPG

More detial about 'Send an HTTP request to SP' action:

2.JPG

2\Set the app's OnStart property to:

 

Clear(thetable);  /*thetable is my custom collection*/
ForAll(
    Split(
        'PowerApp->SendanHTTPrequesttoSharePoint'.Run().groupmember,
        "##"
    ),
    Collect(
        thetable,
        {
            email: First(
                Split(
                    Result,
                    ";;"
                )
            ).Result,
            name: Last(
                FirstN(
                    Split(
                        Result,
                        ";;"
                    ),
                    2
                )
            ).Result
        }
    )
)

 

3\Add a Drop down control:

Items:

 

thetable

 

I think this link will help you a lot:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Getting-Sharepoint-Group-details-using-Micro...

Best Regards,

Bof

 

View solution in original post

2 REPLIES 2
RezaDorrani
Dual Super User II
Dual Super User II

Hi @poweruser8 

 

If you are using a form control - the person type column in SharePoint has a property where you can define a group. The form control respects the settings in the sharepoint column.

 

If outside of the scope of a form control, you would need to query the SP Group. There is no action to do so. You can either create a custom connector or call flow to get the group members. 

No easy way out.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks,
Reza Dorrani, MVP
YouTube
Twitter

v-bofeng-msft
Community Support
Community Support

Hi @poweruser8 :

Do you want to get users in SharePoint group?

My method is to use flow.I'v made a test for your reference:

1\Add a flow('PowerApp->SendanHTTPrequesttoSharePoint')

1FKZ88SXT.JPG

More detial about 'Send an HTTP request to SP' action:

2.JPG

2\Set the app's OnStart property to:

 

Clear(thetable);  /*thetable is my custom collection*/
ForAll(
    Split(
        'PowerApp->SendanHTTPrequesttoSharePoint'.Run().groupmember,
        "##"
    ),
    Collect(
        thetable,
        {
            email: First(
                Split(
                    Result,
                    ";;"
                )
            ).Result,
            name: Last(
                FirstN(
                    Split(
                        Result,
                        ";;"
                    ),
                    2
                )
            ).Result
        }
    )
)

 

3\Add a Drop down control:

Items:

 

thetable

 

I think this link will help you a lot:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Getting-Sharepoint-Group-details-using-Micro...

Best Regards,

Bof

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (4,277)