Hello,
Use advanced find to create fetchXML queries.
Here is the query created from advanced find :
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="account">
<attribute name="name" />
<attribute name="accountid" />
<order attribute="name" descending="false" />
<filter type="and">
<condition attribute="ownerid" operator="in">
<value uiname="CRM Admin1" uitype="systemuser">{2A4F3405-CA4D-E311-92CD-D89D676E8210}</value>
<value uiname="CRM Admin2" uitype="systemuser">{A0087026-CA4D-E311-8E60-D89D6779D5EC}</value>
<value uiname="CRM Admin3" uitype="systemuser">{C8A7B7FF-D505-420B-9C03-ADD331253583}</value>
</condition>
</filter>
</entity>
</fetch>
Or try this one :
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="account">
<attribute name="name" />
<attribute name="accountid" />
<order attribute="name" descending="false" />
<filter type="and">
<condition attribute="ownerid" operator="in">
<value >{2A4F3405-CA4D-E311-92CD-D89D676E8210}</value>
<value >{A0087026-CA4D-E311-8E60-D89D6779D5EC}</value>
<value >{C8A7B7FF-D505-420B-9C03-ADD331253583}</value>
</condition>
</filter>
</entity>
</fetch>
Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !!!
Vikram Singh. !!! My Blog