Skip to main content
Community site session details

Community site session details

Session Id : WRyeHHLtt2II7qZhx5QxOC
Power Apps - Microsoft Dataverse
Unanswered

Delegation using in In function

Like (0) ShareShare
ReportReport
Posted on 29 Nov 2023 07:13:35 by

Hello, 

 

I'm encountering delegation issues in Power Apps with the following condition:

 

 If(CountRows(cmb_0_Responsible.SelectedItems)>0,ResponsibleMail in cmb_0_Responsible.SelectedItems.mail,true)&&

 

This is in a button that creates a collection to filter the data by several filters:


ClearCollect(
colFilteredOrderListPool,
With({locFilterPool:
AddColumns(
AddColumns(
Filter(
Orders,
'Orders (Views)'.'Active Orders',
(txt_0_FilterTitle.Text in Subject || txt_0_FilterTitle.Text in OrderId) &&
If(CountRows(cmb_0_Responsible.SelectedItems)>0, ResponsibleMail in cmb_0_Responsible.SelectedItems.mail, true) &&
If(CountRows(cmb_0_FilterCustomer.SelectedItems)>0, CustomerMail in cmb_0_FilterCustomer.Selected.Mail, true),
If(CountRows(cmb_0_FilterExtCustomer.SelectedItems)>0, CustomerMail in cmb_0_FilterExtCustomer.Selected.'Mail (name)', true),
If(locHideOrders, IsBlank(ResponsibleMail) && IsBlank(Category), true),
If(varCurrentLanguage="de" && CountRows(cmb_0_FilterStatus.SelectedItems)>0,
'Status (order_status)' in cmb_0_FilterStatus.SelectedItems.Value,
'Status (order_status)' in colStatusOrderPool
),
Deleted = locShowDeleted,
'Created On' >= dt_0_FromDate.SelectedDate
),
"Kategorie", Category.Name
),
"Verantwortlich", ResponsibleName
)
},
If(
locSortColumnPool="0",
SortByColumns(locFilterPool, "order_id", If(locSortOrderPool=SortOrder.Ascending, SortOrder.Ascending, SortOrder.Descending), "order_id", SortOrder.Descending),
locSortColumnPool="1",
SortByColumns(locFilterPool, "external_customer", If(locSortOrderPool=SortOrder.Ascending, SortOrder.Ascending, SortOrder.Descending), "order_id", SortOrder.Descending),
locSortColumnPool="2",
SortByColumns(locFilterPool, "createdon", If(locSortOrderPool=SortOrder.Ascending, SortOrder.Ascending, SortOrder.Descending), "order_id", SortOrder.Descending),
locSortColumnPool="3",
SortByColumns(locFilterPool, "due_date", If(locSortOrderPool=SortOrder.Ascending, SortOrder.Ascending, SortOrder.Descending), "order_id", SortOrder.Descending),
locSortColumnPool="4",
SortByColumns(locFilterPool, "Verantwortlich", If(locSortOrderPool=SortOrder.Ascending, SortOrder.Ascending, SortOrder.Descending), "order_id", SortOrder.Descending),
locSortColumnPool="5",
SortByColumns(locFilterPool, "Kategorie", If(locSortOrderPool=SortOrder.Ascending, SortOrder.Ascending, SortOrder.Descending), "order_id", SortOrder.Descending)
)
)
)

 

 

In the Items gallery I have this to filter by language:

If(varCurrentLanguage<>"de",
Filter(colFilteredOrderListPool,
'Status (status)' in colStatusOrderPool),
colFilteredOrderListPool)

 

I'm facing a lot of problems in production where the data is created correctly using flows, suddenly when users are in the app, the data is mess up. ÂżCould be the delegation the reason?

 

Thanks in advance

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics

Loading complete