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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (4,788)