RE: Having trouble filtering out "completed" appointments in a view (including pics)
Hi Ben,
I am not sure if this is something related to what you have inside you OR Statement, but I created a similar logic, and it would only display the Scheduled Appointments:
<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="appointment">
<attribute name="subject"/>
<attribute name="statecode"/>
<attribute name="scheduledstart"/>
<attribute name="scheduledend"/>
<attribute name="createdby"/>
<attribute name="regardingobjectid"/>
<attribute name="activityid"/>
<attribute name="instancetypecode"/>
<order descending="false" attribute="subject"/>
<filter type="and">
<condition attribute="statecode" value="3" operator="eq"/>
<filter type="or">
<condition attribute="scheduledstart" operator="today"/>
<condition attribute="scheduledend" operator="today"/>
</filter>
<condition attribute="createdby" operator="eq-userid"/>
</filter>
</entity>
</fetch>
Please check your query again.
Hope this helps.