Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

Boolean Filter not working on offline collection (Powerapps)

Posted on by 254

Hi,

I am storing online entity data in collection for offline use using SaveData and using it by using LoadData function. When I use any Boolean filter it gives me 0 records, but for other filters like status (Option Set), Lookup it is working as expected. Same filter works on same collection when I am online or online till first screen as on start online data is getting collected in collection. Also checked following thing:

1. Row counts for offline data is matching

2. Changing filter syntax like using = true, =Boolean(1) etc.

//Saving data on app start.

ClearCollect(
colAllMyItems,
My Items'
);

SaveData(colAllMyItems, /colAllMyItems/ );

 

//Loading data while offline

LoadData(colAllMyItems, /colAllMyItems/, true);

 

//Filtering Collection offline

ClearCollect(
  colAllMyItems,
  Filter(
  colAllMyItems,
  Contact.Contact = gblDeceased.Contact,
  Returned = false,
  'To be returned?'
  )
);

 

Could anyone help me with this?

Categories:
  • Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Boolean Filter not working on offline collection (Powerapps)
    Hi Partner,
     
    The Dynamics Community Forums are for Dynamics 365 CRM applications, all built on Modern Driven App.
    You are using the Power Apps application and should post your question in the following forum for further assistance.

     

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans