CRM Online Reporting FetchXML (Operators)

by | Updated November 6, 2020 | Development, Dynamics CRM

CRM Online Reporting with FetchXML Series
Intro: Intro to Series
Part I: How to Set up a Data Source to Access CRM Data in SQL Reporting Services
Part II: How to Use FetchXML Data in the Report
Part IIa: CRM FetchXML Operators
Part III: Handy SQL Reporting Services Functions for CRM Online Reports

I made this list mostly for my own benefit, but because I haven’t seen a similar list online, it may be useful for you as well.  Here’s a list of the “operator” elements in CRM 2011 FetchXML, so these are the values you put into the operator attribute of a filter condition when building your FetchXML query.

An example of this use would be as follows:

<condition attribute=”regardingobjectid” value=”@ProjectTaskID” uitype=”new_projecttask” operator=”in”/>

Here’s the list of operator values – let me know in the comments if you have found any others:

Operator CRM Advanced Find Term
lt Less Than
gt Greater Than
le Less Than or Equal To
ge Greater Than or Equal To
eq Equals
ne Not Equals
neq Not Equal To
null Does Not Contain Data
not-null Contains Data
in Is In
not-in Is Not In
between Between
not-between Is Not Between
like Like
not-like Not Like
yesterday Yesterday
today Today
tomorrow Tomorrow
next-seven-days Next Seven Days
last-seven-days Last Seven Days
next-week Next Week
last-week Last Week
this-month This Month
last-month Last Month
next-month Next Month
on On
on-or-before On or Before
on-or-after On on After
this-year This Year
last-year Last Year
next-year Next Year
eq-userid Equals Current User
ne-userid Does Not Equal Current User
eq-businessid Equals Current Business Unit
ne-businessid Does Not Equal Current Business Unit
this-week This Week
last-x-months Last X Months
eq-userlanguage Equals User Language
eq-userteams Equals Current User’s Teams
in-fiscal-year In Fiscal Year
in-fiscal-period In Fiscal Period
in-fiscal-period-and-year In Fiscal Period and Year
in-or-after-fiscal-period-and-year In or After Fiscal Period and Year
in-or-before-fiscal-period-and-year In or Before Fiscal Period and Year
last-fiscal-year Last Fiscal Year
this-fiscal-year This Fiscal Year
next-fiscal-year Next Fiscal Year
last-x-fiscal-years Last X Fiscal Years
next-x-fiscal-years Next X Fiscal Years
last-fiscal-period Last Fiscal Period
this-fiscal-period This Fiscal Period
next-fiscal-period Next Fiscal Period
last-x-fiscal-periods Last X Fiscal Periods
next-x-fiscal-periods Next X Fiscal Periods

Help with CRM 2

Related Posts


Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events


01jul11:00 am12:00 pmConfab Live with Stoneridge – Dataverse Virtual Entities

14jul12:00 pm12:30 pmBeyond Reporting - What Business Intelligence Can Do For Your Agribusiness

15jul10:00 am11:00 amMastering the Production Floor

21jul10:00 am10:30 amThe Modern Manufacturer: Manufacturing Software in the Real World

21jul12:00 pm1:00 pmIs it Worth it to Upgrade to Dynamics 365 Finance and Supply Chain Management? - Everything AX Users Need to Consider

28jul10:00 am10:30 amLot Management for Batch Manufacturers in Life Sciences, Chemical and Food

28jul2:00 pm2:30 pmConsiderations for Successful Testing Plans for Major Releases of Dynamics 365 Finance and Supply Chain Management

29jul11:00 am12:00 pmConfab Live with Stoneridge – Integration Strategies for End User Success


04aug2:00 pm2:30 pmSimplifying Payroll and HR Management with ADP Workforce Now

10aug(aug 10)8:00 am11(aug 11)11:00 amPower BI for Dynamics 365 - Online Workshop

11aug10:00 am10:30 amThe Modern Manufacturer - Enterprise Asset Management

11aug12:00 pm12:30 pmBusiness Intelligence with Dynamics 365 Finance and Supply Chain Management – Game Changing Insights and Analytics

11aug2:00 pm2:30 pmUsing Technology to Manage Complex Sales Pricing, Commission, and Rebate Programs

18aug10:00 am11:00 amTop Five Reasons Why NOW is the Right Time to Move from Salesforce to Dynamics 365 Customer Engagement

18aug10:00 am12:00 pmIntro to Power BI for Dynamics 365 Business Central – Online Workshop

18aug12:00 pm1:00 pmSolving the Biggest Challenges in Agribusiness Through Innovation and Technology

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!