cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johncosmas
New Member

$Filter function using AND with STARTS date

I need to return an ID using the V2CALENDARGETITEMS which needs to contain a $FILTER function.  I am going to pass the SUBJECT EQ, with a AND followed by the STARTS EQ because I might have named a MEETING with duplicate names.  The STARTS EQ should narrow down which entry because there is NO possibility of the same meeting occurring twice in the same day.  For testing, I've setu[ a LABEL containing the LOOKUP so can at least validate the results/returns.  I am on EST time zone, so I'd generally pass 2021-08-11T21:00:00EST?  I am getting an error when I do this.  I've added 2 appointments with the same name in different times, so I know I have 2 records.  I got the SUBJECT EQ working so I just need help with the DATETIME.  Please understand, I will be passing my own DATETIME and not bind it to any DATE+TIME controls.

 

TIA

John

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @johncosmas :

If you want to get a meeting by adding date conditions, you can nest a lookup outside the formula.

For example:

LookUp(
Office365Outlook.V2CalendarGetItems(YourCalendarID,{'$filter':"Subject eq 'jjj'"}).value,
Start >TimeValue("2020/08/11 21:00:00")
)

 Best Regards,

Bof

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @johncosmas :

If you want to get a meeting by adding date conditions, you can nest a lookup outside the formula.

For example:

LookUp(
Office365Outlook.V2CalendarGetItems(YourCalendarID,{'$filter':"Subject eq 'jjj'"}).value,
Start >TimeValue("2020/08/11 21:00:00")
)

 Best Regards,

Bof

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,886)