Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

How to set default value of a parameter if Dataset returns nothing in SSRS

$
0
0

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>



Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images