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 - How can I compare two fields on a contact form?

(0) ShareShare
ReportReport
Posted on by 30

I'm new to creating SSRS reports using MS SQL Server 2008.  I am trying to compare the company field found on the contact form to a custom field where we hold a company name for an Alumni.   I thought I could create an Advance Find and then modify the Fetch XML but it doesn't look like I can compare fields.    Can any let me know how I would compare two fields within the same entity?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Breid,

    There is no way to compare two fields using FetchXML. One alternative you can do is:

    Create a hidden field on your entity which holds the comparison result(Compare two field values using Javascript On Save of the form and update the result in this hidden field) and then you can make use of this hidden field on your FetchXML query for reporting purposes.

  • suresh maurya Profile Picture
    630 on at

    For testing of FetchXML, you can test here online http://msxrmtools.com

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