Results 1 to 4 of 4

Thread: viewing id field for contacts, accounts, opportunities

  1. #1
    jcb23 is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    70

    Question viewing id field for contacts, accounts, opportunities

    Windows XP and Vista
    Sugar 5.0.0b
    Apache 2.2.4
    PHP: 5.2.3-1ubuntu6.3
    MySQL Server: 5.0.45-1ubuntu3.3

    My company needs the ability to view and search by id (but of course not the ability to change it). I was able to add the id field so that its one they can view and search by, but the data in the field is of course coming up as the long string version of the id number you see when you export data or view data from phpmyadmin. In an older version of sugar I remembering the id showing as a number at the top of the candidates record and they're being some sort of code you could include in queries to convert this number from the string version to an actual number. Does anyone know what this code is?

    Thanks.

    jcb23

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: viewing id field for contacts, accounts, opportunities

    I've played with Sugar at one level or another since around the 3.x days and I don't recall the ID values for opps, accounts or contacts ever being anything other than the 32 character long ID value you see today. Cases and bugs I believe are the only ones that have numeric ID values. At least that's my recollection.

    In any case, searching based on a string that long would seem to require quite a bit from a user, unless they are doing it programmatically.

    Perhaps elaborating on why you want to search based on ID would help us formulate a potential solution for you.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: viewing id field for contacts, accounts, opportunities

    I think you're better off creating an ID next to it, auto incrementing with 1, so that sorting it has a meaning. Just like cases and bugs. But I think there's some programming involved.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  4. #4
    jcb23 is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    70

    Default Re: viewing id field for contacts, accounts, opportunities

    Quote Originally Posted by Angel
    I've played with Sugar at one level or another since around the 3.x days and I don't recall the ID values for opps, accounts or contacts ever being anything other than the 32 character long ID value you see today. Cases and bugs I believe are the only ones that have numeric ID values. At least that's my recollection.

    In any case, searching based on a string that long would seem to require quite a bit from a user, unless they are doing it programmatically.

    Perhaps elaborating on why you want to search based on ID would help us formulate a potential solution for you.
    We have a few contacts with similar or the same names, but who are actually different people. In the past the way the company has always differentiated between these different contacts is their ID. Its their most reliable way to search for a contact and know that they'll definitely get the person they want in their results.

    I had thought about creating my own id field and having it auto increment. For now I'll try that. I do vividly remember having a query at one point that translated the id number from the 32 character long value to a few digit long number. I'm not sure how I happened upon such a query, but I know I've used it. Oh well.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Opportunities vs. Leads vs. Accounts
    By jasolution in forum General Discussion
    Replies: 5
    Last Post: 2011-01-13, 02:01 AM
  2. SOAP Opportunities to Accounts issue
    By iastor in forum Developer Help
    Replies: 3
    Last Post: 2008-06-18, 02:02 AM
  3. Custom field and Table accounts field
    By Heilong in forum Help
    Replies: 1
    Last Post: 2008-02-04, 03:48 PM
  4. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  5. Replies: 2
    Last Post: 2006-07-30, 01:34 AM

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
  •