<?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; Field</title>
	<atom:link href="http://www.mohamedibrahim.net/blog/tag/field/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>Hide, Display, Resize and Rename left navigation links, CRM fields and attributes using Javascript for Microsoft Dyanmics CRM 4.</title>
		<link>http://www.mohamedibrahim.net/blog/2010/02/17/hide-display-resize-and-rename-left-navigation-links-crm-fields-and-attributes-using-javascript-for-microsoft-dyanmics-crm-4/</link>
		<comments>http://www.mohamedibrahim.net/blog/2010/02/17/hide-display-resize-and-rename-left-navigation-links-crm-fields-and-attributes-using-javascript-for-microsoft-dyanmics-crm-4/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 18:00:32 +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[Field]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.mohamedibrahim.net/blog/?p=164</guid>
		<description><![CDATA[Scripts for Resizing, Hiding and renaming left navigation links, fields and attributes in Microsoft Dynamics CRM 4 using Javascript.]]></description>
			<content:encoded><![CDATA[<p>Scripts for Resizing, Hiding and renaming left navigation links, fields and attributes in Microsoft Dynamics CRM 4 using Javascript. This post is just a collection of some Javascript code for various common scripts that is frequently used in CRM form events, CRM entity events, etc. These script blocks can be used in OnLoad, OnSave events for CRM forms and OnChange events for CRM fields.</p>
<pre>//------- Resize CRM form in the onload event
window.resizeTo(screen.availWidth * 0.85, screen.availHeight * 0.85);</pre>
<pre>//-------Rename left menu link / Left Navigation. Example: Contacts
var navItem = document.getElementById(’navContacts’);
navItem.innerHTML = navItem.innerHTML.replace(’&gt;Contacts’,'&gt;Students’);</pre>
<pre>//------Hide left menu link / Navigation. Example: Workflow
var navLeftItem = document.getElementById(’navAsyncOperations’);
navLeftItem.style.display = ‘none’;</pre>
<pre>//-----Hide Left navigation menu item link of a CRM form based on
// a value in a picklist on the same form.
//Get contacts left navigation menu item element.
var navLeftItem = document.getElementById(’navContacts’);
//if picklist (customer type code) value is equal to 1 (1st item in picklist) then
//hide left menu item (contacts link is used as an example), otherwise, show it.
if(crmForm.all.customertypecode.DataValue == 1)
{
 navLeftItem.style.display = ‘none’;
}
else
{
 navLeftItem.style.display = ‘inline’;
}</pre>
<pre> //-----Hide a CRM field on a form. example: the "name" field.
crmForm.all.name_c.style.display = 'inline';
crmForm.all.name_d.style.display = 'inline';</pre>
<pre>//-----Hide a CRM field on a form (example: the "name" field)
//based on the selected value in a picklist
if(crmForm.all.customertypecode.DataValue == 1)
{
         crmForm.all.name_c.style.display = 'inline';
         crmForm.all.name_d.style.display = 'inline';
}
else
{
         crmForm.all.name_c.style.display = 'none';
         crmForm.all.name_d.style.display = 'none';
}  ////Add this code to the OnLoad event of the form and
////to the on change event of the picklist attribute (field) as well</pre>
<pre>//---------Function to hide CRM field in a form.
//Function accept fieldname as a parameter and
//boolean parameter to remove (hide) entire row on form
HideField('name'); //replace "name" with your field/attribute name
 
function HideField( fieldName, removeEntireRow )
{
 // Always hide the elements, even if we will be hiding the whole row.
 // This allows us to show another field in this row later without this
 // one showing up.
 var elem = crmForm.all[fieldName + "_c"];
 if( elem != null ) elem.style.display = "none";
 elem = crmForm.all[fieldName + "_d"];
 if( elem != null ) elem.style.display = "none";    
 
 if (removeEntireRow)
 {
  var elem = crmForm.all[fieldName + "_d"];
  if( elem != null ) elem.parentElement.style.display = "none";
 }
}</pre>
<p> This post was written quickly from memory and some code blocks here and there, so you might find some minor spelling mistakes. Please comment below if you find any issues with the script blocks or if you want me to extend this post to include additional script.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohamedibrahim.net/blog/2010/02/17/hide-display-resize-and-rename-left-navigation-links-crm-fields-and-attributes-using-javascript-for-microsoft-dyanmics-crm-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Methods to Bulk Delete Microsoft Dynamics CRM records and Using Scribe Insight to perform a Bulk Delete of all CRM records.</title>
		<link>http://www.mohamedibrahim.net/blog/2009/09/23/microsoft-dynamics-crm-bulk-delete-methods-using-scribe-insight-for-bulk-delete-dynamics-crm-records/</link>
		<comments>http://www.mohamedibrahim.net/blog/2009/09/23/microsoft-dynamics-crm-bulk-delete-methods-using-scribe-insight-for-bulk-delete-dynamics-crm-records/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 18:24:03 +0000</pubDate>
		<dc:creator>Mohamed Ibrahim Mostafa</dc:creator>
				<category><![CDATA[Integration]]></category>
		<category><![CDATA[Microsoft Dynamics CRM]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[CRM]]></category>
		<category><![CDATA[Dynamics]]></category>
		<category><![CDATA[Field]]></category>
		<category><![CDATA[SCRIBE]]></category>
		<category><![CDATA[Scribe CRM Adaptor]]></category>

		<guid isPermaLink="false">http://www.mohamedibrahim.net/blog/?p=117</guid>
		<description><![CDATA[I&#8217;m sure many people needed to do a bulk delete operation on Microsoft Dynamics CRM 4.0. You may have uploaded thousands of records from an imported file or migrated them through Scribe or even used a .NET application to mass create records.
Unfortunately, and as far as I can see, there is no straight forward way [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure many people needed to do a bulk delete operation on Microsoft Dynamics CRM 4.0. You may have uploaded thousands of records from an imported file or migrated them through Scribe or even used a .NET application to mass create records.</p>
<p>Unfortunately, and as far as I can see, there is no straight forward way to do bulk records deletion on Dynamics CRM 4.0 using the out of the box functionality and interface of Dynamics CRM 4.0.</p>
<p>To bulk delete records in Dynamics CRM 4.0, you have the following main options:</p>
<ul>
<li>Get a third party tool or CRM add-on to bulk delete records. This option is a straight forward one but you might have to pay for purchasing or using the tool. It may also have security issues. I would not recommend it to my clients as most probably the tool is created by a small company or an individual which I don&#8217;t know. Hence, it will be rather difficult to put this tool on a live Production environment or client server. Let alone adding it to CRM Online or to a CRM hosted solution by a partner.</li>
<li>Use CRM SDK to write a .NET application (or a .NET console application) that will run and delete all records for a specified entity or entities. This is a more robust way of doing it, but it may take longer time and is probably not suitable for people who do not come from .NET development background.</li>
<li>Use Scribe Insight. This is what this post is about really.. Using Scribe Insight to bulk Delete Dynamics CRM records.</li>
</ul>
<p>Please Note: This is a work around. It is not supported by Scribe and the advice in this post is provided as is with no warranty. I have tried it and it works perfectly but can not guarantee it will have the same acceptable results in any other environment.</p>
<p>Here is what you need to do:</p>
<ol>
<li>Create a new Scribe workbench DTS (or Job). Point to your usual source file (even a sample one) and point to CRM: either IFD Forms for hosted CRM or direct connection.</li>
<li>Configure the targe: Create one delete step on the target.</li>
<li>Make sure that the option to &#8220;Allow multiple record matches on updates/deletes&#8221; is ticked under the All steps tab.</li>
<li>Under Step control tab, leave failure to go to next row but change all the success records (Success (0), Success (1) and Success (&gt;1) ) to End Job. Select success radio button at the bottom and write a message to your log such as: &#8220;All records Deleted&#8221;.</li>
<li>No Data links are important as you are only deleting.</li>
<li>On the Lookup link, just make the lookup condition impossible. Such as: where Account Name = 123456789 or whatever.</li>
<li>Run the DTS.</li>
</ol>
<p>The Job will read the first source line. Will then try to find this record at the target (remember it is update/delete). Since we have setup the lookup link to look for something &#8220;impossible to find&#8221;, the result of the update will be Success (0).</p>
<p>Once this happens, Scribe will go and delete all records for your chosen entity (or CRM table). This will be a complete bulk delete of all CRM records using Scribe.</p>
<p>Remember, it&#8217;s a work around&#8230; that works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohamedibrahim.net/blog/2009/09/23/microsoft-dynamics-crm-bulk-delete-methods-using-scribe-insight-for-bulk-delete-dynamics-crm-records/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A list of Important Questions you need to answer before starting any Integration solution or project.</title>
		<link>http://www.mohamedibrahim.net/blog/2009/02/06/a-list-of-important-questions-you-need-to-answer-before-starting-any-integration-solution-or-project/</link>
		<comments>http://www.mohamedibrahim.net/blog/2009/02/06/a-list-of-important-questions-you-need-to-answer-before-starting-any-integration-solution-or-project/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 14:12:27 +0000</pubDate>
		<dc:creator>Mohamed Ibrahim Mostafa</dc:creator>
				<category><![CDATA[Integration]]></category>
		<category><![CDATA[Column]]></category>
		<category><![CDATA[CRM]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Field]]></category>
		<category><![CDATA[SCRIBE]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.mohamedibrahim.net/blog/?p=41</guid>
		<description><![CDATA[I am currently working on an Integration solution for one of our clients. The solution is a general integration between two systems. The main thing for me was that I wanted to come up with a list of questions that I need an answer for so that I can start planning and designing the integration [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently working on an Integration solution for one of our clients. The solution is a general integration between two systems. The main thing for me was that I wanted to come up with a list of questions that I need an answer for so that I can start planning and designing the integration solution.</p>
<p>I thought about a list of general questions that most (if not all) consultants working on any integration solutions will need to have complete answers for before starting the design phase, let alone the development phase of the project.</p>
<p>In my opinion, the list of questions are as follows (not in real order &#8211; just a braindump!):</p>
<ul>
<li>How many environments do you have? Development, Test and Live? (recommended) or is the project is still in development so you can use live environment for development? Where will be the test environment later on?</li>
<li>Is this a direct integration or in-direct integration? Is this an instant, event driven integration or a periodic scheduled integration between two systems? Are their queues for data to be migrated?</li>
<li>What backup and restore operations can you do? The ability to Backup and restore data is vital.</li>
<li>What integration application or tool are you going to use or is available? SCRIBE, SQL Server Integration Services, Web Services (Microsoft .NET Web Services), console applications, plugins? What SDK will you need? CRM SDK and CRM API for example?</li>
<li>The Environment structure: How many physical servers? Where are these servers located? Where is the integration tool or application installed?</li>
<li>How and When can I get access to the environment? Access to all servers is required including access to all databases and to all applications. For example: Access to Microsoft Dynamics CRM application (via webclient) is essential to confirm that data imported to a CRM has been migrated successfully.</li>
<li>What type and format of extracts and data imports? CSV (Comma separated Values), XML, i-Doc, sql flat files, batch files, etc&#8230;</li>
<li>Where will the extracts be imported? directly using the tool or via an FTP server? Is an SFTP server required?</li>
<li>Are their duplicates? If so where, and what classifies a duplicate?</li>
<li>Are there data entry standards for each application in the overall integrated system?</li>
<li>Are there fields that are required in each system part of this integration?</li>
<li>Are there fields that aren&#8217;t used?</li>
<li>Are there any fields with null values?</li>
<li>What relationship does the data has? are there fields which are dependant on others?</li>
<li>What are the primary and forign keys of all tables in each system that will be part of the integrated system? Any field that does not allow null, business required (and preferably business recommended) must have a data upon migration (Defauls can be used then).</li>
<li>Overall high level mapping between the different systems.</li>
<li>What is the value, length, and format of fields/columns in the source system? What is the corresponding value, length and format in the target system?</li>
<li>Are there any Pick Lists? A cross reference is required to map source and target values.</li>
<li>What Data validation is required and is acceptable by the client and the project stakeholders?</li>
<li>Differencing: What are the business rules for differencing? What data does not need to be updated and when? what data is needed to be updated based on the business requirements?</li>
<li>using Default values for all required fields and columns in the target system to avoid causing any errors.</li>
</ul>
<p>This is the list I have thought of so far. I will keep on updating this list as and when I think of something important that needs to be considered.</p>
<p>Let me know if you have any comments or feedback on these questions and tell me whether or not are these questions helpful.</p>
<p>Thanks for reading.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mohamedibrahim.net/blog/2009/02/06/a-list-of-important-questions-you-need-to-answer-before-starting-any-integration-solution-or-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
