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

Remove Specific item from Gallery based on text

Hello,

 

I have an app that when it opens determines the users job title and determines if they have Auto Approval or they need Manager Approval for submitting a form.

 

In one of the Galleries I have an item that i want to hide if the user needs manager approval. Im not sure if I need to do this on the start of the application and Remove it from the collection or when the gallary is visable.

 

This is essentially what i am trying to do


IF(ManagerApproval.Text <> "Auto Approval On", Remove(MyCollection.Primaryid: 9))

1 REPLY 1
pNabin
Level 8

Re: Remove Specific item from Gallery based on text

Hi @cma2438 ,

 

The best way to hide the items in the Gallery is to filter the Gallery Items.
In the Items property of Gallery, you should have something like

Items = Filter(MyDataList, Approval="Needed")

In this, MyDataList is the data source of the Gallery, Approval="Needed" is the filter criteria that shows only the items whose Approval is "Needed".

 

Your situation would be something like
Filter(MyCollection,ManagerApproval = "Auto Approval Off"), assuming MyCollection is the name of Collection, ManagerApproval is the filtering field

 

 

Thanks,

Nabin

 

 

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 327 members 6,164 guests
Recent signins:
Please welcome our newest community members: