Results 1 to 2 of 2

Thread: Opportunity unique id

  1. #1
    dbeltrami is offline Junior Member
    Join Date
    May 2010
    Posts
    1

    Default Opportunity unique id

    Hi,

    Can anyone tell me if Sugar creates a unique id for every opportunity in the system?

    If it does, how is this field accessed/displayed?

    If it doesn't, how would I go about creating a field that auto generates an id?

    Thanks,
    Damian.

  2. #2
    turutosiya's Avatar
    turutosiya is offline Sugar Community Member
    Join Date
    Aug 2007
    Location
    Tokyo, Japan
    Posts
    147

    Default Re: Opportunity unique id

    set 'auto_increment' attribute to true in vardefs.php of Opptunities module.
    PHP Code:
    'auto_increment'                => true
    below is the example for unique id, that is auto numbered.
    PHP Code:
    'number'                                    => array (
        
    'name'                                    => 'number',
        
    'vname'                                    => 'LBL_NUMBER',
        
    'type'                                    => 'int',
        
    'len'                                        => 10
        
    'duplicate_merge'                => 'disabled',
        
    'audited'                                => true,
        
    'auto_increment'                => true,
        
    'disable_num_format'        => true,
        
    'massupdate'                        => false,
        
    'required'                            => true,
        
    'unified_search'                => true,
    ), 
    see also:
    http://www.sugarcrm.com/forums/showthread.php?t=42498
    Toshiya TSURU <turutosiya@gmail.com>
    http://j.mp/turutosiya
    http://twitter.com/turutosiya

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unique ID generator
    By jblain in forum Developer Help
    Replies: 3
    Last Post: 2009-06-05, 05:52 PM
  2. Replies: 1
    Last Post: 2009-04-11, 03:26 PM
  3. How unique is the unique ID?
    By RedSerratia in forum Developer Help
    Replies: 2
    Last Post: 2008-09-23, 01:04 PM
  4. Using tracker_key for unique ID
    By dvancamp in forum Developer Help
    Replies: 0
    Last Post: 2007-03-08, 05:18 PM
  5. Unique fields
    By aheuermann in forum Help
    Replies: 1
    Last Post: 2006-08-14, 07:13 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
  •