CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Trigger on activity status change
Pages: [1]

Author Topic: Trigger on activity status change  (Read 898 times)

taram

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
Trigger on activity status change
June 11, 2009, 02:57:27 pm
How do I trigger execution of some code when a custom activity's status is changed to completed? It seems like the post hook doesn't support the activity object. Is there a clean way of doing this?

Thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Trigger on activity status change
June 11, 2009, 04:06:30 pm

The postProcess hook is across all forms

however we can add a pre/post hook to the activity object in 2.2.6 / 2.3. If you need one, please file an issue

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

taram

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
Re: Trigger on activity status change
June 18, 2009, 02:05:33 pm
Thanks Lobo.
I used the post hook & run my code only when objectname is activity which seems to be working well.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Trigger on activity status change

This forum was archived on 2017-11-26.