Results 1 to 5 of 5

Thread: Create Account ID

  1. #1
    brianwg07sugar is offline Senior Member
    Join Date
    Jun 2008
    Posts
    30

    Default Create Account ID

    Hi,

    For each customer, we need to create a customer Number (account ID), such as CT00025 as a customer reference ID.

    Although the system currently generates system ID for each account, for example, c98ed20-32a7-4573-5f26-493bc653f4da, this is not suitable for business purposes, to allow customers to quote their own customer reference number.

    also, in the Quotes in the Professional edition, is there any way, we can make the system generate quote number in a patter like INV000220 rather than some simple number like 1, or 2?

    Thank you

    Brian

  2. #2
    ciph3r is offline Member
    Join Date
    Nov 2008
    Posts
    8

    Default Re: Create Account ID

    Brian, the 32-bit number you quoted is a Sugar ID number. It's used for all unique id's, as well as the ID's for all relationships. What I would recommend is that you modify the system so that you generate & store your own account number in the accounts_cstm table and use this to reference the accounts. We do something similar, yielding a number like C12381-000 for an account automatically on save.

    If you still wish to have a look at the code that generates the encoded ID's, you can find it in include/utils.php create_guid();

  3. #3
    gibby is offline Junior Member
    Join Date
    Nov 2008
    Posts
    2

    Default Re: Create Account ID

    Hey - so this thread is of interest to me also....
    I'm happy for the system to generate a record ID, but it must be intelligable to use as a matchkey across systems.

    IS there an easy way for the product (using enterprise) to generate a unique ID that is interpreted as something a little more pallatable?

    Iam a bit of a novice, so how can I access include/utils.php create_guid()

    Appreciate any advise...

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Create Account ID

    Quote Originally Posted by brianwg07sugar View Post
    Hi,

    For each customer, we need to create a customer Number (account ID), such as CT00025 as a customer reference ID.

    Although the system currently generates system ID for each account, for example, c98ed20-32a7-4573-5f26-493bc653f4da, this is not suitable for business purposes, to allow customers to quote their own customer reference number.

    also, in the Quotes in the Professional edition, is there any way, we can make the system generate quote number in a patter like INV000220 rather than some simple number like 1, or 2?

    Thank you

    Brian
    Hi Brian

    Take a look at this thread: http://www.sugarcrm.com/forums/showt...ght=autonumber
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    brianwg07sugar is offline Senior Member
    Join Date
    Jun 2008
    Posts
    30

    Default Re: Create Account ID

    Thank you very much for your reply. This is very helpful.

    regards

    Brian

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 2008-07-12, 02:23 AM
  2. Bug in Create Account?
    By thimk in forum General Discussion
    Replies: 4
    Last Post: 2008-01-16, 08:59 AM
  3. Replies: 0
    Last Post: 2007-07-27, 01:50 PM
  4. Replies: 0
    Last Post: 2007-07-27, 01:47 PM
  5. Replies: 1
    Last Post: 2006-12-04, 01:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •