Link to home
Start Free TrialLog in
Avatar of teknovation
teknovation

asked on

Fetch XML Unions?

Does anyone know how to write a query that can replicate a SQL UNION statement in Fetch XML? I googled this and there were posts saying UNIONS are non-existent in FETCH XML.
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Hi,

You're correct, FetchXml does not support Unions.

However, if you are trying achieve Union on some program, it can be achieved by concatenating the results of 2 different FetchXml query execution.

If you're trying to achieve it in an SSRS report. It is possible through a hack.
You need to create multiple DataSets. All DataSets should have 1 field common. Which can then be compared and set to get values.

Follow this link and you should be have what you want on FetchXml Union-
http://ashishmahajancrm.blogspot.com/2012/04/microsoft-dynamics-crm-2011-develop.html
Avatar of teknovation
teknovation

ASKER

I couldnt figure how to do a Union with that link.
ASKER CERTIFIED SOLUTION
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I couldnt figure how to do a Union with that link.