Answers.Body: <p>This question is conceptually similar to this one: <a href="https://civicrm.stackexchange.com/a/4880/12">https://civicrm.stackexchange.com/a/4880/12</a></p>
  
  <p>I think a hook is your best bet.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-26T04:12:29.137Z
Answers.LastActivityDate: 2015-08-26T04:12:29.137Z
Answers.LastEditDate: 2017-04-13T12:53:13.167Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>there are several related issues that you may have already considered, and without knowing the purpose or need I am not sure which might be of help, or which you have already considered and ruled out.</p>
  
  <p>Database: if you have logging on you will have tables such as log_civicrm_value_customfieldgroup and there is a log_date field.</p>
  
  <p>Multiple record fields: if you are keen to see the history of the data then this will display that data but has some limitations.</p>
  
  <p>Profile: can be set to send out an email each time it is filled in. Seems an unlikely solution but does provide a record.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-25T20:03:35.570Z
Answers.LastActivityDate: 2015-08-25T20:03:35.570Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>Is there any built in way to tell when the data in a custom data set was last updated?  If not, what would be the best way to proceed to build that in for one specific group?  </p>
  
  <p>As usual, the data can be edited by the administrative user logged in to civicrm OR it could be edited via a profile.  In my case I know the profiles in advance, so could rely on the profile ids.  These are always 'on behalf' profiles.  Not sure if that's important.</p>
  
  <p>I'm thinking I could create a custom "last updated" field in the data set, and then update it through a hook, but not sure if that's the best way.  Thanks for any guidance.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-25T20:10:49.490Z
Comments.Text: Anne, since you mentioned Profiles, do you want to track updates occurring via Profiles or do you want to track *any* update?
Comments.UserDisplayName: DaveD
Tags: <profile><custom-fields>
Title: Track last updated custom data
ThreadText: # Track last updated custom data
  
  (Asked by: username_0 on 2015-08-25)
  
  Is there any built in way to tell when the data in a custom data set was last updated? If not, what would be the best way to proceed to build that in for one specific group?
  
  As usual, the data can be edited by the administrative user logged in to civicrm OR it could be edited via a profile. In my case I know the profiles in advance, so could rely on the profile ids. These are always 'on behalf' profiles. Not sure if that's important.
  
  I'm thinking I could create a custom "last updated" field in the data set, and then update it through a hook, but not sure if that's the best way. Thanks for any guidance.
  
  **Tags:** profile, custom-fields
  
  > **Comments:**
  > **username_1**: Anne, since you mentioned Profiles, do you want to track updates occurring via Profiles or do you want to track *any* update?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-08-26. Score: 1
  
  This question is conceptually similar to this one: <https://civicrm.stackexchange.com/a/4880/12>
  
  I think a hook is your best bet.
  
  
  ---
  
  ### Answer by username_3 on 2015-08-25. Score: 0
  
  there are several related issues that you may have already considered, and without knowing the purpose or need I am not sure which might be of help, or which you have already considered and ruled out.
  
  Database: if you have logging on you will have tables such as log\_civicrm\_value\_customfieldgroup and there is a log\_date field.
  
  Multiple record fields: if you are keen to see the history of the data then this will display that data but has some limitations.
  
  Profile: can be set to send out an email each time it is filled in. Seems an unlikely solution but does provide a record.
  
  
  ---
  
  