Hello,
I am trying to get the Office365Outlook.V4CalendarGetItems to filter events that have a specific keyword (in this case, a project ID). I am getting an invalid filter clause message. Any thoughts on what I need to do differently?
Office365Outlook.V4CalendarGetItems(
ProvCalendar,
{'$filter': "substringof(body, '" & ActiveProject.WorkOrderId & "')"}
).value
ProvCalendar - this is a variable containing the calendar ID. It is correct as it works elsewhere in the app in this function.
ActiveProject.WorkOrderId - this is a variable containing a string with the work order ID that I want to filter for.
I've also tried ActiveProject.WorkOrderId in body with no success either.
Ideally, I'd search subject and body, but I will settle for just one for now as the other should work the same way (or so I am assuming).
Thanks!