<?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>Mohamed Ibrahim Mostafa&#039;s Blog &#187; Fields</title>
	<atom:link href="http://www.mohamedibrahim.net/blog/tag/fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mohamedibrahim.net/blog</link>
	<description>Technical issues, problems, errors, findings &#38; resolutions covering Microsoft Dynamics CRM, software development, Microsoft .NET, C#, VB.NET, Commerce Server, Integration, E-Commerce, Scribe, Online shops and more general technology and consultancy posts.</description>
	<lastBuildDate>Tue, 24 Aug 2010 09:22:45 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SCRIBE: Return the GUID of an entity record in Microsoft Dynamics CRM using a lookup field value.</title>
		<link>http://www.mohamedibrahim.net/blog/2009/08/07/return-the-guid-of-an-entity-record-microsoft-dynamics-crm-using-lookup-field/</link>
		<comments>http://www.mohamedibrahim.net/blog/2009/08/07/return-the-guid-of-an-entity-record-microsoft-dynamics-crm-using-lookup-field/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 11:43:34 +0000</pubDate>
		<dc:creator>Mohamed Ibrahim Mostafa</dc:creator>
				<category><![CDATA[Microsoft Dynamics CRM]]></category>
		<category><![CDATA[CRM]]></category>
		<category><![CDATA[Custom Entity]]></category>
		<category><![CDATA[Fields]]></category>
		<category><![CDATA[Lookup]]></category>
		<category><![CDATA[Relationship]]></category>
		<category><![CDATA[SCRIBE]]></category>
		<category><![CDATA[Scribe CRM Adaptor]]></category>

		<guid isPermaLink="false">http://www.mohamedibrahim.net/blog/?p=84</guid>
		<description><![CDATA[I am working on an Integration project between Microsoft Dynamics CRM and SAP. I am using Scribe as the Integration tool/application.
The source in this case is SAP. The target is Microsoft Dynamics CRM. I am using Microsoft Dynamics CRM Scribe Adaptor.
I&#8217;m not an expert in Scribe (as yet) and I wanted to do a simple [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on an Integration project between Microsoft Dynamics CRM and SAP. I am using Scribe as the Integration tool/application.</p>
<p>The source in this case is SAP. The target is Microsoft Dynamics CRM. I am using Microsoft Dynamics CRM Scribe Adaptor.</p>
<p>I&#8217;m not an expert in Scribe (as yet) and I wanted to do a simple step. I wanted to get the GUID of a record in Microsoft CRM entity using a lookup field value.</p>
<p>The whole Scribe step is just an update to the Account form. I have the Contact name and I need to get the Contact GUID to input this GUID value (pointer to the Contact) into the Account form primary contact field. This is an N:1 relationship between Account and Contact.</p>
<p>So if the primary Contact name of an Account record is John Smith, the question was: how can I get the GUID of the John Smith contact to update the Account record.</p>
<p>Thanks to my colleague John Ball, the answer is to use the simple DBLookup function (formula).</p>
<p>To do that: Select the target Scribe CRM adaptor field. In my case this is custom_account_primarycontactid. Select it and then click formula. In the formula window look for the DBLooukup function. You can use the DBLookupCached function for an enhanced performance if your values are not changing before or after in any of the steps.</p>
<p>The formula should be something like that:</p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="COLOR: #1f497d"><span style="font-size: small;"><span style="font-family: Calibri;">DBLOOKUPCached(S2 , &#8220;T&#8221;, &#8220;contactentity&#8221;, &#8220;contactname&#8221;, &#8220;custom_account_primarycontactid&#8221; )</span></span></span></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> </p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="COLOR: #1f497d"><span style="color: #000000;">That should be it. It&#8217;s quite simple.</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohamedibrahim.net/blog/2009/08/07/return-the-guid-of-an-entity-record-microsoft-dynamics-crm-using-lookup-field/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
