Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Dated_modified & address list

  1. #1
    GILSL is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    12

    Default Dated_modified & address list

    Hi!!!

    1.- I need to know who has deleted a record. Dated_modified field does not say that user was, because that field only indicates who was the last to edit the registry.

    2 .- You can synchronize the address list of an Exchange server?. I can not perform this process.

    Thanks

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Dated_modified & address list

    You would need to create a custom report or run a sql query to discover who deleted a record. It's not complex, sugarcrm stores the id of the person who last modified the record, and sets a flag to "1" if a record is deleted.

  3. #3
    GILSL is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    12

    Default Re: Dated_modified & address list

    Correct, but I've been testing, and when elina a result, the record = 1 does not match the last user to modify the registry, but corresponds with the last user edit the post.

    Referring to the Exchange, I can do anything?

    Thaks

  4. #4
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Dated_modified & address list

    the modified_user_id returns the id of the person who last modified the record - including a deletion

  5. #5
    GILSL is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    12

    Default Re: Dated_modified & address list

    I'm doing tests but who gets eliminated, only edit the post last

  6. #6
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Dated_modified & address list

    The person who deleted the record is also the person who last modified it

  7. #7
    GILSL is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    12

    Default Re: Dated_modified & address list

    The person who deleted the record is also the person A who last modified it is person B

  8. #8
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Dated_modified & address list

    The person who deleted the record is also the person who last modified it

    So, in the record, the last_modified row will contain the ID of the person who deleted it

  9. #9
    GILSL is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    12

    Default Re: Dated_modified & address list

    The table leads, I have last_modified, but date_modified. It may be why we can not find it?

  10. #10
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Dated_modified & address list

    If you add e logic_hook before delete like this:
    PHP Code:
                    if($event=="before_delete"){
    // ---------------------------------------------------------------------------------------------
    // ---------------------------------------------------------------------------------------------
                       
    $db = & PearDatabase::getInstance();
                                       
                       global 
    $current_user;
                       
    $taeter $current_user->id;
                       
    $query "INSERT INTO accounts_audit (id,parent_id,date_created,created_by,field_name,data_type,before_value_string,after_value_string) ".
                                
    "VALUES (uuid(),'$focus->id',now(),'$taeter','deleted','bool','0','1');";
                       
    $result $db->query($querytrue,"Error auditing accounts.deleted: ");

                    } 
    you will see who deleted the record in the audit table.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2009-09-10, 09:07 AM
  2. Populating Account Address from Contact Address
    By hkphooey in forum General Discussion
    Replies: 6
    Last Post: 2009-07-29, 01:59 AM
  3. Replies: 19
    Last Post: 2008-03-06, 12:49 PM
  4. Email List Contact Address
    By diegofliess in forum Help
    Replies: 1
    Last Post: 2006-07-06, 06:43 PM
  5. Contact List View - Email Address
    By clyons in forum Help
    Replies: 4
    Last Post: 2005-03-11, 03:19 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
  •