« Microsoft CRM 4.0 Multiple Relationships and Mapping | Main | Microsoft CRM 4.0 Entity Relationship Diagrams (ERD) »

March 07, 2008

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54fb34b6f883300e550c1805c8834

Listed below are links to weblogs that reference Custom Auto-Incrementing Values in CRM:

Comments

Joel Lindstrom

Thanks Will--this looks great. I think for the purposes that I originally asked the question, a sequential number will probably work best.

Will Wilson

That's a nice thing about this solution. You could easily leave out the prefix part and you've got a sequential number genrator right there!

In cases where business rules dictate a number based on Date, etc (almost like a serial number where individual digits have meaning), your solution presented earlier would be a much more effective way to solve the problem.

I think both ideas are pretty good, just depends on what your target application is.

Joel Lindstrom

that's what I'm saying--I think your solution is a better fit for the one that I posted for my situation. Now the next level--make it work server side or workflow based so it works for accounts not created via the front end (example: Scribe).

Jeremy

Hi,

I have read several informative blogs about auto-incrementing in CRM. The one thing I do not understand is not within the code but in the beginning where you state:

"What we're doing with the Custom_Prefix setting is specifying what prefix our custom counter should use. We have set it to be "PRE"."

How do I set it? Do I create 1 record and fill in the text with "PRE"? If so does the field have to be a certain type? E.g. nvarchar?

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.

Search The Blog

  • Search the Blog
     

    WWW
    this blog

Twitter Updates

    follow me on Twitter