web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Deleting a outlook eve...
Power Apps
Unanswered

Deleting a outlook event using Location and provided date

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey there, i'm trying to delete events with the press of a button in my power apps, i have a details page which lists the date of the event and the location, now im trying to grab these and use them to filter the corresponding event, i've tried using the ODATA filter but it's very confusing to me. furthermore i think powerflow only accepts certain date format's and the date i provide is just d/mm.

 

this is the flow im running right now, since i have some users which have their outlook in a different language it first checks for that and then gets the event with specified query, after which it deletes that. 

WesselO_0-1599118898780.png

But i keep getting a error which is quite hard to read:

 

{"statusCode":400,"headers":{"Pragma":"no-cache","x-ms-request-id":"19e56c5b-541c-4e63-9e22-4c519776abf4","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","Cache-Control":"no-store, no-cache","Date":"Thu, 03 Sep 2020 07:19:25 GMT","Set-Cookie":"ARRAffinity=75eb715df977f9cc8747c6e93018236935309083a7acad6cd06cb0ebad592e80;Path=/;HttpOnly;Domain=office365-ne.azconn-ne-01.p.azurewebsites.net","Content-Length":"373","Content-Type":"application/json","Expires":"-1"},"body":{"status":400,"message":"Invalid filter clause\r\nclientRequestId: 6bb736c7-a715-4d19-9d06-52151d118cad\r\nserviceRequestId: 19e56c5b-541c-4e63-9e22-4c519776abf4","error":{"message":"Invalid filter clause","code":"BadRequest","originalMessage":"Invalid filter clause"},"source":"office365-ne.azconn-ne-01.p.azurewebsites.net"}}

 


TLDR: I'm trying to delete events using a button in powerflow which provides location and date 

Thanks in advance

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Bumping this, i have tried a few more things but i keep getting the same error 😞 

  • rimatos Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Taking a look at the error it is giving you a "Invalid filter clause". This means that the filter expression you are using is incorrect and is causing the flow to fail.

    Most likely this is occurring the Filter query of your "Get Events" action. Could you show me an examples of what are the values you insert there from the PowerApp?.


    Additionally could you show me a run that has failed so I can look what is inside this action when it fails?

     

    Regards,

    Ricardo

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @rimatos,

    The values i insert in here will always be the location, which is desk_1, <standardized location>, and secondly the date i insert is for example 4-9-2020. 

    WesselO_0-1599211056980.png


    This is the raw input of a failed one:

     

    {
     "host": {
     "apiId": "subscriptions/9c6ca5c2-db3d-463a-9041-8fae10884f22/providers/Microsoft.Web/locations/westeurope/runtimes/europe-001/apis/office365",
     "connectionReferenceName": "shared_office365",
     "operationId": "V4CalendarGetItems"
     },
     "parameters": {
     "table": "AAMkADJmZjU1NDdkLWZmZTAtNGUyMC04YmFkLTk4NzVmNWZlOGJhNQBGAAAAAABR4N25L6ZFQ42HVd0iaRyVBwBr7V552GnOSLkTeWCyBGqUAAAAAAEGAABr7V552GnOSLkTeWCyBGqUAAAAACHVAAA=",
     "$filter": "Location eq 'Cobain_1, location' and Start Time eq '3-9-2020",
     "$top": 1
     }
    }

     


    I left out the actual location here for privacy reasons but i did make sure to match it up with my event in the calendar. 

    the output: 

     

    {"statusCode":400,"headers":{"Pragma":"no-cache","x-ms-request-id":"e68fbd90-d4b7-43ca-a9ee-7074ff627cd2","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","Cache-Control":"no-store, no-cache","Date":"Fri, 04 Sep 2020 09:19:58 GMT","Set-Cookie":"ARRAffinity=59fce84ed840ff13733470e527d4d138afeb7dd6f97aa09a47d6bce8875b278b;Path=/;HttpOnly;Domain=office365-ne.azconn-ne-01.p.azurewebsites.net","Content-Length":"373","Content-Type":"application/json","Expires":"-1"},"body":{"status":400,"message":"Invalid filter clause\r\nclientRequestId: e36d5774-42e6-49fa-84d4-a8265eb9d36e\r\nserviceRequestId: e68fbd90-d4b7-43ca-a9ee-7074ff627cd2","error":{"message":"Invalid filter clause","code":"BadRequest","originalMessage":"Invalid filter clause"},"source":"office365-ne.azconn-ne-01.p.azurewebsites.net"}}

     



    EDIT: accidentally used output instead of input 

  • rimatos Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Not sure if this is the case but it appears that you are missing the character ' in the final of your filter. 

    rimatos_0-1599579481474.png

    Try and adding this to the end of the expression and double check if the error persists.

     

    Regards,

    Ricardo

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hey @rimatos,

     

    sorry for the late reply, unfortunately this didn't work and i kept getting the same error. is there any way you can help me further? 

    any more info you need?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard