cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Michal
Kudo Collector
Kudo Collector

Get events (v4) - Invalid filter clause

When I use the following parameters in Get events (v4)

  • Filter Query: showAs ne 'oof' AND showAs ne 'tentative' AND isAllDay eq 'false'
  • Order By: Start/DateTime asc

I got the following error:
  "status": 400,
  "message": "Invalid filter clause"


When I am using the following parameters it works OK:

  • Filter Query: showAs ne 'oof' AND showAs ne 'tentative'
  • Order By: Start/DateTime asc

The "Start/DateTime asc" I borrowed from this solution. Thank you @BeeBee 

 

When I tried the following it also returns the same error:

  • Filter Query: isAllDay eq 'false'
  • Order By: Start/DateTime asc

Any tips?

1 ACCEPTED SOLUTION

Accepted Solutions
Michal
Kudo Collector
Kudo Collector

OK. I found it. 

  • Filter Query: isAllDay eq false

It should be without ' ' '😣

 

 

View solution in original post

3 REPLIES 3
Michal
Kudo Collector
Kudo Collector

OK. I found it. 

  • Filter Query: isAllDay eq false

It should be without ' ' '😣

 

 

Michal
Kudo Collector
Kudo Collector

But I have another issue. 

How to filter events for the last 7 days or even greater than today.  

I am trying to use:

  • Filter Query: Start/DateTime gt 'utcNow('yyyy-MM-ddT00:00:00')'

It throws the same error. (Invalid filter clause)

 

If I use this:

  • Filter Query: Start/DateTime gt 'utcNow()'

It throws the error: "The value 'utcNow()' of parameter 'DateTime' is invalid."

 

I have failed also using the

  • Start/DateTime gt addDays(utcNow('yyyy-mm-ddThh:mm:ss');-7)
  • Start/DateTime gt addDays(utcNow();-7) 
  • Start/DateTime gt 'addDays(utcNow('yyyy-mm-ddThh:mm:ss');-7)'
  • Start/DateTime gt 'addDays(utcNow();-7)' 

 

Any tips?

 

BeeBee
Advocate I
Advocate I

Have you tried SubtractFromTime()?

 

Watch this youtube video for tutorial.

 

For addDays, the format is like this if you want to add 7 days:

'addDays(utcNow(),7,'yyyy-MM-ddT00:00:00')'
 
Hope this helps

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

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.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,292)