Results 1 to 5 of 5

Thread: Track Field Changes

  1. #1
    citapinc is offline Sugar Community Member
    Join Date
    Sep 2011
    Location
    Anaheim, CA
    Posts
    81

    Default Track Field Changes

    SugarCRM 6.2.3

    Is there a feature or a way to track the exact date/time/user when a field was changed, including the original value? We suspect a user is changing data but need proof.

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Track Field Changes

    Yes, just set the fields you want to track to audit in studio (if there are not already) and then any changes will be written to the MODULE_NAME_audit table. You can see these changes by clicking on the "View Changes" link at the top of the detailview page.

    Also whenever a user changes a record they are set as the last modified user so you should be able to tell who was the last to edit a record by that.
    Attached Images Attached Images  
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    citapinc is offline Sugar Community Member
    Join Date
    Sep 2011
    Location
    Anaheim, CA
    Posts
    81

    Default Re: Track Field Changes

    Excuse me while I wear this "Du!!!" hat on my head.

    I totally forgot about that feature.

  4. #4
    tobydz is offline Sugar Community Member
    Join Date
    Mar 2011
    Location
    Las Vegas, NV
    Posts
    144

    Default Re: Track Field Changes

    Quote Originally Posted by kbrill View Post
    Yes, just set the fields you want to track to audit in studio (if there are not already) and then any changes will be written to the MODULE_NAME_audit table. You can see these changes by clicking on the "View Changes" link at the top of the detailview page.

    Also whenever a user changes a record they are set as the last modified user so you should be able to tell who was the last to edit a record by that.
    Is there a way to do this with code?

  5. #5
    tobydz is offline Sugar Community Member
    Join Date
    Mar 2011
    Location
    Las Vegas, NV
    Posts
    144

    Default SOLVED Re: Track Field Changes

    Taken from a reply by ldd-silver-ziegler


    create a save logic hook for this module.

    you can compare the values of your field before and after the save in this way:

    Code:
    $bean->fetched_row['yourcustomfieldname']==$bean->yourcustomfieldname // if true, the field was not changed
    fetched_row gets the value before the update. I hope this helps

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Any way to track goals?
    By Douglas879 in forum General Discussion
    Replies: 2
    Last Post: 2011-05-18, 11:39 AM
  2. Any way to track goals?
    By mrdon in forum General Discussion
    Replies: 3
    Last Post: 2009-09-02, 09:11 PM
  3. how can i track emails?
    By ramji123 in forum Help
    Replies: 1
    Last Post: 2007-01-23, 05:25 PM
  4. Is there a way to track...
    By bert in forum General Discussion
    Replies: 1
    Last Post: 2006-04-13, 03:55 PM
  5. Keep track of suppliers.
    By paolodina in forum Help
    Replies: 0
    Last Post: 2005-04-05, 04:32 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
  •