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

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,675)