Results 1 to 3 of 3

Thread: How is 'Changed by' determined using 'View Change Log'?

  1. #1
    Kate T is offline Junior Member
    Join Date
    Dec 2010
    Posts
    6

    Default How is 'Changed by' determined using 'View Change Log'?

    I need to run regular sql queries for internal reporting that reproduce the same granular visibility into the life history of a Case (not the History of the case).

    I'm interested in Cases primarily, but would like to understand how it is done in general.

    An example use-case:

    The status of dozen Cases change from New -> Assigned -> Closed -> Pending -> Closed, and I'd like to run a query that will output the datetime and user for each closure, among other things.

    The only place I've seen such information presented is via the Cases 'View Change Log' UI.

    Thanks in advance,

    Kate

  2. #2
    Kate T is offline Junior Member
    Join Date
    Dec 2010
    Posts
    6

    Default Re: How is 'Changed by' determined using 'View Change Log'?

    This is my cases_audit table:

    +---------------------+--------------+------+-----+---------+-------+
    | Field | Type | Null | Key | Default | Extra |
    +---------------------+--------------+------+-----+---------+-------+
    | id | char(36) | NO | | NULL | |
    | parent_id | char(36) | NO | | NULL | |
    | date_created | datetime | YES | | NULL | |
    | created_by | varchar(36) | YES | | NULL | |
    | field_name | varchar(100) | YES | | NULL | |
    | data_type | varchar(100) | YES | | NULL | |
    | before_value_string | varchar(255) | YES | | NULL | |
    | after_value_string | varchar(255) | YES | | NULL | |
    | before_value_text | text | YES | | NULL | |
    | after_value_text | text | YES | | NULL | |
    +---------------------+--------------+------+-----+---------+-------+

    As there is no "modified_by" included in this table, I'm still at a loss for how it is inferred/deduced for each event documented in the 'view change log' window. What am I missing? I'm assuming I need the right subquery but I don't know how to nest it.

  3. #3
    Kate T is offline Junior Member
    Join Date
    Dec 2010
    Posts
    6

    Default Re: How is 'Changed by' determined using 'View Change Log'?

    Bumping this, as we are still trying to come up with SQL queries that will allow us to report this information for multiple cases at once.

    Is there a transaction number or something similar that is included the table above as well as another table that does include the name of the user that initiated the transaction?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2011-03-05, 03:36 AM
  2. Permissions changed - I can no longer view Sugar.
    By BlackstoneMediaGroup in forum Help
    Replies: 1
    Last Post: 2009-06-16, 10:54 AM
  3. Replies: 2
    Last Post: 2009-05-21, 12:28 PM
  4. Can't find 'View Change Log' button
    By leigh in forum Help
    Replies: 6
    Last Post: 2006-05-30, 02:53 PM
  5. Bold recently changed items in List View
    By jwcc in forum Feature Requests
    Replies: 1
    Last Post: 2005-08-02, 01:37 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
  •