Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Having trouble filtering out "completed" appointments in a view (including pics)

Posted on by 777

So I am wanting only "scheduled" appointments to be showing up in my view, and as far as I can tell, I have set the filter criteria to make this happen. However, "completed" appointments are still popping up in the view! 

I have attached a picture of my filter criteria - can anyone find the bug that's preventing me from getting this view to only show scheduled appointments? 

view-issue.PNG

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans