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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • API and scheduled job
Pages: [1]

Author Topic: API and scheduled job  (Read 615 times)

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
API and scheduled job
September 09, 2013, 06:30:27 am
I know I can add a scheduled job to CiviCRM from the Scheduled Jobs menu item as long as it is an API function. Can I also add it using the API itself? I want the user to have a menu option that 'submits' a job as a scheduled job. Any hints?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: API and scheduled job
September 09, 2013, 12:16:07 pm
This was added in 4.3:
 * http://wiki.civicrm.org/confluence/display/CRMDOC/API+changes#APIchanges-4.3.0:JobAPI
 * https://fisheye2.atlassian.com/changelog/CiviCRM?cs=45169
 * http://issues.civicrm.org/jira/browse/CRM-11736
 * (If you use civix) http://wiki.civicrm.org/confluence/display/CRMDOC/Create+a+Module+Extension#CreateaModuleExtension-Howdoesoneaddacronjob?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: API and scheduled job
September 10, 2013, 03:04:25 am
Thanks Tim, will do my bed time reading tasks!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

nicolas

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 6
    • cividesk
  • CiviCRM version: 4.4 LTS
  • CMS version: Standalone (yep)
  • MySQL version: 5.1
  • PHP version: 5.3
Re: API and scheduled job
September 17, 2013, 10:39:03 am
Erik - if this is in an extension use the 'managed' feature and '.mgd' files to automatically create the job during extension install.
cividesk -- CiviCRM delivered ... your way!

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: API and scheduled job
September 17, 2013, 11:23:16 pm
Thanks Nicolas, that makes sense. I will dive into it!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • API and scheduled job

This forum was archived on 2017-11-26.