I've below FetchXML query for Dynamics CRM online. It returned the list of the users that exist in a team where current user is the Administrator. I've also set these values for Agents parameter. Now, I want to set the same parameter value as the current user if following query return nothing. Any idea to achieve this?
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> <entity name="systemuser"> <attribute name="fullname" /> <attribute name="title" /> <attribute name="systemuserid" /> <order attribute="fullname" descending="false" /> <link-entity name="teammembership" from="systemuserid" to="systemuserid" visible="false" intersect="true"> <link-entity name="team" from="teamid" to="teamid" alias="bf"> <attribute name="administratorid" /> <filter type="and"> <condition attribute="administratorid" operator="eq-userid" /> </filter> </link-entity> </link-entity> </entity> </fetch>







