Results 1 to 2 of 2

Thread: Logging Merged Duplicates

  1. #1
    dwolff51 is offline Junior Member
    Join Date
    Apr 2008
    Posts
    2

    Default Logging Merged Duplicates

    I don't know if this should be a feature request, or if I can accomplish this through an audit log that I can't locate.

    Ideally, I wish there was a log table that showed details of all merged duplicate records. Specifically, I'd like the table to show the source table (e.g. leads), the deleted GUID, the "merged into" GUID, the timestamp, and the user who did the merge.

    I haven't found the specific information in the lead_audit table, and can't find it anyplace else. Does it exist?

  2. #2
    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: Logging Merged Duplicates

    Hi dwolff51

    It is possible and in a upgrade safe way.
    You have to:
    1. Create a logic_hook before_delete for all modules which can be merged.
    2. The function for this logic_hook must check if the action is the "SaveMerge"
    3. If yes so you can insert in some new table the necessary data to log the merged records

    Cheers
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Logging problem...
    By Sabicho in forum Developer Help
    Replies: 5
    Last Post: 2007-02-09, 05:39 PM
  2. Logging problem...
    By Sabicho in forum General Discussion
    Replies: 0
    Last Post: 2007-02-09, 03:06 PM
  3. Filter duplicates in email campaign
    By pinetree in forum Help
    Replies: 1
    Last Post: 2006-02-16, 03:13 PM
  4. Logging is not working
    By Tempo in forum Developer Help
    Replies: 0
    Last Post: 2005-12-20, 10:07 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
  •