Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By mikesolomon

Thread: Unique / Customer ID's

  1. #1
    viadesk is offline Junior Member
    Join Date
    Jul 2008
    Posts
    2

    Default Unique / Customer ID's

    We are trying to find our way around within SugarCRM.

    Because we want to identify customers easily we would like to assign a unique ID to them. Preferrably an increasing number.

    I have been looking around but could find such functionality. Ofcourse i can add a custom field called Customer ID but then the id woud have te be entered manually, leaving room for mistakes..

    Is there such functionality or else does anyone have suggestions how to adapt unique id's into SugarCRM.

    TIA,
    Viadesk

  2. #2
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Unique / Customer ID's

    Quote Originally Posted by viadesk
    We are trying to find our way around within SugarCRM.

    Because we want to identify customers easily we would like to assign a unique ID to them. Preferrably an increasing number.

    I have been looking around but could find such functionality. Ofcourse i can add a custom field called Customer ID but then the id woud have te be entered manually, leaving room for mistakes..

    Is there such functionality or else does anyone have suggestions how to adapt unique id's into SugarCRM.

    TIA,
    Viadesk
    you can add an autoincrement field

    Go to studio and add a new integer field

    Add the new field to display view

    Then in your database change the new field in the accounts_cstm table to be an autoincrement field

    That will give you a unique id for your accounts
    Last edited by mikesolomon; 2008-07-17 at 10:39 AM. Reason: Added detail
    mahichhabra likes this.
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  3. #3
    viadesk is offline Junior Member
    Join Date
    Jul 2008
    Posts
    2

    Default Re: Unique / Customer ID's

    Thanks for the info,

    Quote Originally Posted by mikesolomon
    you can add an autoincrement field

    Go to studio and add a new integer field

    Add the new field to display view

    Then in your database change the new field in the accounts_cstm table to be an autoincrement field

    That will give you a unique id for your accounts
    So I tried this, i added the field and tried to change it's value. When i try to update the field in mysql i get an error, 'There can only be one autocolumn and it must be defined as a key' So i can't add an extra field and set it to autoincrement since id_c is present and appearantly has autoincrement set already.

    But when i add his (id_c) field (to create accounts form for instance) it is shown but not filled. Only when i open the created account there's no number present in the field, i expected it to be filled automatically and it seems it needs to be filled manually. The opposite of what we need in SugarCRM.

    This leaves me with some questions
    - Why can't i create the field needed according to your info
    - Is the id_c field intended to carry a customer id ?
    - For which purpose would i use the id_c field ?
    - What is the need of an extra field if id_c could do the job

    I don't expect all my questions to be answered but it would be nice to have this field in place ;-)

    Thanks so far!
    Viadesk

  4. #4
    mahichhabra is offline Sugar Community Member
    Join Date
    Sep 2011
    Location
    Mohali
    Posts
    14

    Default Re: Unique / Customer ID's

    Hello, it works well......... thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to Generate a unique customer code.
    By damanic in forum Help
    Replies: 5
    Last Post: 2008-03-02, 07:01 PM
  2. How does Sugar assign unique IDs to DB objects?
    By ontai in forum Developer Help
    Replies: 9
    Last Post: 2008-01-24, 04:14 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
  •