Best way to generate a report for audit logs of a field on SugarCRM On-Demand

Hello everyone,

I've tried finding out a simple way to generate a report based on tracking the dates when a particular drop-down field was changed from one value to the next. My initial research has concluded that there isn't a way to do this.

So my questions are:

1. Is it really not possible without the purchase of 3rd Party SugarCRM modules (like Sugar Outfitters)?

2. If it isn't, is it at least possible to timestamp a text field (with the status) every time the status is changed? I can later extract that and create my report using some simple Excel manipulations.

Thanks a lot.

  • I tested this in 6.5.24 (not CE, but should work the same there) and it worked without any issues. The zip file I used can be found downloaded here. Here are the steps I took:

    1. In Admin > Studio, create a new TextArea field named "status_log".
    2. Add this new field to the Edit View and Detail View layouts on the Leads module.
    3. Upload and install the attached zip file in Admin > Module Loader.
    4. Run the Admin > Quick Repair and Rebuild tool.
    5. Go to a Lead record and change the Status field, then verify that the Status Log field was updated.

    Let me know if you have any questions or issues with this!

    -Alan

  • I created a package you can install that should be able to help you accomplish this. You can download the zip file from the Github Repository. Here's the gist of what I did:

    • Created a custom module with a "Log Date" field and Many-To-One relationships to Cases and Users.
    • Added a logic hook on the Cases module to see if a Log record already exists for the current day, user, and case.
    • If it doesn't, create a new log entry.

    You should be able to install this and then, after some data has populated, run a report on the Cases Log module to get you the data you need. (Note that you can also export Report results in CSV format and open that file in Excel.)

    I didn't test this thoroughly, so feel free to let me know if you run into any issues or if you have any questions!

    -Alan