cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dual Super User
Dual Super User

Re: How to Filter Sharepoint List Datetime without Delegation Warning

@RandyHayes , @FinePilsner 

 

https://docs.microsoft.com/en-us/connectors/sharepointonline/

  1. A formula such as Filter(..., IsBlank(CustomerId)) won't delegate to SharePoint. However, that formula is semantically close to Filter(..., CustomerId = Blank()), which will delegate to SharePoint. These formulas aren't equivalent because the second formula won't treat the empty string ("") as empty. However, the second formula might work for your purposes. On SharePoint, this approach will work for the equals operator ("=") but not the operator for not equals ("<>").

 

They have some documentation on the IsBlank vs = Blank()

 

I have been using this on date fields and they do not give the delegation warning in PowerApps

I have tested this with a data source of more than delegable limit items and it works

 

Regards,

Reza

Super User
Super User

Re: How to Filter Sharepoint List Datetime without Delegation Warning

@RezaDorrani 

Yes, that is the documentation reference in regard to testing for blank values.  That is perfectly correct.  However, if you read into the delgation chart directly above it, it specifically states that the equal operator is not delegable to a DateTime column (which is absolutely true).  In this case, using the dataTimeColumn = Blank() IS using the equality operator.  So, based on the official docs, it should not work.

Personally, I try to avoid those situations of using something that is contrary to the docs (or at least a release note) in favor of another workaround as those are the kind of things that people run into where they post - "hey my app has been working fine and I changed nothing and now it doesn't work" - why?  because they were using something not officially supported and it got "fixed".

I'd be perfectly fine if it works and stays working...just be cautious is all I'm adding here.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Dual Super User
Dual Super User

Re: How to Filter Sharepoint List Datetime without Delegation Warning

@RandyHayes 

 

Will confirm with the product team and post the update

Power Apps Staff LanceDelano
Power Apps Staff

Re: How to Filter Sharepoint List Datetime without Delegation Warning

Hi are you referring to the intersection of the "IsBlank()" and the "DateTime" column in the delegation table?  See the attachment.

 

 

Super User
Super User

Re: How to Filter Sharepoint List Datetime without Delegation Warning

@LanceDelano 

Not as much that as three lines up on the equality (=) operator and the DateTime column.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Power Apps Staff LanceDelano
Power Apps Staff

Re: How to Filter Sharepoint List Datetime without Delegation Warning

Actually, yes - I think this may work.  Blank (or null) is different from an actual DateTime value.  You're not assigning a value, you're setting the value to null (which is the absence of a value).   The issue with our not supporting DateTime for delegation has to do with different DateTime supported formats and null is independent of that.  We'll double check but I think this probably works. 


 

Power Apps Staff LanceDelano
Power Apps Staff

Re: How to Filter Sharepoint List Datetime without Delegation Warning

From Carlos who tested this out.  "  ... they can filter a SPO data source on whether a Date (or Date/Time) column is null. They cannot filter where the column is not null, however, as only the = (not the <>) operator is delegated to SharePoint (and the Not operator is also not delegated) "   I will update the documentation. 

Highlighted
Dual Super User
Dual Super User

Re: How to Filter Sharepoint List Datetime without Delegation Warning

@LanceDelano 

 

Thanks for the update

Great to know that this is supported and works 

 

@FinePilsner  @RandyHayes 

 

Regards,

Reza

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps 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

Top Solution Authors
Top Kudoed Authors
Users online (6,100)