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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (4,664)