<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx</link><description>10/10/07 UPDATE: Please read this http://blogs.msdn.com/joris_kalz/archive/2007/10/10/Vista-CRM-Search-Gadget-_2D00_-Update.aspx too. CRM-Friends! As promised here I wanted to update my multi entity search for Microsoft CRM by using a Windows Vista Gadgets.</description><dc:language>de-DE</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#2147604</link><pubDate>Mon, 16 Apr 2007 01:41:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2147604</guid><dc:creator>Microsoft Dynamics CRM @ Joris Kalz's WebLog</dc:creator><description>&lt;p&gt;CRM-Friends! As promised I wanted to update my multi entity search for Microsoft CRM by using a Windows&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#2152041</link><pubDate>Mon, 16 Apr 2007 12:42:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2152041</guid><dc:creator>Joris Kalz</dc:creator><description>&lt;p&gt;Some questions and answers from a mail:&lt;/p&gt;
&lt;p&gt;1. The gadget URL textbox doesn't allow enough characters. In my case, I needed to put the FQDN in and ran out of characters (&lt;a rel="nofollow" target="_new" href="http://xxxx.xxxxxxxxx.local/search"&gt;http://xxxx.xxxxxxxxx.local/search&lt;/a&gt;). I got around it by adding a DNS suffix, but it might be nice to have some more room in there.&lt;/p&gt;
&lt;p&gt;ANSWER: I have uploaded a new version, it is now extended to 256 chars.&lt;/p&gt;
&lt;p&gt;2. What columns are you returning in the results? Can the search results have column headers?&lt;/p&gt;
&lt;p&gt;ANSWER: I thought about to divide the result into multiple tables to make it more clear for the user what columns will be returned, maybe next version. However it is customizible by editing the config.xml file.&lt;/p&gt;
&lt;p&gt;3. When I try to add the search to the list of IE 7 providers, I get the following error:&lt;/p&gt;
&lt;p&gt;ANSWER: Unfortunately it is hardcoded. Look at Default.aspx Line 78:&lt;/p&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;#&amp;quot; onclick='window.external.AddSearchProvider(&amp;quot;&lt;a rel="nofollow" target="_new" href="http://192.168.100.20/Search/SearchProvider.xml&amp;quot;"&gt;http://192.168.100.20/Search/SearchProvider.xml&amp;quot;&lt;/a&gt;);'&amp;gt;&lt;/p&gt;
&lt;p&gt;And change it to &lt;/p&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;#&amp;quot; onclick='window.external.AddSearchProvider(&amp;quot;http://[yourwebsite]/Search/SearchProvider.xml&amp;quot;);'&amp;gt;&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#2154296</link><pubDate>Mon, 16 Apr 2007 17:48:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2154296</guid><dc:creator>Vali</dc:creator><description>&lt;p&gt;Hello - crm search works like a charm - good job Joris&lt;/p&gt;
&lt;p&gt;I have one hickup - it is only searching through leads - so it is not touching Opps and Accounts&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;Vali&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#2154426</link><pubDate>Mon, 16 Apr 2007 18:02:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2154426</guid><dc:creator>Joris Kalz</dc:creator><description>&lt;p&gt;@vali:&lt;/p&gt;
&lt;p&gt;it should search in accounts, contacts and leads. open the config.xml to see which fields will be searched.&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#2191790</link><pubDate>Thu, 19 Apr 2007 16:02:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2191790</guid><dc:creator>petergordon</dc:creator><description>&lt;p&gt;when I perform a search I get this error. Is it a configuration issue on my part?&lt;/p&gt;
&lt;p&gt;Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.&lt;/p&gt;
&lt;p&gt;Source Error: &lt;/p&gt;
&lt;p&gt;Line 314:&lt;/p&gt;
&lt;p&gt;Line 315: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Execute the request.&lt;/p&gt;
&lt;p&gt;Line 316: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RetrieveMultipleResponse principalResponse = (RetrieveMultipleResponse)service.Execute(retrievePrincipal);&lt;/p&gt;
&lt;p&gt;Line 317:&lt;/p&gt;
&lt;p&gt;Line 318: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return principalResponse.BusinessEntityCollection;&lt;/p&gt;
&lt;p&gt;Source File: e:\inetpub\extensions\search\Default.aspx.cs &amp;nbsp; &amp;nbsp;Line: 316 &lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#2192110</link><pubDate>Thu, 19 Apr 2007 16:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2192110</guid><dc:creator>JochenG</dc:creator><description>&lt;p&gt;@Vali:&lt;/p&gt;
&lt;p&gt;The fact that it wasn't searching the Account had something to do with a minor bug in the add2DataTable method.&lt;/p&gt;
&lt;p&gt;Just add following code to the catch block in the method and everything should work:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dataRow != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != String.Empty)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataTable.Rows.Add(dataRow);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#2196645</link><pubDate>Thu, 19 Apr 2007 23:28:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2196645</guid><dc:creator>Joris Kalz</dc:creator><description>&lt;p&gt;@petergordon:&lt;/p&gt;
&lt;p&gt;please check if your web site for the search application is running in windows authentication mode. &lt;/p&gt;
&lt;p&gt;@JochenG:&lt;/p&gt;
&lt;p&gt;thanks a lot for your correction&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#2843404</link><pubDate>Thu, 24 May 2007 17:52:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2843404</guid><dc:creator>Kuven</dc:creator><description>&lt;p&gt;Hi there, really cool app.&lt;/p&gt;
&lt;p&gt;CS0103: The name 'dataRow' does not exist in the current context&lt;/p&gt;
&lt;p&gt;I get this error after adding the catch statement to the default.aspx.cs file. I am not a developer so please excuse. I get this when trying to fix the bug so that it may search through accounts.&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#2980637</link><pubDate>Wed, 30 May 2007 07:30:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2980637</guid><dc:creator>tsales314</dc:creator><description>&lt;p&gt;I got the same error...any ideas?&lt;/p&gt;
&lt;p&gt;-T&lt;/p&gt;
</description></item><item><title>New Microsoft Dynamics CRM VPC (update)</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#3243994</link><pubDate>Tue, 12 Jun 2007 11:34:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3243994</guid><dc:creator>A Freaky Microsoft Dynamics CRM Blog</dc:creator><description>&lt;p&gt;I can now proudly announce that we will have the new Microsoft Dynamics CRM VPC available for download&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#3431150</link><pubDate>Wed, 20 Jun 2007 23:58:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3431150</guid><dc:creator>loxer420</dc:creator><description>&lt;p&gt;I am trying to get this to work on my CRM 3.0 server and tried including the code above so that the searches would be more accurate, but am getting the same error &amp;quot;CS0103: The name 'dataRow' does not exist in the current context&amp;quot;.&lt;/p&gt;
&lt;p&gt;I noticed that it was searching on 4 fields in account by default, but that if one of the fields was empty, the application wouldn't return those items in the result. &amp;nbsp;Below is the same error but with a little more details.&lt;/p&gt;
&lt;p&gt;Compiler Error Message: CS0103: The name 'dataRow' does not exist in the current context&lt;/p&gt;
&lt;p&gt;Source Error:&lt;/p&gt;
&lt;p&gt;Line 397: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception)&lt;/p&gt;
&lt;p&gt;Line 398: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;Line 399: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dataRow != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != String.Empty)&lt;/p&gt;
&lt;p&gt;Line 400: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;Line 401:&lt;/p&gt;
&lt;p&gt;Source File: c:\Inetpub\CRMSearch\Default.aspx.cs &amp;nbsp; &amp;nbsp;Line: 399 &lt;/p&gt;
&lt;p&gt;My modified catch statement in Default.aspx.cs looks like this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dataRow != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != String.Empty)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataTable.Rows.Add(dataRow);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Am I doing something fundamentally wrong here?&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#4282728</link><pubDate>Tue, 07 Aug 2007 23:42:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4282728</guid><dc:creator>dr3w2k</dc:creator><description>&lt;p&gt;Is it possible to add the option to also search Cases? I have tried editing the config.xml file but I constantly get an error thrown on line 316:&lt;/p&gt;
&lt;p&gt;Line 314:&lt;/p&gt;
&lt;p&gt;Line 315: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Execute the request.&lt;/p&gt;
&lt;p&gt;Line 316: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RetrieveMultipleResponse principalResponse = (RetrieveMultipleResponse)service.Execute(retrievePrincipal);&lt;/p&gt;
&lt;p&gt;Line 317:&lt;/p&gt;
&lt;p&gt;Line 318: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return principalResponse.BusinessEntityCollection;&lt;/p&gt;
&lt;p&gt;Here is the code I added to the config.xml file:&lt;/p&gt;
&lt;p&gt;&amp;lt;entity name=&amp;quot;case&amp;quot; guidcolumn=&amp;quot;incidentid&amp;quot; icon=&amp;quot;ico_16_4.gif&amp;quot; url=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://crm/CS/lcases/edit.aspx?id=&amp;quot;"&gt;http://crm/CS/lcases/edit.aspx?id=&amp;quot;&lt;/a&gt; description=&amp;quot;Leads&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;		&amp;lt;field name=&amp;quot;ticketnumber&amp;quot; description=&amp;quot;Ticket&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;		&amp;lt;field name=&amp;quot;CFSAccount&amp;quot; description=&amp;quot;Account&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;		&amp;lt;field name=&amp;quot;title&amp;quot; description=&amp;quot;Title&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;		&amp;lt;field name=&amp;quot;ownerid&amp;quot; description=&amp;quot;Owner&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;	&amp;lt;/entity&amp;gt;&lt;/p&gt;
&lt;p&gt;Any thoughts/suggestions?&lt;/p&gt;
</description></item><item><title>CRM Queue Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#4284197</link><pubDate>Wed, 08 Aug 2007 01:55:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4284197</guid><dc:creator>Akezyt on MSDN</dc:creator><description>&lt;p&gt;Introduction Microsoft CRM 3.0 shipped with an extensive web service API that can be used by various&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#5036103</link><pubDate>Fri, 21 Sep 2007 20:19:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5036103</guid><dc:creator>TourismVI</dc:creator><description>&lt;p&gt;I too am getting the CS0103: 'dataRow&amp;quot; does not exist error. What are we all doing wrong??&lt;/p&gt;
&lt;p&gt;Compiler Error Message: CS0103: The name 'dataRow' does not exist in the current context&lt;/p&gt;
&lt;p&gt;Source Error:&lt;/p&gt;
&lt;p&gt;Line 397: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception)&lt;/p&gt;
&lt;p&gt;Line 398: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;Line 399: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dataRow != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != String.Empty)&lt;/p&gt;
&lt;p&gt;Line 400:&lt;/p&gt;
&lt;p&gt;Line 401: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt;Source File: c:\Program Files\Microsoft CRM\Search\Default.aspx.cs &amp;nbsp; &amp;nbsp;Line: 399 &lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#5038195</link><pubDate>Fri, 21 Sep 2007 21:58:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5038195</guid><dc:creator>TourismVI</dc:creator><description>&lt;p&gt;Also, did anybody else find that if you have too many results when using the Vista Gadget (more than about 10), the IE7 window that pops up cuts off the rest of the results? In other words there is no scroll bar. Any ideas how to fix this?&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#5278884</link><pubDate>Fri, 05 Oct 2007 00:25:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5278884</guid><dc:creator>TourismVI</dc:creator><description>&lt;p&gt;For all those struggling with the CS0103 error I have the solution! Move the following line from default.aspx.cs up ABOVE the try block.&lt;/p&gt;
&lt;p&gt;DataRow dataRow = dataTable.NewRow();&lt;/p&gt;
&lt;p&gt;In other words that add2DataTable should function should look like this:&lt;/p&gt;
&lt;p&gt;private static void add2DataTable(ref DataTable dataTable, BusinessEntityCollection entityCollection)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// adding records&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; entityCollection.BusinessEntities.Length; i++)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DynamicEntity dynamicEntity = (DynamicEntity)entityCollection.BusinessEntities[i];&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp;DataRow dataRow = dataTable.NewRow();&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp;try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataRow[&amp;quot;type&amp;quot;] = dynamicEntity.Name;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataRow[&amp;quot;id&amp;quot;] = ((KeyProperty)dynamicEntity.Properties[0]).Value.Value;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (((StringProperty)dynamicEntity.Properties[1]).Value != null)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataRow[&amp;quot;field1&amp;quot;] = ((StringProperty)dynamicEntity.Properties[1]).Value;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (((StringProperty)dynamicEntity.Properties[2]).Value != null)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataRow[&amp;quot;field2&amp;quot;] = ((StringProperty)dynamicEntity.Properties[2]).Value;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (((StringProperty)dynamicEntity.Properties[3]).Value != null)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataRow[&amp;quot;field3&amp;quot;] = ((StringProperty)dynamicEntity.Properties[3]).Value;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (((StringProperty)dynamicEntity.Properties[4]).Value != null)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataRow[&amp;quot;field4&amp;quot;] = ((StringProperty)dynamicEntity.Properties[4]).Value;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataTable.Rows.Add(dataRow);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (dataRow != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != null &amp;amp;&amp;amp; dataRow[&amp;quot;id&amp;quot;] != String.Empty)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataTable.Rows.Add(dataRow);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#5390294</link><pubDate>Wed, 10 Oct 2007 11:53:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5390294</guid><dc:creator>Joris Kalz</dc:creator><description>&lt;p&gt;TourismVI, Thank you very much for sharing your solution! I highly appreciate it!&lt;/p&gt;
&lt;p&gt;Joris&lt;/p&gt;
</description></item><item><title>Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#5390359</link><pubDate>Wed, 10 Oct 2007 12:04:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5390359</guid><dc:creator>Microsoft Dynamics CRM @ Joris Kalz's WebLog</dc:creator><description>&lt;p&gt;If you haven't read about the Vista - Microsoft Dynamics CRM Search Gadget yet, please read this first:&lt;/p&gt;
</description></item><item><title>Bio - Joris Kalz</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#5524367</link><pubDate>Fri, 19 Oct 2007 17:37:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5524367</guid><dc:creator>Microsoft Dynamics CRM Team Blog</dc:creator><description>&lt;p&gt;Joris Kalz is working as Partner Technical Specialist for Microsoft in Germany. He focuses on consulting,&lt;/p&gt;</description></item><item><title>Bio - Joris Kalz</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#5668875</link><pubDate>Thu, 25 Oct 2007 17:05:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5668875</guid><dc:creator>Microsoft Dynamics CRM Team Blog</dc:creator><description>&lt;p&gt;Joris Kalz is working as Partner Technical Specialist for Microsoft in Germany. He focuses on consulting,&lt;/p&gt;</description></item><item><title>Ny Vista Gadget för sök i Microsoft CRM</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#6689843</link><pubDate>Fri, 07 Dec 2007 09:57:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6689843</guid><dc:creator>Microsoft Dynamics CRM Norge</dc:creator><description>&lt;p&gt;Nu har ytterligare en ny Vista Gadget dykt upp som g&amp;#246;r det enkelt att s&amp;#246;ka igenom Microsoft CRM databasen&lt;/p&gt;
</description></item><item><title>re: Vista CRM Search Gadget</title><link>http://blogs.msdn.com/joris_kalz/pages/Vista-Microsoft-CRM-Search-Gadget.aspx#9538186</link><pubDate>Wed, 08 Apr 2009 16:38:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9538186</guid><dc:creator>SviFi</dc:creator><description>&lt;p&gt;Thank you very much for the script! &lt;/p&gt;
&lt;p&gt;With modification listed in comments here it works great. In fact, maybe the source file could be also fixed a little to be up to date, considering what was noted in comments?&lt;/p&gt;
&lt;p&gt;One question (getting back to what dr3w2k was asking, but wasn't answered): how easy is it to make it search in additional entities such as cases, articles, E-mails, Appointments? &lt;/p&gt;
&lt;p&gt;Would it be a task of rewriting everything or just some small modifications? &lt;/p&gt;
&lt;p&gt;Thank you very much again. I appreciate great work.&lt;/p&gt;
&lt;p&gt;Vitaly Stockman&lt;/p&gt;
</description></item></channel></rss>