<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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: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>Comments on: Auto Numbers in MSCRM</title>
	<atom:link href="http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/feed/" rel="self" type="application/rss+xml" />
	<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/</link>
	<description>Microsoft CRM Blog</description>
	<lastBuildDate>Thu, 12 Nov 2009 18:08:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shakeeb from iqra university</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-5074</link>
		<dc:creator>shakeeb from iqra university</dc:creator>
		<pubDate>Sat, 28 Feb 2009 11:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-5074</guid>
		<description>salam ayaz,
i wanna ask the same question as fahad has asked that why in ms access when we insert text in the number feild we get error while for the text feild when we insert number we dont get error...can u plz explain me the reason for both?
and my second question is......
how does ms access save data in output views in tables?
plz give me the answer as early as possible its my assignment of it and iam not getting any reliable answer for it 
i would be very thankful to you....and waiting for your reply..........</description>
		<content:encoded><![CDATA[<p>salam ayaz,<br />
i wanna ask the same question as fahad has asked that why in ms access when we insert text in the number feild we get error while for the text feild when we insert number we dont get error&#8230;can u plz explain me the reason for both?<br />
and my second question is&#8230;&#8230;<br />
how does ms access save data in output views in tables?<br />
plz give me the answer as early as possible its my assignment of it and iam not getting any reliable answer for it<br />
i would be very thankful to you&#8230;.and waiting for your reply&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fahad</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-5064</link>
		<dc:creator>fahad</dc:creator>
		<pubDate>Thu, 26 Feb 2009 18:51:27 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-5064</guid>
		<description>i have 2 question
1 Question:
    IN MS Access  when we insert text for the numbers feilds we get error while for the text field when we insert number we dont  get error .give the reason why ?
2 question 
How does MS Acces ACess autosaves in output table</description>
		<content:encoded><![CDATA[<p>i have 2 question<br />
1 Question:<br />
    IN MS Access  when we insert text for the numbers feilds we get error while for the text field when we insert number we dont  get error .give the reason why ?<br />
2 question<br />
How does MS Acces ACess autosaves in output table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: muhad197</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-4853</link>
		<dc:creator>muhad197</dc:creator>
		<pubDate>Tue, 02 Dec 2008 06:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-4853</guid>
		<description>Hi, 
1) Can you please paste your full code of &quot;OPTION1&quot;
 with the callout? (or any other) Thanks
2) I downloaded the counter extension of &quot;CRMextensions&quot;. Installation went fine
untill the final phase when the installation
guide points to importing a customizatios xml file.
Now, I searched for that file and it does not
produced by the installation. This is the file
that CRM creates upon request to export the published entities. So, if any of you did succeed to install it, please give a note on how you created the xml file in the last phase of the installation.
If I export the file from the CRM, I don&#039;t get the Counter entity within the xml.
p.s: If the assenbly registered and the dll is created, can I create a  counter entity and use
the assenbly and dll? There is a problem loading
the customization file (of any entity)during import.
Thanks a lot!!!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
1) Can you please paste your full code of &#8220;OPTION1&#8243;<br />
 with the callout? (or any other) Thanks<br />
2) I downloaded the counter extension of &#8220;CRMextensions&#8221;. Installation went fine<br />
untill the final phase when the installation<br />
guide points to importing a customizatios xml file.<br />
Now, I searched for that file and it does not<br />
produced by the installation. This is the file<br />
that CRM creates upon request to export the published entities. So, if any of you did succeed to install it, please give a note on how you created the xml file in the last phase of the installation.<br />
If I export the file from the CRM, I don&#8217;t get the Counter entity within the xml.<br />
p.s: If the assenbly registered and the dll is created, can I create a  counter entity and use<br />
the assenbly and dll? There is a problem loading<br />
the customization file (of any entity)during import.<br />
Thanks a lot!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: muhad197</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-4846</link>
		<dc:creator>muhad197</dc:creator>
		<pubDate>Mon, 24 Nov 2008 09:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-4846</guid>
		<description>is the &quot;CRM extentions&quot; FREE with no TIME LIMIT?</description>
		<content:encoded><![CDATA[<p>is the &#8220;CRM extentions&#8221; FREE with no TIME LIMIT?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayaz Ahmad [MVP - MSCRM]</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-4829</link>
		<dc:creator>Ayaz Ahmad [MVP - MSCRM]</dc:creator>
		<pubDate>Mon, 20 Oct 2008 22:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-4829</guid>
		<description>Hi MaSahara,

You can have plugin that fire on create of appointment. I have created a simple plugin and its working for for me. No fency coding. I can attach a debugger and place a breakpoint. If you look into CRM SDK install folder and go into tools folder and there you can find an excel file. That excel file lists all the plugin events available to appointment entity.

using System;
using System.Collections.Generic;
using System.Text;

using Microsoft.Crm.Sdk;
using Microsoft.Crm.Sdk.Query;
using Microsoft.Crm.SdkTypeProxy;

namespace testplugin
{
    public class Class1 : IPlugin
    {
        public void Execute(IPluginExecutionContext context)
        {
            string message = context.MessageName;
            string entityname = context.PrimaryEntityName;
            ICrmService service = context.CreateCrmService(false);
            string wfname = &quot;&quot;;

            try
            {
                throw new InvalidPluginExecutionException(&quot;Test Error&quot;);
            }
            catch (System.Web.Services.Protocols.SoapException ex)
            {
                throw new InvalidPluginExecutionException(String.Format(&quot;Exception with {0} during plugin {1}, with message {2}, {3}&quot;, message + &quot; on &quot; + entityname, wfname, ex.Message, ex.Detail.InnerText));
            }
        }
    }
}

Let me know, if you are still facing issues. Add me in your MSN or messanger.</description>
		<content:encoded><![CDATA[<p>Hi MaSahara,</p>
<p>You can have plugin that fire on create of appointment. I have created a simple plugin and its working for for me. No fency coding. I can attach a debugger and place a breakpoint. If you look into CRM SDK install folder and go into tools folder and there you can find an excel file. That excel file lists all the plugin events available to appointment entity.</p>
<p>using System;<br />
using System.Collections.Generic;<br />
using System.Text;</p>
<p>using Microsoft.Crm.Sdk;<br />
using Microsoft.Crm.Sdk.Query;<br />
using Microsoft.Crm.SdkTypeProxy;</p>
<p>namespace testplugin<br />
{<br />
    public class Class1 : IPlugin<br />
    {<br />
        public void Execute(IPluginExecutionContext context)<br />
        {<br />
            string message = context.MessageName;<br />
            string entityname = context.PrimaryEntityName;<br />
            ICrmService service = context.CreateCrmService(false);<br />
            string wfname = &#8220;&#8221;;</p>
<p>            try<br />
            {<br />
                throw new InvalidPluginExecutionException(&#8220;Test Error&#8221;);<br />
            }<br />
            catch (System.Web.Services.Protocols.SoapException ex)<br />
            {<br />
                throw new InvalidPluginExecutionException(String.Format(&#8220;Exception with {0} during plugin {1}, with message {2}, {3}&#8221;, message + &#8221; on &#8221; + entityname, wfname, ex.Message, ex.Detail.InnerText));<br />
            }<br />
        }<br />
    }<br />
}</p>
<p>Let me know, if you are still facing issues. Add me in your MSN or messanger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MaSahara</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-4827</link>
		<dc:creator>MaSahara</dc:creator>
		<pubDate>Tue, 14 Oct 2008 08:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-4827</guid>
		<description>Thanks for the speedy replies, Ayaz.

I have moved the logic back to to a plugin as per your suggestion, and discovered the reason i went for w workflow.. haha

it just does not fire. i have attached it to the create appointment event, tried parent and child and messed around with everything i can think of. 

if i attach it to another entity, it fires every time.  

I have asked around the office, and another developer said he had the same problem with plugins on appointment creation, and was never able to resolve it. His solutionis now also in a workflow.

Any idea why? should i be using a different event instead of create?</description>
		<content:encoded><![CDATA[<p>Thanks for the speedy replies, Ayaz.</p>
<p>I have moved the logic back to to a plugin as per your suggestion, and discovered the reason i went for w workflow.. haha</p>
<p>it just does not fire. i have attached it to the create appointment event, tried parent and child and messed around with everything i can think of. </p>
<p>if i attach it to another entity, it fires every time.  </p>
<p>I have asked around the office, and another developer said he had the same problem with plugins on appointment creation, and was never able to resolve it. His solutionis now also in a workflow.</p>
<p>Any idea why? should i be using a different event instead of create?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayaz Ahmad [MVP - MSCRM]</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-4826</link>
		<dc:creator>Ayaz Ahmad [MVP - MSCRM]</dc:creator>
		<pubDate>Mon, 13 Oct 2008 23:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-4826</guid>
		<description>as per my understanding of your problem. you need a unique id for each appointment.

Its a bad idea to generate autonumbers through workflows because they are async in nature. And we are creating a custom entity to carry the next autonumber.

Rather using a workflow, i advise you to use a plugin assembly, syncronous one and on post create event. Although it works fine most of the time but there is probability of error (non unique numebrs).</description>
		<content:encoded><![CDATA[<p>as per my understanding of your problem. you need a unique id for each appointment.</p>
<p>Its a bad idea to generate autonumbers through workflows because they are async in nature. And we are creating a custom entity to carry the next autonumber.</p>
<p>Rather using a workflow, i advise you to use a plugin assembly, syncronous one and on post create event. Although it works fine most of the time but there is probability of error (non unique numebrs).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MaSahara</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-4825</link>
		<dc:creator>MaSahara</dc:creator>
		<pubDate>Mon, 13 Oct 2008 11:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-4825</guid>
		<description>Hi Ayaz, 

Why is workflows a bad idea? too much overhead?

Some background:

We are creating appointments enmasse from an external source. These need to be allocated a unique and human readable autonumber.  these appointments are then propogated to an offline third party application. 

This offline third party applicationcan also generate new appointments, which then get synced back to the server, althoguh these are far less  as far as volumes go.

It made the most sense to therefore set an autonumber workflow to fire on appointment creation, redardless of the source of that appointment, to fill the autonumber field. 

In the case of the mass load, this does cause hundreds of workflows to fire.

The appointments created in the third party application will therefore not have an autonumber allocated until those records arrive on the server, and these are then passed back to the that application in a subsequent sync.

it seemed the best way to ensure a unique ID across all records, regardless of their source, was to use a post create workflow.

It is critical that we do not duplicate this ID.


That said... 


the problem have found this morning for the first time during the mass load, is that if one of these autonumber workflows freeze for whatever reason, then no other workflows fire, regardless of their function, across all tenants on the server.

So that would seem that the async service does not thread instances of workflows, but rather executes them sequentially. so the file lock is not really needed, and you could rather use a workflow and a custom Autonumber entity.

I am investigating Casper Jensen at CrmExtensions.com &#039;s free solution that uses entities and Mutex&#039;s.

Though i would love to hear your input on this.</description>
		<content:encoded><![CDATA[<p>Hi Ayaz, </p>
<p>Why is workflows a bad idea? too much overhead?</p>
<p>Some background:</p>
<p>We are creating appointments enmasse from an external source. These need to be allocated a unique and human readable autonumber.  these appointments are then propogated to an offline third party application. </p>
<p>This offline third party applicationcan also generate new appointments, which then get synced back to the server, althoguh these are far less  as far as volumes go.</p>
<p>It made the most sense to therefore set an autonumber workflow to fire on appointment creation, redardless of the source of that appointment, to fill the autonumber field. </p>
<p>In the case of the mass load, this does cause hundreds of workflows to fire.</p>
<p>The appointments created in the third party application will therefore not have an autonumber allocated until those records arrive on the server, and these are then passed back to the that application in a subsequent sync.</p>
<p>it seemed the best way to ensure a unique ID across all records, regardless of their source, was to use a post create workflow.</p>
<p>It is critical that we do not duplicate this ID.</p>
<p>That said&#8230; </p>
<p>the problem have found this morning for the first time during the mass load, is that if one of these autonumber workflows freeze for whatever reason, then no other workflows fire, regardless of their function, across all tenants on the server.</p>
<p>So that would seem that the async service does not thread instances of workflows, but rather executes them sequentially. so the file lock is not really needed, and you could rather use a workflow and a custom Autonumber entity.</p>
<p>I am investigating Casper Jensen at CrmExtensions.com &#8217;s free solution that uses entities and Mutex&#8217;s.</p>
<p>Though i would love to hear your input on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayaz Ahmad [MVP - MSCRM]</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-4821</link>
		<dc:creator>Ayaz Ahmad [MVP - MSCRM]</dc:creator>
		<pubDate>Tue, 07 Oct 2008 22:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-4821</guid>
		<description>Hi MaSahara,

Generating autonumber through workflows is not a good idea. and using file locking will create issue while working in offline mode. It depends upon how you are designing deployements architecture for your crm implementation.</description>
		<content:encoded><![CDATA[<p>Hi MaSahara,</p>
<p>Generating autonumber through workflows is not a good idea. and using file locking will create issue while working in offline mode. It depends upon how you are designing deployements architecture for your crm implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ayaz Ahmad [MVP - MSCRM]</title>
		<link>http://ayazahmad.wordpress.com/2008/05/02/auto-numbers-in-mscrm/#comment-4820</link>
		<dc:creator>Ayaz Ahmad [MVP - MSCRM]</dc:creator>
		<pubDate>Tue, 07 Oct 2008 22:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://ayazahmad.wordpress.com/?p=78#comment-4820</guid>
		<description>Hi Hans Nellestijn,

You are right that we cannt have 100% pure autonumbers. But if you are using CRM offline client then you dont have access to External DB and that created a deployement issue and hence a bad design. So i think its a job at design time to specify how we are going to generate autonumbers.</description>
		<content:encoded><![CDATA[<p>Hi Hans Nellestijn,</p>
<p>You are right that we cannt have 100% pure autonumbers. But if you are using CRM offline client then you dont have access to External DB and that created a deployement issue and hence a bad design. So i think its a job at design time to specify how we are going to generate autonumbers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
