cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vangala
Level: Powered On

Re: Issues with Powerapps

Thanks Powerdriver.

 

Wil try with group creating in office 365.

And for the Question 3 , launch in the same tab or same page , is this possible in powerapps ?

 

powerdiver
Level 8

Re: Issues with Powerapps

I presume you use the "Launch()" function.

From what I know, there's no control about the target tab/window and it always opens in a new one.

 

Super User
Super User

Re: Issues with Powerapps

You can't currently get SharePoint groups natively from PowerApps, only Office365 groups.

 

Idea to vote on it being implemented is here: https://powerusers.microsoft.com/t5/PowerApps-Ideas/get-sharepoint-groups-from-sharepoint-site-in-po...

 

@gsivasai wrote a great post about using Role-based security from Sharepoint groups by getting them from Flow here: https://svaghub.wordpress.com/2018/11/03/role-based-security-in-powerapps-using-spgroups/

 

Cheers,

ManCat




Don't forget to 'Mark as Solution' and 'Thumbs Up' those who deserve it!
Vangala
Level: Powered On

Re: Issues with Powerapps

Hi Powerdiver,

 

Requirement:

I have a dropdown which has 5 values, need to display certain 3 values based on the user belonging to Offfice 365 groups

I wanted to display the certain Dropdown values based on Office 365 Groups, im using this function and im returning the display name of ther users in the group.

Office365Groups.ListGroupMembers("given groupid").value

 

How should i connect this function to the Dropdwon and dsiplayn those values?

 

Appreciate your help!

 

Thanks

 

powerdiver
Level 8

Re: Issues with Powerapps

@Vangalaso if I get this right:

 

* you have a dropdown that has in its source a column that you want to use as a filter (let's name it "GroupID")

* you want to make sure that the current user is part of that 'such' group

 

My first question to you: are those two statement right?

If so, is that for a specific group or multiple groups ?

 

Maybe if you could provide a view of what your collection (source for the dropdown) looks like and then say what/how you expect to filter it. Then, when I'm sure I understand your objective, I'll make my best to help you out :-)

 

 

 

Highlighted
powerdiver
Level 8

Re: Issues with Powerapps

@Vangala 

Based on what you told me via message, in a very 'hardcoded' way for simplicity sake:

 

1. In your dropdown source, add a restrictionColumn where you indicate Y or N

2. In the OnLoad of the app, Set a variable (RestrictedUser) to True if the user is not to have access to the whole set (based on Office365Group membership)

3. In the Items property of that dropdown, use a Conditional Filter formula, such as If(RestrictedUser,Filter('mysource',restrictrionColumn="Y"),'mysource')

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 42 members 4,081 guests
Please welcome our newest community members: