I have a question, I am trying to check if a date exists in my SharePoint list and if does, just show a pop-up and if not, let me do the patch, so I am trying a lot of formulas but they did not work, any clue or Idea?(date column with date picker)
I have this now but it shows me that with all days, the record exists:
If(LookUp('LMS Tier 1').TierDate = DatePicker1.SelectedDate, Notify("exist"), Notify("does not")) or
If(CountRows(Filter('LMS Tier 1',TierDate )) = DatePicker1.SelectedDate,Notify("does") , Notify("Does Not Exist"))
and more, any idea?
Thanks in advance.
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.
The function below works, and does not appear to have any issues with delegation.
For my example, it's checking if an Account was created on the selected date.
Updated with your references:
If(!IsBlank(LookUp(AddColumns('LMS Tier 1',"appLookUpDate",Text('TierDate',DateTimeFormat.ShortDate)),Text(DatePicker1.SelectedDate,DateTimeFormat.ShortDate)=appLookUpDate)),Notify("Found",NotificationType.Success),Notify("Not Found",NotificationType.Error))
The only thing I would like to flag is that AddColumns is only partially delegable. What I mean by that is that parameter of AddColumns is delegable (or can be based on your data source and formula) but irrespective of whether the parameter of AddColumns is delegable or not, AddColumns output is not. Which means it will always be subject to the non-delegation limit.
AddColumns used to be my favorite solution approach until I found this out the hard way. Reason why it was hard? Because this is one delegation issue for which the App Checker doesn't throw a delegation warning. That's why I call it the "Invisible Delegation Issue"!
Here is a link to my blog post about this: https://thepoweraddict.com/the-invisible-delegation-issue/
Just wanted to throw it out there so you can factor that in if it affects you.
Check out our new profile badges recognizing authored solutions!
We are excited to announce the Power Apps Super Users!
Did you miss the call? Check out the Power Apps Community Call here.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!