Answers.Body: <p>See custom fields, See custom fields 
  <a href="http://docs.civicrm.org/user/en/4.6/events/custom-data-for-events/" rel="nofollow">http://docs.civicrm.org/user/en/4.6/events/custom-data-for-events/</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-30T15:04:09.990Z
Answers.LastActivityDate: 2016-08-30T15:04:09.990Z
Answers.UserDisplayName: Stoycho
Body: <p>I have a custom field in <code>civicrm_event</code> table which I want to update on creating event. However the hook_civicrm_post on creating event cannot update the record in <code>civicrm_event</code> table due to database transaction lock still in place at that point. Is this possible to be achieved with another database transaction? Can someone give me an example.</p>
  
Tags: <wordpress><civievent><database>
Title: hook_civicrm_post - on creating event cannot update the record in `civicrm_event` table
ThreadText: # hook_civicrm_post - on creating event cannot update the record in `civicrm_event` table
  
  (Asked by: username_0 on 2016-08-24)
  
  I have a custom field in `civicrm_event` table which I want to update on creating event. However the hook\_civicrm\_post on creating event cannot update the record in `civicrm_event` table due to database transaction lock still in place at that point. Is this possible to be achieved with another database transaction? Can someone give me an example.
  
  **Tags:** wordpress, civievent, database
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-08-30. Score: 0 | Accepted answer
  
  See custom fields, See custom fields
  <http://docs.civicrm.org/user/en/4.6/events/custom-data-for-events/>
  
  
  ---
  
  