cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RezaDorrani
Level 10

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.
RezaDorrani
Level 10

Re: How to Filter Sharepoint List Datetime without Delegation Warning

@RandyHayes 

 

Will confirm with the product team and post the update

PowerApps Staff LanceDelano
PowerApps 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.
PowerApps Staff LanceDelano
PowerApps 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. 


 

PowerApps Staff LanceDelano
PowerApps 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
RezaDorrani
Level 10

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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 51 members 4,852 guests
Please welcome our newest community members: