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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Fetch XML , filtering on time

(0) ShareShare
ReportReport
Posted on by 1,023

How to filter on the time part of the date in fetch xml between two days

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi James,

    Please check the below blog.

    community.dynamics.com/.../how-to-filter-on-the-time-part-of-a-date-in-fetchxml

    Hope this helps.

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    Hi James,

    Use this:

    <condition attribute=“<AttributeName>” operator=”olderthan-x-days” values=”<VALUE>” />

    For your reference:

    www.powerobjects.com/.../support-for-additional-older-than-clauses-for-date-and-time-fields-in-fetchxml-and-queryexpression

    Hope this helps

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    You can refer this also:

    backtothecrm.blogspot.com/.../how-to-filter-on-time-part-of-date-in.html

  • Sompop Profile Picture
    25 on at

    Hi there,

    I am wondering if you know how to filter with "Newer Than X Days/Weeks/Months" instead of "Older Than X Days/Weeks/Months" for Dynamics 365 version 9.

    Thanks in advance.

    Regards,

    Sompop Charusaengrit

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    There is no operator currently for New than X Days/Weeks/Months.

    Hope this helps.

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    Hi James,

    You can use On-or-After and On-or-Before to retrieve based on time criteria as shown below:

    <filter type="and">

         <condition attribute="actualstart" operator="on-or-after" value="2018-11-01" />

         <condition attribute="actualend" operator="on-or-before" value="2018-11-01" />

       </filter>

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans