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)

Not able to get current date filter option in fetch xml

(0) ShareShare
ReportReport
Posted on by 144

Hi All,

I am using D365 currently, i have a query regarding fetch xml, i need entity data if current date is in between start date and end date then display record.

i tired but not able find the way where i can get current date value.

Can any one help me on this.

Regards,

Jyotsna 

*This post is locked for comments

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

    Hi,

    The only filter related to current date is today which can only be used like <>particular date field> is on "Today". You cannot use today in any other condition.

    However if you are using this fetch xml in custom code then you can dynamically pass the current date to apply your desired filter.

    Hope this helps.

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

    Hi,

    There is one workaround to achieve this with fetch xml as as well. Refer below screenshot-

    datecheck.png

  • jyotsna chakraborty Profile Picture
    144 on at

    Hi Ravi ,

    Thanks for the suggestion , can you please suggest how to pass date dynamically in fetch XML.

    Thanks & Regards,

    Jyotsna

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Did you check the above workaround of using Today? "how to pass date dynamically in fetch XML" depends upon where are you using the fetch, for example, If it is C# code then you could get the current datetime and then add it to the fetchxml

  • Suggested answer
    Iswarya Profile Picture
    1,347 on at

    Hi,

    Create one field make this field is Hide, update this field value daily using Windows  application,Register Your  windows Application in Task Schedular  , then use this field in your report

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