Results 1 to 2 of 2

Thread: Duplicate check with custom fields

  1. #1
    jgrimaldos is offline Sugar Community Member
    Join Date
    Nov 2009
    Posts
    26

    Default Duplicate check with custom fields

    Hi, is there a way to add a custom field to the available indexes on the duplicate check that gets done on import? I'm talking about Sugar 6.1 Community Edition

  2. #2
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Duplicate check with custom fields

    Maybe this could work (I used it with 6.2, but with normal fields in a custom module created with module builder):
    Add an index definition in modules\<modulename>\vardefs.php (plus Repair):
    PHP Code:
    'indices' => array ( 
            array(
    'name' =>'idx_my_index_name''type' =>'index''fields'=>array('field1''field2')),
      ), 
    This example defines an index for two fields (named 'field1' and 'field2') in that module where the combination of these field values should be unique. The field array should contain one or more entries.
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Duplicate custom fields
    By ruppsterunicon in forum Help
    Replies: 4
    Last Post: 2009-04-29, 01:32 AM
  2. custom duplicate check
    By maus in forum Developer Help
    Replies: 2
    Last Post: 2008-12-01, 08:05 PM
  3. Duplicate Merge Custom Fields
    By ttrotter in forum Help
    Replies: 1
    Last Post: 2008-03-22, 07:13 PM
  4. Replies: 2
    Last Post: 2007-01-18, 05:44 PM
  5. Replies: 0
    Last Post: 2006-09-13, 06:57 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
  •