<?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/"
	>

<channel>
	<title>TechnoForum &#187; Sql Programming</title>
	<atom:link href="http://www.technoforum.org/tag/sql-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.technoforum.org</link>
	<description>Technology Blog from Around the World</description>
	<lastBuildDate>Tue, 07 Feb 2012 23:41:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Microsoft CRM Programming Secrets &#8211; Tips For Developers</title>
		<link>http://www.technoforum.org/programming/microsoft-crm-programming-secrets-tips-for-developers/</link>
		<comments>http://www.technoforum.org/programming/microsoft-crm-programming-secrets-tips-for-developers/#comments</comments>
		<pubDate>Fri, 15 May 2009 17:29:00 +0000</pubDate>
		<dc:creator>Andrew Karasev</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Sql Programming]]></category>

		<guid isPermaLink="false">http://www.technoforum.org/?p=36</guid>
		<description><![CDATA[This article is for advanced Microsoft CRM SDK C# developers. It describes the technique of direct SQL programming, when SDK doesn&#8217;t have the functionality to do the job. Introduction. Looks like Microsoft CRM becomes more and more popular, partly because of Microsoft muscles behind it. Now it is targeted to the whole spectrum of horizontal [...]]]></description>
			<content:encoded><![CDATA[<p>This article is for advanced Microsoft CRM SDK C# developers.  It describes the technique of direct SQL programming, when SDK doesn&#8217;t have the functionality to do the job.</p>
<p>Introduction.  Looks like Microsoft CRM becomes more and more popular, partly because of Microsoft muscles behind it.  Now it is targeted to the whole spectrum of horizontal and vertical market clientele.  It is tightly integrated with other Microsoft Business Solutions products such as Microsoft Great Plains, Solomon, Navision .<br />Here we describe the technique of creating closed activity-email using MS CRM SDK and direct SQL programming.</p>
<p>Imaging something like this.  You need to handle incoming email before it is committed to MS Exchange database.  You need to analyze if incoming email doesn&#8217;t have GUID in its Subject  &#8211; then you still need to lookup MS CRM in case if one of the accounts, contacts or leads has email address that matches with sender email address &#8211; then you need to create closed activity-email in MS CRM, attached to the object and placed into general queue.</p>
<p>How to create MS Exchange handler is outside of the scope, please see this article:<br /><a target="_new" rel="nofollow" href="http://www.albaspectrum.com/Customizations_Whitepapers/Dexterity_SQL_VBA_Crystal/ExchangeHandlerExample.htm ">http://www.albaspectrum.com/Customizations_Whitepapers/Dexterity_SQL_VBA_Crystal/ExchangeHandlerExample.htm </a></p>
<p>Now the code below is classical MS CRM SDK and it will create activity email:</p>
<p>public Guid CreateEmailActivity </p>
<p>else if  </p>
<p>else if  </p>
<p>strPartiesXml += &#8220;
<partyid>&#8220;+ objectId.ToString + &#8220;</partyid>&#8220;;</p>
<p>strPartiesXml += &#8220;
<participationtypemask>&#8220;;</p>
<p>strPartiesXml += Microsoft.Crm.Platform.Types.ACTIVITY_PARTY_TYPE.ACTIVITY_PARTY_SENDER.ToString;</p>
<p>strPartiesXml += &#8220;</participationtypemask>&#8220;;</p>
<p>strPartiesXml += &#8220;</activityparty>&#8220;;</p>
<p>strPartiesXml += &#8220;</activityparties>&#8220;;</p>
<p>log.Debug;</p>
<p>// Create the e-mail object</p>
<p>Guid emailId = new Guid);</p>
<p>return emailId;</p>
<p>catch  <br />catch  <br />return new Guid;</p>
<p>Now I would like to share the trick with you &#8211; there is no method to make this activity closed in MS CRM SDK 1.2 .  Obviously Microsoft doesn&#8217;t support if you do direct SQL programming bypassing SDK.  However I would say this is not direct objects creation &#8211; this is rather flags correction.  So here is what we have &#8211; this procedure will do the job and make activity closed:</p>
<p>public void UpdateActivityCodes </p>
<p>catch </p>
<p>Happy customizing! if you want us to do the job &#8211; give us a call 1-866-528-0577! <a href="mailto:help@albaspectrum.com <br">&#8220;>help@albaspectrum.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.technoforum.org/programming/microsoft-crm-programming-secrets-tips-for-developers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: www.technoforum.org @ 2012-02-08 03:13:51 -->
