<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Deepak Kumar &#039;s Weblog</title>
	<atom:link href="http://deepakexploring.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://deepakexploring.wordpress.com</link>
	<description>Everything Related to Microsoft Dynamics CRM Technology</description>
	<lastBuildDate>Fri, 13 Jan 2012 13:36:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='deepakexploring.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/adb71ad56483269e9b80bae82ae14f91?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Deepak Kumar &#039;s Weblog</title>
		<link>http://deepakexploring.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://deepakexploring.wordpress.com/osd.xml" title="Deepak Kumar &#039;s Weblog" />
	<atom:link rel='hub' href='http://deepakexploring.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Update Rollup 6 for Microsoft CRM 2011</title>
		<link>http://deepakexploring.wordpress.com/2012/01/13/update-rollup-6-for-microsoft-crm-2011/</link>
		<comments>http://deepakexploring.wordpress.com/2012/01/13/update-rollup-6-for-microsoft-crm-2011/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 13:30:41 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[CRM 2011]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[CRM 5.0]]></category>
		<category><![CDATA[Update Rollup 6]]></category>
		<category><![CDATA[Update Rollup 6 for crm 2011]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=238</guid>
		<description><![CDATA[Hey Guys, Microsoft has released Update Rollup 6 for CRM 2011 with many changes and fixes. You must have Microsoft Dynamics CRM 2011 build 5.0.9688.583 installed to apply this update rollup. You can get the latest Update Rollup 6 from http://www.microsoft.com/download/en/details.aspx?displaylang=en&#38;id=28712 For the list of new improvements and changes you can go through the below KB [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=238&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey Guys, Microsoft has released Update Rollup 6 for CRM 2011 with many changes and fixes. You must have Microsoft Dynamics CRM 2011 build 5.0.9688.583 installed to apply this update rollup. You can get the latest Update Rollup 6 from</p>
<p><a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=28712">http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=28712</a></p>
<p>For the list of new improvements and changes you can go through the below KB article</p>
<p><a href="http://support.microsoft.com/default.aspx?kbid=2600640">http://support.microsoft.com/default.aspx?kbid=2600640</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=238&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2012/01/13/update-rollup-6-for-microsoft-crm-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>
	</item>
		<item>
		<title>Activity Feed in CRM 2011</title>
		<link>http://deepakexploring.wordpress.com/2012/01/05/activity-feed-in-crm-2011/</link>
		<comments>http://deepakexploring.wordpress.com/2012/01/05/activity-feed-in-crm-2011/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 11:04:35 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[CRM 2011]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Activity Feed]]></category>
		<category><![CDATA[Activity Feed in CRM 2011]]></category>
		<category><![CDATA[Configuring Rules in Activity Feed]]></category>
		<category><![CDATA[Post URL (Dynamic) in Workflow]]></category>
		<category><![CDATA[WorkFlow to create Rules in Activity Feed in CRM 2011]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=219</guid>
		<description><![CDATA[Activity Feed is a very interesting features introduced in CRM 2011. But it has not become as famous as it should be and one of the most obvious reasons may be that still it has few Question (?) marks that needs to be answered or solved when it comes to security and usability in an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=219&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Activity Feed is a very interesting features introduced in CRM 2011. But it has not become as famous as it should be and one of the most obvious reasons may be that still it has few Question (?) marks that needs to be answered or solved when it comes to security and usability in an efficient manner.</p>
<p>In my opinion still some of the features can be improved as of now in order to accept this globally. But still what we have is lot to cheer about. Why I am dough ting at this time I will clarify later in this post.</p>
<p>Let see how we can use this and take the most out of it.  You can get the Activity Feed solution from the Dynamic Marketplace in CRM Settings tab or you can just do Google. The CRM 2011 server setup that was released before Nov 2011 does not contain this solution. So you have to download and import it manually. But in all the latest CRM versions that are coming after Nov 2011 have this activity feed solution installed from before whether it is Online or On- Premise.</p>
<p>Let’s understand the common terms associated with this. We can say it can act as a Twitter for the CRM users plus lot of many other functions.</p>
<p><strong><span style="text-decoration:underline;">Post</span></strong>:</p>
<p>Post is an Entity and whatever you write is saved internally as a record. So every item on your wall is a post. It is yet like another entity. You can create new post through Plugin, workflow etc. You can even trigger anything on different operation performed. We will see how to create a post from workflow to meet our business need.</p>
<p><strong><span style="text-decoration:underline;">Wall:</span></strong></p>
<p>Wall is nothing but the UI html page what we see where all the posts are visible. Records even can have wall and a tab ‘Record Wall’ can be seen for that record.</p>
<p><strong><span style="text-decoration:underline;">Follow/Unfollow:</span></strong></p>
<p>Follow and Unfollow are the two options that will be visible for all entities but will be enabled for only those entities for which the activity feed will be configured.</p>
<p><a href="http://deepakexploring.files.wordpress.com/2012/01/1.jpg"><img class="aligncenter size-full wp-image-220" title="1" src="http://deepakexploring.files.wordpress.com/2012/01/1.jpg?w=620" alt=""   /></a></p>
<p><strong><span style="text-decoration:underline;">Configuration of Activity Feed</span></strong></p>
<p>After importing the solution you will find three links in <strong>what’s New</strong> in the Workplace Area and the other two as shown below</p>
<p style="text-align:center;"><a href="http://deepakexploring.files.wordpress.com/2012/01/2.jpg"><img class="aligncenter  wp-image-221" style="border-color:black;border-style:solid;border-width:1px;" title="2" src="http://deepakexploring.files.wordpress.com/2012/01/2.jpg?w=372&#038;h=272" alt="" width="372" height="272" /></a></p>
<p>Let’s configure some entities. Click Activity Feed Configuration and create records for the entities which we want to configure. Remember give the schema name of entity and not the display name.</p>
<p style="text-align:center;"><a href="http://deepakexploring.files.wordpress.com/2012/01/31.jpg"><img class="aligncenter size-full wp-image-223" style="border-color:black;border-style:solid;border-width:1px;" title="3" src="http://deepakexploring.files.wordpress.com/2012/01/31.jpg?w=620&#038;h=267" alt="" width="620" height="267" /></a></p>
<p>The interesting thing I found that we cannot define Rules for the entities. Because we cannot find any add New Rule or Existing button. However the system creates few rules for the few entities that exist from before like Lead, Opportunity, etc.</p>
<p>We can configure for custom entities also but cannot define rule directly which I found the funniest part. I hope that issue gets solved in the coming versions /updates. At present if we want to define some rules for custom entities than we can do that by configuring with a workflow.</p>
<p>For following a multiple records we can do Advance Find select the records to Follow or UnFollow.</p>
<p style="text-align:center;"><a href="http://deepakexploring.files.wordpress.com/2012/01/4.jpg"><img class="aligncenter size-full wp-image-224" style="border-color:black;border-style:solid;border-width:1px;" title="4" src="http://deepakexploring.files.wordpress.com/2012/01/4.jpg?w=620&#038;h=440" alt="" width="620" height="440" /></a></p>
<p><strong><span style="text-decoration:underline;">Workflow to create a Rule and Post Automatically for Custom Entity</span></strong></p>
<p>We will see how we can configure activity feed for a custom entity. This can be done through a workflow.  Let’s take a custom entity called “Investor”. So whenever investor is created by any user then we will post stating that an Investor is created. Let it act as a Notification. Let it as simple as this. Anyways we can do a lot and configure the workflow for our custom logic but here we are going through a sample.</p>
<p><span style="text-align:center;">        1. Create a Process of category as “Workflow” and configure for ‘When record is created’ as shown below</span></p>
<p style="text-align:center;"><a href="http://deepakexploring.files.wordpress.com/2012/01/5.jpg"><img class="aligncenter size-full wp-image-225" style="border-color:black;border-style:solid;border-width:1px;" title="5" src="http://deepakexploring.files.wordpress.com/2012/01/5.jpg?w=620&#038;h=439" alt="" width="620" height="439" /></a></p>
<p>          2. Now we will configure the properties.</p>
<p style="text-align:center;"><a href="http://deepakexploring.files.wordpress.com/2012/01/6.jpg"><img class="aligncenter size-full wp-image-226" style="border-color:black;border-style:solid;border-width:1px;" title="6" src="http://deepakexploring.files.wordpress.com/2012/01/6.jpg?w=620&#038;h=418" alt="" width="620" height="418" /></a></p>
<p>Here we can see the Dynamic value assigned called &#8220;<span style="color:#33cccc;">Post URL (Dynamic)</span>&#8220;. This option is only visible when we have the latest Update Rollup installed. This is basically used to provide a link to that record. So we can open that record by clicking this. This is a new feature update from Microsoft in CRM 2011. Really this is very helpful while creating email form the workflow. We can directly open the record from the Email.</p>
<p>Anyways configuring this workflow save and Activate this workflow.</p>
<p><strong><span style="text-decoration:underline;">Result</span></strong>: Now whenever the Investor record is created automatically a post will be created. We can see this post in the <span style="color:#33cccc;"><strong><span style="text-decoration:underline;">What’s new</span></strong><strong>  </strong></span>in the Workplace Area. Here we have created investor record<strong> <span style="color:#33cccc;">DTest10.</span></strong></p>
<p style="text-align:center;"><a href="http://deepakexploring.files.wordpress.com/2012/01/7.jpg"><img class="aligncenter size-full wp-image-227" style="border-color:black;border-style:solid;border-width:1px;" title="7" src="http://deepakexploring.files.wordpress.com/2012/01/7.jpg?w=620&#038;h=374" alt="" width="620" height="374" /></a></p>
<p><strong><span style="text-decoration:underline;">Note: </span></strong>Yet a lot of things are missing and I think that it needs to be improved a bit more so that it can be accepted widely. Few things that are strange or lack in the current version of the solution are in my opinion are:-</p>
<p>1. We cannot create Rules as per our choice for the entities. Eventually we opt for Workflows to configure.<span style="text-align:center;"> </span></p>
<p style="text-align:center;"><a href="http://deepakexploring.files.wordpress.com/2012/01/8.jpg"><img class="aligncenter size-full wp-image-228" style="border-color:black;border-style:solid;border-width:1px;" title="8" src="http://deepakexploring.files.wordpress.com/2012/01/8.jpg?w=620&#038;h=292" alt="" width="620" height="292" /></a></p>
<p style="text-align:center;">
<p>As we can see that there is no New Button to add any Rules.</p>
<p>2.  The post lacks security. This means that anybody who can view that post can delete that post which will be deleted from the system. This means that the person that created that post is not the sole owner of that post. Even we cannot set anything from the roles and permission point of view.</p>
<p>3. The system creates rules for some of the predefined entities like lead, contact, opportunity etc. We can’t add the rules to the entities configured and yet there is Grid where it can be added.</p>
<p style="text-align:center;"><a href="http://deepakexploring.files.wordpress.com/2012/01/9.jpg"><img class="aligncenter size-full wp-image-229" style="border-color:black;border-style:solid;border-width:1px;" title="9" src="http://deepakexploring.files.wordpress.com/2012/01/9.jpg?w=620&#038;h=290" alt="" width="620" height="290" /></a></p>
<p>So these were my concerns in terms of usability. Hope this gets better in the coming versions or update.</p>
<p><span style="color:#0000ff;"> Happy Reading !!!!!!!</span></p>
<p style="text-align:center;"><strong><span style="text-decoration:underline;"><br />
</span></strong></p>
<p style="text-align:center;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/219/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=219&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2012/01/05/activity-feed-in-crm-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2012/01/1.jpg" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2012/01/2.jpg" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2012/01/31.jpg" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2012/01/4.jpg" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2012/01/5.jpg" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2012/01/6.jpg" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2012/01/7.jpg" medium="image">
			<media:title type="html">7</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2012/01/8.jpg" medium="image">
			<media:title type="html">8</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2012/01/9.jpg" medium="image">
			<media:title type="html">9</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Integration with CRM 2011</title>
		<link>http://deepakexploring.wordpress.com/2011/12/29/sharepoint-integration-with-crm-2011/</link>
		<comments>http://deepakexploring.wordpress.com/2011/12/29/sharepoint-integration-with-crm-2011/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 12:40:45 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[CRM 2011]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[CRM 2011 Integration]]></category>
		<category><![CDATA[Sharepoint 2010 integration + crm 2011]]></category>
		<category><![CDATA[Sharepoint Integration with CRM 2011]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=200</guid>
		<description><![CDATA[CRM 2011 has introduced the concept of Document Management which is nothing but managing and keeping the document properly so that we can use of the documents in the most efficient manner. Integration with SharePoint was possible in the previous versions of CRM also but in 2011 things are really more efficient and organized. With [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=200&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>CRM 2011 has introduced the concept of Document Management which is nothing but managing and keeping the document properly so that we can use of the documents in the most efficient manner. Integration with SharePoint was possible in the previous versions of CRM also but in 2011 things are really more efficient and organized. With the help of SharePoint we can avail and use most of the features of SharePoint in Microsoft CRM.</p>
<p>CRM 2011 can be integrated with both Sharepoint 2007 and 2010. But there are quite some difference visualization wise. If the CRM 2011 is integrated with 2007 we will be able to see the whole data in an IFrame, whereas with Sharepoint 2010 we have both the options i.e to see in an IFrame as well as properly organized documents list folder wise. We can create folders in Sharepoint with the CRM List Components in CRM 2011 which I will talk later.</p>
<p>CRM 2011 can be integrated with both On-Premise and Online and with the below versions</p>
<ul>
<li>Microsoft SharePoint 2010 – almost all versions.</li>
<li>Microsoft Office SharePoint server 2007</li>
</ul>
<p><strong><span style="text-decoration:underline;">CRM List Component</span></strong></p>
<p>CRM List Component is a solution component that allows CRM to create folders automatically in Sharepoint and thus helping us to view the documents in the form of List in CRM. If it is not installed then the whole Sharepoint site will be visible in CRM in an IFrame. I strongly suggest to install the CRM List Component in order to get a good List View (Documents) in CRM.</p>
<p>You can download the CRM List Component from the below location</p>
<p><a href="http://www.microsoft.com/download/en/details.aspx?id=5283">http://www.microsoft.com/download/en/details.aspx?id=5283</a></p>
<p>Now we will see how to integrate with Sharepoint with and without CRM List Component.</p>
<p><strong><span style="text-decoration:underline;">Integration of Sharepoint without CRM List Component</span></strong></p>
<p><strong></strong>1. Go to Settings &#8211;&gt;Document Management &#8211;&gt;Document Management Settings</p>
<p><a href="http://deepakexploring.files.wordpress.com/2011/12/11.png"><img class="aligncenter size-full wp-image-202" title="1" src="http://deepakexploring.files.wordpress.com/2011/12/11.png?w=620&#038;h=284" alt="" width="620" height="284" /></a></p>
<p>2. We can select the entities for which we want to enable the Document Management. By default some of the entities like Lead, Opportunity etc. will be selected. Provide the Sharepoint Site’s URL.</p>
<p><a href="http://deepakexploring.files.wordpress.com/2011/12/2.png"><img class="aligncenter size-full wp-image-204" title="2" src="http://deepakexploring.files.wordpress.com/2011/12/2.png?w=620" alt=""   /></a></p>
<p>3. It will verify the Sharepoint Site and if everything is fine it will say that the URL is a valid one. Complete the configuration wizard.</p>
<p>4. Now we will configure for the lead entity. Open any Lead Record and Click on Documents.</p>
<p><a href="http://deepakexploring.files.wordpress.com/2011/12/3.png"><img class="aligncenter size-full wp-image-205" title="3" src="http://deepakexploring.files.wordpress.com/2011/12/3.png?w=620&#038;h=353" alt="" width="620" height="353" /></a></p>
<p>5. After saving you can see the Sharepoint site in an IFrame as below.</p>
<p><a href="http://deepakexploring.files.wordpress.com/2011/12/41.png"><img class="aligncenter size-full wp-image-207" title="4" src="http://deepakexploring.files.wordpress.com/2011/12/41.png?w=620&#038;h=353" alt="" width="620" height="353" /></a></p>
<p><strong><span style="text-decoration:underline;">Integration of Sharepoint with CRM List Component</span></strong></p>
<p>With CRM List component we can see only the related documents in a list type and not the whole Sharepoint Site. Let’s see how we can install the list component in Sharepoint Server.</p>
<p>You can download as well as follow the instructions from the below URL.</p>
<p><a href="http://www.microsoft.com/download/en/details.aspx?id=5283">http://www.microsoft.com/download/en/details.aspx?id=5283</a></p>
<p>After adding the solution component in the Sharepoint Server you should activate the solution.</p>
<p><a href="http://deepakexploring.files.wordpress.com/2011/12/5.png"><img class="aligncenter size-full wp-image-208" title="5" src="http://deepakexploring.files.wordpress.com/2011/12/5.png?w=620&#038;h=287" alt="" width="620" height="287" /></a></p>
<p>Sometimes after installing the solution [CRM List Component] it gives a lot of pain while activating it. Because of my bad luck I went through the pain due to errors. If you are going through hard luck then you may get the error like ‘<em>The sandboxed code execution request was refused because the Sandboxed Code Host Service was too busy to handle the request</em>.’ Please follow the below link to solve the issue.</p>
<p><a href="http://blogs.msdn.com/b/sharepointdev/archive/2011/02/08/error-the-sandboxed-code-execution-request-was-refused-because-the-sandboxed-code-host-service-was-too-busy-to-handle-the-request.aspx">http://blogs.msdn.com/b/sharepointdev/archive/2011/02/08/error-the-sandboxed-code-execution-request-was-refused-because-the-sandboxed-code-host-service-was-too-busy-to-handle-the-request.aspx</a></p>
<p>Now after successfully activating go the CRM and try configuring this time. This time you will get a Window as below stating where the folders will be created.</p>
<p><a href="http://deepakexploring.files.wordpress.com/2011/12/6.png"><img class="aligncenter size-full wp-image-209" title="6" src="http://deepakexploring.files.wordpress.com/2011/12/6.png?w=620&#038;h=303" alt="" width="620" height="303" /></a></p>
<p>After completing this wizard now if you will open any lead record and click on Documents then only the documents list will be visible and not the whole Sharepoint site.</p>
<p><a href="http://deepakexploring.files.wordpress.com/2011/12/7.png"><img class="aligncenter size-full wp-image-210" title="7" src="http://deepakexploring.files.wordpress.com/2011/12/7.png?w=620&#038;h=205" alt="" width="620" height="205" /></a></p>
<p>I hope this really helps you. For more information related with Sharepoint Integration with CRM 2011 I found the below links very helpful.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/gg334702.aspx">http://msdn.microsoft.com/en-us/library/gg334702.aspx</a></p>
<p><span style="color:#0000ff;"><a href="http://msdn.microsoft.com/en-us/library/gg334702.aspx">http://msdn.microsoft.com/en-us/library/gg309548.aspx</a></span></p>
<p><span style="color:#339966;">Happy Reading!!!!!!!!!!!!!!!!!!</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=200&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2011/12/29/sharepoint-integration-with-crm-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2011/12/11.png" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2011/12/2.png" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2011/12/3.png" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2011/12/41.png" medium="image">
			<media:title type="html">4</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2011/12/5.png" medium="image">
			<media:title type="html">5</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2011/12/6.png" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2011/12/7.png" medium="image">
			<media:title type="html">7</media:title>
		</media:content>
	</item>
		<item>
		<title>Retrieve Option Set Selected Text Value  in CRM 2011</title>
		<link>http://deepakexploring.wordpress.com/2011/12/20/retrieve-option-set-selected-text-value-in-crm-2011/</link>
		<comments>http://deepakexploring.wordpress.com/2011/12/20/retrieve-option-set-selected-text-value-in-crm-2011/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 10:49:51 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[CRM 2011]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[OptionSet]]></category>
		<category><![CDATA[Retrieve Option Set Text Value]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=185</guid>
		<description><![CDATA[Retrieve Option Set Selected Text Value  in CRM 2011 In CRM 4.0 it was very easy to get the Picklist Selected Text value. But in CRM 2011 the Picklist has been changed to Option Set and interestingly they have not exposed any Property to get Text value of the selected value. So now we can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=185&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#33cccc;"><strong><span style="text-decoration:underline;">Retrieve Option Set Selected Text Value  in CRM 2011</span></strong></span></p>
<p>In CRM 4.0 it was very easy to get the Picklist Selected Text value. But in CRM 2011 the Picklist has been changed to Option Set and interestingly they have not exposed any Property to get Text value of the selected value.</p>
<p>So now we can get the value only from the Metadata. It’s not huge but simple to implement. Below is the method which returns the Selected Text Value on Passing the Integer Value.</p>
<pre>public string GetPickListText(string entityName, string attributeName,int optionSetValue,IOrganizationService service)
 {
    string AttributeName = attributeName;
    string EntityLogicalName = entityName;
RetrieveEntityRequest retrieveDetails = new RetrieveEntityRequest
 {
    EntityFilters = EntityFilters.All,
    LogicalName = EntityLogicalName
 };
 RetrieveEntityResponse retrieveEntityResponseObj = (RetrieveEntityResponse)service.Execute(retrieveDetails);
 Microsoft.Xrm.Sdk.Metadata.EntityMetadata metadata = retrieveEntityResponseObj.EntityMetadata;
 Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata picklistMetadata = metadata.Attributes.FirstOrDefault(attribute =&gt; String.Equals(attribute.LogicalName, attributeName, StringComparison.OrdinalIgnoreCase)) as Microsoft.Xrm.Sdk.Metadata.PicklistAttributeMetadata;
 Microsoft.Xrm.Sdk.Metadata.OptionSetMetadata options = picklistMetadata.OptionSet;
IList&lt;OptionMetadata&gt; picklistOption = (from o in options.Options
 where o.Value.Value == optionSetValue
 select o).ToList();
string picklistLabel = (picklistOption.First()).Label.UserLocalizedLabel.Label;
 return picklistLabel;
 }</pre>
<p>Now by using this we can easily get the selected option set value of any attribute of any record. Now to retrieve the text value we need to pass the value of the option set.</p>
<p>For e.g [How to call] To Get the selected text for Shipping method for a contact record</p>
<pre>IOrganizationService service = GetCrmService();//Get the Crm Service 
string textValue=GetPickListText("contact","address1_shippingmethodcode",5,service) ;</pre>
<p>I hope this really helps. <span style="color:#00ff00;">HAPPY Reading !!!!!</span></p>
<pre></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=185&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2011/12/20/retrieve-option-set-selected-text-value-in-crm-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>
	</item>
		<item>
		<title>Filtering records of any entity on top of Role and Permission</title>
		<link>http://deepakexploring.wordpress.com/2011/12/13/filtering-records-of-any-entity-on-top-of-role-and-permission/</link>
		<comments>http://deepakexploring.wordpress.com/2011/12/13/filtering-records-of-any-entity-on-top-of-role-and-permission/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 05:25:24 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[CRM 2011]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[RetrieveMultiple]]></category>
		<category><![CDATA[Filtering records on top of role]]></category>
		<category><![CDATA[Record Filtering in CRM 2011]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=151</guid>
		<description><![CDATA[Filtering records of any entity on top of Role and Permission Many times as a developer point of view we get some requirements which are complex in terms of designing and to meet such type of requirement we look to find an alternative solution. Recently in my project I faced an issue regarding the Security [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=151&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#00ccff;"><strong><span style="text-decoration:underline;">Filtering records of any entity on top of Role and Permission </span></strong></span></p>
<p>Many times as a developer point of view we get some requirements which are complex in terms of designing and to meet such type of requirement we look to find an alternative solution.</p>
<p>Recently in my project I faced an issue regarding the Security Role for a Specific Type of User(Role). I would like to share the scenario. I had to filer the records of a particular entity dynamically based on a PickList value of that form. I mean in real the problem and the requirement was much more complex but let not focus on that. Let’s see how we can filter the record on top of the role privileges.</p>
<p>To solve my problem I wrote a plugin and registered for a RetrieveMultiple message.</p>
<pre>// Obtain the execution context from the service provider.
IPluginExecutionContext context=(IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
if (context.Mode == 0 &amp;&amp; context.Stage == 20 &amp;&amp; context.MessageName.Equals("RetrieveMultiple"))
{
  if (context.InputParameters.Contains("Query"))
  {
     if (context.InputParameters["Query"] is QueryExpression)
     {
         QueryExpression objQueryExpression = (QueryExpression)context.InputParameters["Query"];

       if (objQueryExpression.EntityName == "entityName")
       {
          IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
          service = serviceFactory.CreateOrganizationService(context.UserId);
          ConditionExpression conExpress;
          string role = string.Empty;

          role = getUserRole(context.UserId);//Method to get the role of logged In User
          if (role.Contains("roleName"))
          {
             conExpress = new ConditionExpression()
             {
                AttributeName = "attributeName",
                Operator = ConditionOperator.Equal,
                Values = { "1" }
              };
            }
           else
           {
           // show all for legal , finance, system admin

           conExpress = new ConditionExpression()
           {
             AttributeName = "attributeName",
             Operator = ConditionOperator.In,
             Values = { "1", "2", "3" }
           };
        }

       FilterExpression newFilter = new FilterExpression()
       {
           FilterOperator = LogicalOperator.Or,
           Conditions = { conExpress }
       };

       objQueryExpression.Criteria.AddFilter(newFilter);
       }
     }
  }
}</pre>
<p>Here I have used the method getUserRole() but not shown in the code. We can get the role easily by using Linq, FetchXml or any other means. Anyways that was not the agenda for this article.</p>
<p>I have tested this plugin &amp; its works fine without any Performance Issue. Below I have shown the registration steps for this plugin.</p>
<p style="text-align:center;"><a href="http://deepakexploring.files.wordpress.com/2011/12/latestregistrationstep.jpg"><img class="aligncenter size-full wp-image-172" title="LatestRegistrationstep" src="http://deepakexploring.files.wordpress.com/2011/12/latestregistrationstep.jpg?w=620" alt=""   /></a></p>
<p><strong>Note</strong>: If you are checking the entityname inside the plugin then its fine you can register the plugin as above otherwise you c an mention the entityname also in the Primary Entity in the above registration  step.</p>
<p><span style="font-family:Consolas, Monaco, monospace;"><span style="font-family:Consolas, Monaco, monospace;">This RetrieveMultiple can be used for multiple purposes for eg for filtering of records in Lookup etc. I hope this really helps.  <span style="color:#0000ff;">HAPPY READING</span> <span style="color:#00ff00;">!!!!!!!!!!!!!!!!!!</span></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=151&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2011/12/13/filtering-records-of-any-entity-on-top-of-role-and-permission/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2011/12/latestregistrationstep.jpg" medium="image">
			<media:title type="html">LatestRegistrationstep</media:title>
		</media:content>
	</item>
		<item>
		<title>Developer ToolKit  in CRM 2011</title>
		<link>http://deepakexploring.wordpress.com/2011/11/28/developer-toolkit-in-crm-2011/</link>
		<comments>http://deepakexploring.wordpress.com/2011/11/28/developer-toolkit-in-crm-2011/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 12:53:48 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[CRM 2011]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[developer toolkit]]></category>
		<category><![CDATA[Developer Toolkit in CRM 2011]]></category>
		<category><![CDATA[sdk tools]]></category>
		<category><![CDATA[visual studio development for CRM]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=137</guid>
		<description><![CDATA[Developer ToolKit  in CRM 2011 Microsoft has provided the developer toolkit for CRM 2011. But it is unfortunate and sad that lot of people are either not aware or after knowing also do not like to use for their development purpose. But I found it really helpful for development as it can really increase the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=137&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">Developer ToolKit  in CRM 2011</span></strong></p>
<p>Microsoft has provided the developer toolkit for CRM 2011. But it is unfortunate and sad that lot of people are either not aware or after knowing also do not like to use for their development purpose. But I found it really helpful for development as it can really increase the speed of the development. This tool is integrated with the Visual Studio 2010 to accelerate the development of custom code for Microsoft Dynamics CRM solutions.</p>
<p>This tool comes with the latest CRM SDK version 5.0.7 You can download this from</p>
<p><a href="http://www.microsoft.com/download/en/details.aspx?id=24004">http://www.microsoft.com/download/en/details.aspx?id=24004</a></p>
<p>The Developer Toolkit can be found in the following location in the SDK .sdk\tools\developertoolkit folder. Just run the <strong>crmdevelopertools_installer </strong>where your Visual Studio is present. Just remember you need VS 2010 with Silverlight 4 for proceeding with this developer toolkit development.</p>
<p>Please follow the below link to get a good picture…. It’s really nice …</p>
<p><a href="http://community.dynamics.com/product/crm/crmtechnical/b/crminogic/archive/2011/11/14/crm-2011-developer-toolkit.aspx">http://community.dynamics.com/product/crm/crmtechnical/b/crminogic/archive/2011/11/14/crm-2011-developer-toolkit.aspx</a></p>
<p>Happy Learning ….!!!!!!!!1</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=137&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2011/11/28/developer-toolkit-in-crm-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>
	</item>
		<item>
		<title>oData and JScript in CRM 2011</title>
		<link>http://deepakexploring.wordpress.com/2011/10/20/odata-and-jscript-in-crm-2011/</link>
		<comments>http://deepakexploring.wordpress.com/2011/10/20/odata-and-jscript-in-crm-2011/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 12:11:59 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[CRM 2011]]></category>
		<category><![CDATA[JScripts]]></category>
		<category><![CDATA[CRM 2011 oData]]></category>
		<category><![CDATA[Javascript in CRM 2011]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[oData in CRM 2011]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=94</guid>
		<description><![CDATA[oData and JScript in CRM 2011 Before going through the usage of oData in CRM 2011 first let us understand what is oData and why it is introduced in CRM 2011. What is oData ? oData is also referred as Open Data Protocol. CRM 2011 mainly uses Windows Communication Foundation (WCF) data services framework to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=94&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4><span style="color:#00ccff;"><strong><span style="text-decoration:underline;">oData and JScript in CRM 2011</span></strong></span></h4>
<p>Before going through the usage of oData in CRM 2011 first let us understand what is oData and why it is introduced in CRM 2011.</p>
<p><strong>What is oData</strong><strong> ?</strong></p>
<p>oData is also referred as Open Data Protocol. CRM 2011 mainly uses Windows Communication Foundation (WCF) data services framework to provide oData Endpoint which is nothing but a REST based data service. The address for the endpoint is:</p>
<p><a href="http://%7Borganizationrooturl%7D%20/XRMServices/2011/OrganizationData.svc">http://{OrganizationRootUrl} /XRMServices/2011/OrganizationData.svc</a><strong> </strong></p>
<p><strong>Now What is REST ? </strong></p>
<p>REST(Representational State Transfer) is an style of referring data in which every resource can be referenced by a URL mainly in Microsoft CRM. Here resource is nothing but the entity or record or an image etc. So now in CRM 2011 we can reach to the record collection by the URL (properly defined syntax).  Microsoft has provided some syntax styles  which should be followed to access a resource.</p>
<p>oData uses some data  format for sending and receiving the data. Basically it uses the following two formats.</p>
<ol>
<li>ATOM: It is an Xml based format mainly used for the RSS feeds.</li>
<li>JSON: JavaScript Object Notation is a text formats which makes very easy for the developers to understand the response what we get. For more info please visit:  <span style="color:#0000ff;"><a href="http://www.json.org/"><span style="color:#0000ff;">www.json.org</span></a></span></li>
</ol>
<p style="text-align:justify;">For eg: For getting all the contact record set the URL can be like</p>
<p style="text-align:justify;padding-left:30px;"><span style="text-decoration:underline;color:#0000ff;"><a href="https://%7Borganizationrooturl%7D%20/XRMServices/2011/OrganizationData.svc"><span style="color:#0000ff;">http://{OrganizationRootUrl} /XRMServices/2011/OrganizationData.svc</span></a>/ContactSet</span></p>
<p>We can also select few attributes by using a” select “command.</p>
<p><span style="color:#0000ff;"><span style="color:#0000ff;">          </span></span><span style="text-decoration:underline;"><span style="color:#0000ff;text-decoration:underline;"><span style="color:#0000ff;text-decoration:underline;"><a href="http://%7Borganizationrooturl%7D%20/XRMServices/2011/OrganizationData.svc">http://{OrganizationRootUrl} /XRMServices/2011/OrganizationData.svc</a></span>/ContactSet?$select=FirstName,LastName</span></span></p>
<p>This will give a collection of First Name and Last Name for all the contacts. Lot of other stuffs is also possible like filtering, ordering, paging etc.</p>
<p>Now we will see how we can implement in Jscript in CRM 2011. Below is the sample code for fetching the Contact’s PrimaryEmailId form an Account form. Save the code as some js file and upload as a WebResource(Jscript). Refer this in accounts WebResources and call the function OnLoad() in the OnLoad event of account entity.</p>
<pre>function OnLoad() {
    var serverUrl = "http://" + window.location.host + "/" + Xrm.Page.context.getOrgUniqueName();
    var primarycontact = Xrm.Page.getAttribute("primarycontactid").getValue();
    var primarycontactid = primarycontact[0].id;

 // Creating the Odata Endpoint
    var oDataPath = serverUrl + "/XRMServices/2011/OrganizationData.svc";
    var retrieveReq = new XMLHttpRequest();
    var Odata = oDataPath + "/ContactSet?$select=EMailAddress1&amp;$filter=ContactId eq guid'" + primarycontactid + "'";
    retrieveReq.open("GET", Odata, false);
    retrieveReq.setRequestHeader("Accept", "application/json");
    retrieveReq.setRequestHeader("Content-Type", "application/json; charset=utf-8");
    retrieveReq.onreadystatechange = function () { retrieveReqCallBack(this); };
    retrieveReq.send();
}

function retrieveReqCallBack(retrieveReq) {
    if (retrieveReq.readyState == 4 /* complete */) {
        var retrieved = this.parent.JSON.parse(retrieveReq.responseText).d;
        var EmailAddress = retrieved.results[0].EMailAddress1;
        alert(EmailAddress);
     }
}</pre>
<p>Test: Create a contact record and put some email id in the Email field. Save the record. Now create one account record and refer this contact in the primarycontact field.  Now whenever you open a account record that has primarycontact the email id will be alerted.      <strong>Note:</strong> The name of the attributes in the select and the filter criteria are not the actual attributes names but these are the schemas names for that fields so please be careful while referring to the values.Hope this gives a basic idea of oData in CRM 2011…… Happy Reading !!!!!!!!!!!!!!!!!!!!!!!!!!!!!1</p>
<p><span style="font-family:Consolas, Monaco, monospace;"><span class="Apple-style-span" style="font-size:12px;line-height:18px;white-space:pre;"><br />
</span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=94&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2011/10/20/odata-and-jscript-in-crm-2011/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>
	</item>
		<item>
		<title>LINQ to XML</title>
		<link>http://deepakexploring.wordpress.com/2011/06/17/linq-to-xml-2/</link>
		<comments>http://deepakexploring.wordpress.com/2011/06/17/linq-to-xml-2/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 10:08:55 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[LINQ]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Linq]]></category>
		<category><![CDATA[Linq to Xml]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=70</guid>
		<description><![CDATA[LINQ to XML LINQ(Language Integrated Query)to XML is the modern way of dealing with XML data. The Linq to Xml came with the.Net Framework 3.5. Before that we were using XMLDocument which follows the DOM architecture. But with the introduction of LINQ the task has been reduced a lot coding wise for the developers. But [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=70&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="line-height:normal;"><strong><em><span style="text-decoration:underline;">LINQ to XML</span></em></strong></span></p>
<div class="Section1">
<p class="MsoNormal" style="line-height:normal;">LINQ(Language Integrated Query)to XML is the modern way of dealing with XML data. The Linq to Xml came with the.Net Framework 3.5. Before that we were using <span style="font-size:9.5pt;font-family:Consolas;color:blue;">XMLDocument</span> which follows the DOM architecture. But with the introduction of LINQ the task has been reduced a lot coding wise for the developers. But for type of operations the whole XML Document has to be loaded in memory.</p>
<p class="MsoNormal" style="line-height:normal;">Today we will look how we canperform certain operation on Xml data using the Linq to XML architecture.</p>
<p class="MsoNormal" style="line-height:normal;"><strong><em><span style="text-decoration:underline;"><span style="color:#0099ff;">Reading the Xml and Storing in List</span></span></em></strong></p>
<p class="MsoNormal" style="line-height:normal;">Lets create a sample XML which we are going to use read using Linq to XML feature. The below XML is our sample xml lets name it as &#8220;Sample.xml&#8221;.</p>
<pre>&lt;Configurations&gt;
    &lt;Employee Id="1"&gt;
        &lt;Info Name="aaaaa" Age="24" Sex="Male"&gt;&lt;/Info&gt;
        &lt;Info Name="bbbbb" Age="25" Sex="Male"&gt;&lt;/Info&gt;
    &lt;/Employee&gt;
    &lt;Employee Id="2"&gt;
        &lt;Info Name="ccccc" Age="26" Sex="Male"&gt;&lt;/Info&gt;
        &lt;Info Name="ddddd" Age="27" Sex="Female"&gt;&lt;/Info&gt;
    &lt;/Employee&gt;
&lt;/Configurations&gt;</pre>
<p class="MsoNormal" style="margin-bottom:.0001pt;line-height:normal;">Lets create a class a define some</p>
<p class="MsoNormal" style="line-height:normal;">property that can hold the xml values. Lets name this class as <strong>ReadingXmlWithLinq</strong>.cs</p>
<pre>public class ReadingXmlWithLinq
        {
            public string Name { get; set; }
            public string Age { get; set; }
            public string Sex { get; set; }
        }</pre>
<p><span class="Apple-style-span" style="line-height:normal;">Now let’s see how we can </span><span class="Apple-style-span" style="line-height:normal;">read the Sample.xml file using Linq to Xml concept.</span></p>
<pre>using System;
using System.Linq;
using System.Xml.Linq;</pre>
<p class="CodeBlock"><span class="Apple-style-span" style="font-family:Consolas, Monaco, monospace;line-height:18px;font-size:12px;white-space:pre;">private IList&lt;ReadingXmlWithLinq&gt; GetXMlList()</span></p>
<pre>{
   XDocument configparentXML = XDocument.Load(xmlPathAddress);
   string node = "Info";
   var configs = (from config in configparentXML.Descendants(node)
   select new ReadingXmlWithLinq
    {
       Name = config.Attribute("Name") != null ? config.Attribute("Name").Value : "",
       Age = config.Attribute("Age") != null ? config.Attribute("Age").Value : datatable,
       Sex = config.Attribute("Sex") != null ? config.Attribute("Sex").Value : "",
     });
   IList&lt;ReadingXmlWithLinq&gt; rules = configs.ToList();
   return rules;
}</pre>
<p class="CodeBlock"><span class="Apple-style-span" style="line-height:normal;">Now this will return a list of four elements. Thus we will get all the four rows values. Thus rules[0].Name will give &#8221;aaaaa&#8221; and rules[3].Name will give &#8220;ddddd&#8221; Now what if I need only those info whose Id is 1. That is Node Attribute value Id. So now this looks little  difficult. But if we are using Linq it is quite simple. Lets see</span></p>
<pre>private IList&lt;ReadingXmlWithLinq&gt; GetXMlList()
        {
            XDocument parentXML = XDocument.Load(xmlPathAddress);
            string node = Employee;
            string IdValue = "1";

            var parentconfigs = from config in parentXML.Descendants(node)
                                where (string)config.Attribute("Id") == IdValue
                                select config;
            string childnode = "Info";
            configs = (from config in parentconfigs.Descendants(childnode)
                       select new ReadingXmlWithLinq
                       {
                           Name = config.Attribute("Name") != null ? config.Attribute("Name").Value : "",
                           Age = config.Attribute("Age") != null ? config.Attribute("Age").Value : datatable,
                           Sex = config.Attribute("Sex") != null ? config.Attribute("Sex").Value : "",
                       });

            IList&lt;ReadingXmlWithLinq&gt; rules = configs.ToList();
            return rules;
        }</pre>
<p class="CodeBlock"><span class="Apple-style-span" style="line-height:normal;">Now the above function will </span><span class="Apple-style-span" style="line-height:normal;">return only two values that is Employee ID&#8217;s value equal to 1. Thus we can get </span><span class="Apple-style-span" style="line-height:normal;">selective value based on certain criteria or condition. This is pretty simple </span><span class="Apple-style-span" style="line-height:normal;">and easy as compared to the traditional way of handling. </span></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=70&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2011/06/17/linq-to-xml-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>
	</item>
		<item>
		<title>CRUD Operation (Early Bound Classes) using WCF services in CRM 2011</title>
		<link>http://deepakexploring.wordpress.com/2011/02/16/crud-operation-early-bound-classes-using-wcf-services-in-crm-2011/</link>
		<comments>http://deepakexploring.wordpress.com/2011/02/16/crud-operation-early-bound-classes-using-wcf-services-in-crm-2011/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 14:05:53 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[CRM 2011]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[CRM 2011 Early Bound Classes]]></category>
		<category><![CDATA[WCF in CRM 2011]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=31</guid>
		<description><![CDATA[Working with Early Bound Classes with CRM 2011 WCF Services. Before starting the development we should see the Services involved 1. IDiscoveryService : The IDiscovery Service is a global service used to determine the Organizations that the system user is a member of, and the endpoint address URL to access the IOrganization service. This is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=31&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#28a9ff;"><strong><span style="text-decoration:underline;">Working with Early Bound Classes with CRM 2011 WCF Services.</span></strong></span></p>
<p>Before starting the development we should see the Services involved</p>
<p><em> </em><strong> 1. </strong><strong><span style="text-decoration:underline;">IDiscoveryService</span> :</strong> The IDiscovery Service is a global service used to determine the Organizations that the system user is a member of, and the endpoint address URL to access the IOrganization service. This is basically used when we have multiple organizations in the same CRM Server and we need to know all the organization and their IOrganization Services URL’s at runtime or  through the code.</p>
<p><strong> For eg: </strong><a href="https://%7Bservername%7D%20/XRMServices/2011/Discovery.svc"><span style="color:#0000ff;">https://{ServerName} /XRMServices/2011/Discovery.svc</span></a></p>
<p><strong> 2. </strong><strong><span style="text-decoration:underline;">IOrganizationService :</span></strong> The IOrganization Service is Basically used for accessing the organization data and metadata with the help of the WCF implementation. This is the main service for the operation of all  Create,Update ,Delete,Retrieve  etc.</p>
<p><strong> <span style="text-decoration:underline;">For eg: </span></strong><a href="https://%7Bservername%7D%20/XRMServices/2011/Organization.svc"><span style="color:#0000ff;">https://{ServerName} /XRMServices/2011/Organization.svc</span></a></p>
<p><strong><span style="text-decoration:underline;">Steps  to be done before Development </span></strong></p>
<ol>
<li>Registration of Device using Device Registration Tool Provided in the SDK.</li>
</ol>
<p><strong><span style="text-decoration:underline;">Eg:</span></strong></p>
<p><span style="color:#ff00ff;">C:\&gt;deviceregistration.exe /operation:Register </span> &#8211; Go to the location where the exe is there and then run with the following command.</p>
<p>This will register you device and give Device Username and Device Password. This Device Id Username and Password is basically used while generating  the class which is used for the development though early bound class.</p>
<p>The device Username and password is basically used for the Authentication of the Services (mainly for <strong>Claim Based Authentication</strong>) which we want to use. The CRM 2011 online supports only claim based authentication so the device username and the password is very important and a necessary component for generating the code{class} for using the Organization Service data and metadata.</p>
<p><strong>Note: The Device Username and the password is not necessary in the other form of Authentication like On- Premise, IFD  etc.</strong></p>
<ol>
<li>Creating the Class using the <strong>CrmSvcUtil.exe</strong> Tool  which is again the part of the SDK and can be used for generating the Early bound Class. The syntax for using this tool is given below.</li>
</ol>
<p><strong><span style="text-decoration:underline;">For Eg:</span></strong></p>
<p><span style="color:#ff00ff;">CrmSvcUtil.exe /url:https://{servername}/XRMServices/2011/Organization.svc /out:E:\GeneratedCode.cs /username:US</span><span style="color:#ff00ff;">ERNAME </span><span style="color:#ff00ff;">/password:&#8221;********&#8221; / deviceid:&#8221;11yjcvqjo4ynpdoi5dfyo19yth&#8221; /devicepassword:&#8221;^Va/oCyeCy~Fbbko0fZ~m;lf&#8221;</span></p>
<p><strong>Note:</strong> Please replace the USERNAME with the username with which you logs the CRM for the given URL.</p>
<p>After using this tool a class file will be generated which we need to include in our Project for accessing all the entities and data of the Organization.</p>
<p><strong><span style="text-decoration:underline;">Sample Code</span></strong></p>
<ol>
<li>First create a class that will contain the configuration details which we can use in our code for creating the proxy class. This class will contain all the details about the Authentication ,the Organization URL information ,Device Credentials, user credentials etc.</li>
</ol>
<p>So let us create a class called ServerConnection  which also contains a class called <strong>Configuration</strong> which holds the different  variables like Server Address, Organization Name, Discovery URL, Organization URL , Device Credentials, Credentials etc.</p>
<pre>public class ServerConnection
        {
            public class Configuration
            {
                //Declare the variables like Discoveryurl,
            }
        }</pre>
<p>Now we will create a method called <strong>GetServerConfiguration() </strong>for defining the variables.</p>
<pre>public virtual Configuration GetServerConfiguration()
        {
            config.ServerAddress = "{ServerAddress}";
            config.DiscoveryUri = new Uri(String.Format("https://{0}/XRMServices/2011/Discovery.svc", config.ServerAddress));
            config.DeviceCredentials = GetDeviceCredentials();// only for CRM Online not required for On-Premise and IFD
            config.Credentials = GetUserLogonCredentials();
            string baseurl ="https://{ServerAddress}/XRMServices/2011/Organization.svc";
            Uri uri = new Uri(baseurl);
            config.OrganizationUri = uri;
            if (configurations == null) configurations = new List&lt;Configuration&gt;();
            configurations.Add(config);
            return config;
        }</pre>
<p>Here we can find that we are using certain methods like GetDeviceCredentials(),GetUserLogonCredentials(), so we are going to define all those methods now.</p>
<pre>protected virtual ClientCredentials GetDeviceCredentials()
        {
            ClientCredentials credential = new ClientCredentials();
            credential.UserName.UserName = "11yjcvqjo4ynpdoi5dfyo19yth";//Give the username that you get after registering the device.
            credential.UserName.Password = "^Va/oCyeCy~Fbbko0fZ~m;lf";// Give the Device Password .
            return credential;
        }</pre>
<p>Now we will define the GetUserLogonCredential() for getting the User Credentials</p>
<pre>protected virtual ClientCredentials GetUserLogonCredentials()
        {
            ClientCredentials credentials = new ClientCredentials(); ;
            String userName;
            String password;
            userName = "{Windows Live ID Username for logging into CRM.}";
            if (string.IsNullOrWhiteSpace(userName))
            {
            return null;
            }
            password = "Windows Live ID Password.";
            credentials.UserName.UserName = userName;
            credentials.UserName.Password = password;
            return credentials;
        }</pre>
<p>After our ServerConnection Class is ready tharn we can Proceed for the Application part where we can use this class for creating a proxy class for talking  to the IOrganization Service through code.</p>
<p>Now we will create a class where we can consume this. Lets create a class called <strong>ConsumeIorganization.cs</strong></p>
<p>Now first create a Proxy class for establishing a connection to the IOrganization Service and call this method in the page load or any constructor so that before using the classes of the Organization the proxy is properly created.</p>
<pre>public void Run(ServerConnection.Configuration serverConfig)
        {
            try
            {
               using (serviceproxy = new OrganizationServiceProxy(serverConfig.OrganizationUr, serverConfig.HomeRealmUri,
               serverConfig.Credentials, serverConfig.DeviceCredentials))
                {
                    serviceproxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
                    service = (IOrganizationService)serviceproxy;
                }
            }
            catch (FaultException&lt;Microsoft.Xrm.Sdk.OrganizationServiceFault&gt;)
            {
               throw;
            }

         }</pre>
<p><span style="color:#0000ff;"><br />
</span></p>
<p>Now the next step is to use the class in our project which we have got by the tool [SvcUtil.exe ]. Include the class in our Project and start using to get all the classes of the CRM Organization. By adding this class you can use all the data and metadata in your Project.</p>
<p>So Let’s start using this to consume in our code. In the Below code I have written a method which Creates an Account Record.</p>
<pre>public void CreateAccount()
        {
            Account account =new Account();
            account.Name="Sample Account Record Without Service Reference(WCF).";
            account.AccountNumber="10000000000000";
            accountid = service.Create(account);
        }</pre>
<p><span style="text-decoration:underline;"><strong>Note:</strong></span> Here <strong>service </strong>is the object which we have defined while creating a Proxy Class. So not forget to Declare in the beginning  of the class. You can declare as follows</p>
<p><span style="color:#33cccc;">IOrganizationService </span>service;</p>
<p><span style="color:#33cccc;">OrganizationServiceProxy </span>serviceproxy;</p>
<p>Both are part of the DLL [<span style="color:#0000ff;">using</span> Microsoft.Xrm.Sdk,<span style="color:#0000ff;">using </span>Microsoft.Xrm.Sdk.Client]   which is provided in the CRM Sdk .</p>
<p>So Now we are all set to run the. After running the Application you will find that a Account Record will be created in the CRM server.</p>
<p>So Its Easy …………………………..Enjoy&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<span style="color:#0000ff;">!!!!!!!!!!</span></p>
<p><span style="text-decoration:underline;"><br />
</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=31&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2011/02/16/crud-operation-early-bound-classes-using-wcf-services-in-crm-2011/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>
	</item>
		<item>
		<title>PreEntityImages and PostEntityImages In CRM 5.0 / 2011 Plugins</title>
		<link>http://deepakexploring.wordpress.com/2011/02/04/preentityimages-and-postentityimages-in-crm-5-0-2011/</link>
		<comments>http://deepakexploring.wordpress.com/2011/02/04/preentityimages-and-postentityimages-in-crm-5-0-2011/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 14:41:45 +0000</pubDate>
		<dc:creator>deepakkumar5035</dc:creator>
				<category><![CDATA[CRM 2011]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[CRM 5.0]]></category>
		<category><![CDATA[Plugins in CRM 2011]]></category>
		<category><![CDATA[PostEntityImages in Plugins in CRM 2011]]></category>
		<category><![CDATA[PreEntityImages in Plugins in CRM 2011]]></category>

		<guid isPermaLink="false">http://deepakexploring.wordpress.com/?p=11</guid>
		<description><![CDATA[PreEntityImages : It is basically used to capture the data when the form loads. That is the data which is present by default when the form loads.  The syntax for using the PreEntityImages in CRM 2011 is changed as compared to CRM 4.0. Remember the PreEntityImages cannot be registered for &#8220;create&#8221; operation. Syntax Used in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=11&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><em><span style="text-decoration:underline;"><strong>PreEntityImages</strong></span></em> :</p>
<p>It is basically used to capture the data when the form loads. That is the data which is present by default when the form loads.  The syntax for using the PreEntityImages in CRM 2011 is changed as compared to CRM 4.0. Remember the PreEntityImages cannot be registered for &#8220;create&#8221; operation.</p>
<p><span style="text-decoration:underline;">Syntax Used in CRM 2011 :</span></p>
<p>Suppose you registered the Plugin and added a Image with name “<span style="color:#ff0000;">PreImage </span>”</p>
<p>Entity preMessageImage;</p>
<p><span style="color:#0000ff;">if (context.PreEntityImages.Contains(&#8220;PreImage&#8221;) &amp;&amp; context.PreEntityImages["PreImage"] is Entity)</span></p>
<p><span style="color:#0000ff;">{</span></p>
<p><span style="color:#0000ff;">preMessageImage = (Entity)context.PreEntityImages["PreImage"];</span></p>
<p><span style="color:#0000ff;">accountnumber = (String)preMessageImage.Attributes["accountnumber"];</span></p>
<p><span style="color:#0000ff;">}</span></p>
<p>Here Entity is an Class that is available in the<span style="color:#33cccc;"> Microsoft.Crm.Sdk.dll </span></p>
<p><span style="color:#ffcc00;"><span style="color:#33cccc;"><em><span style="text-decoration:underline;"><strong><span style="color:#000000;">PostEntityImages :</span></strong></span></em></span></span></p>
<p><span style="color:#ffcc00;"><span style="color:#33cccc;"><span style="color:#000000;"> The Post Image contains the attributes value which are finally changed. We can capture the changed data before the database operation takes place. And can do any kind of validation based on the changed data. Remember it can only be registered  for update message and cannot be registered on create message.</span></span></span></p>
<p><span style="text-decoration:underline;"><em>Syntax Used in CRM 2011 :</em></span></p>
<p>Suppose you registered the Plugin and added a Image with name “<span style="color:#ff6600;">PostImage </span>”</p>
<p>Entity postMessageImage;</p>
<p><span style="color:#0000ff;">if (context.PostEntityImages.Contains(&#8220;PostImage&#8221;) &amp;&amp; context.PostEntityImages["PostImage"] is Entity)</span></p>
<p><span style="color:#0000ff;">{</span></p>
<p><span style="color:#0000ff;">postMessageImage = (Entity)context.PostEntityImages["PostImage"];</span></p>
<p><span style="color:#0000ff;">accountnumber = (String)postMessageImage.Attributes["accountnumber"];</span></p>
<p><span style="color:#0000ff;">}</span></p>
<p>The PreEntityImages and PostEntityImages are Very useful in Scenarios where we want to compare the data that is changed by the user. Based on the changes the custom operation can be performed.</p>
<p>The below PLugin shows the use of PreEntityImages and PostEntityImages.The plugin creates a contact record when a account record is updated. The plugin uses late binding or Dynamic Entity concept for the creation of the record.</p>
<p><a href="http://deepakexploring.files.wordpress.com/2011/02/sampleplugin.jpg" target="_blank"><img class="size-medium wp-image-14 alignleft" title="SamplePlugin" src="http://deepakexploring.files.wordpress.com/2011/02/sampleplugin.jpg?w=1200&#038;h=700" alt="PreEntityImages concept " width="1200" height="700" /></a></p>
<p><span style="color:#ffcc00;"><span style="color:#33cccc;"><span style="color:#000000;"><br />
</span></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deepakexploring.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deepakexploring.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deepakexploring.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deepakexploring.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deepakexploring.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deepakexploring.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deepakexploring.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deepakexploring.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deepakexploring.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deepakexploring.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deepakexploring.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deepakexploring.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deepakexploring.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deepakexploring.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deepakexploring.wordpress.com&amp;blog=19723818&amp;post=11&amp;subd=deepakexploring&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deepakexploring.wordpress.com/2011/02/04/preentityimages-and-postentityimages-in-crm-5-0-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72677742aa9eee2e1af17c5bab9d3643?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deepakkumar5035</media:title>
		</media:content>

		<media:content url="http://deepakexploring.files.wordpress.com/2011/02/sampleplugin.jpg?w=300" medium="image">
			<media:title type="html">SamplePlugin</media:title>
		</media:content>
	</item>
	</channel>
</rss>
