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) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Can you add a workflow that will trigger a custom php file?
Pages: [1]

Author Topic: Can you add a workflow that will trigger a custom php file?  (Read 1876 times)

jsherk

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 0
Can you add a workflow that will trigger a custom php file?
April 23, 2010, 01:50:38 pm
Is it possible to create what I call a Workflow that will call a custom php file? For example, whenever a new contact is added have that trigger my custom turnonlightsinlivingroom.php file?

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: Can you add a workflow that will trigger a custom php file?
April 24, 2010, 07:07:11 pm

u might want to check: http://civicrm.org/node/676

and help take that integration further which should be incredibly useful to everyone else

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

jsherk

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 0
Re: Can you add a workflow that will trigger a custom php file?
April 24, 2010, 07:30:20 pm
I have a working example as a Drupal module, and I will post the code in the next day or two.

Others may be interested in this thread as well if wondering about components instead of modules.
http://forum.civicrm.org/index.php/topic,12657.0.html

jsherk

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 0
Re: Can you add a workflow that will trigger a custom php file?
May 06, 2010, 05:46:50 am
Ok, as promised I have created a short Drupal module... took me more than a few days to post it though!

This module will send you an email whenever you Add, Edit or Delete and INDIVIDUAL contact.

I have posted it here:
http://wiki.civicrm.org/confluence/display/CRMUPCOMING/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmpost

Its under the Example for the hook_civicrm_post.

Note that the above link is for the UPCOMING docs for v3.2 so once 3.2 is released it will become this:
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmpost

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Can you add a workflow that will trigger a custom php file?

This forum was archived on 2017-11-26.