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 »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Create one activity per month for ongoing cases?
Pages: [1]

Author Topic: Create one activity per month for ongoing cases?  (Read 794 times)

theMusician

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 3
  • CiviCRM version: 4.0 and 4.0.1
  • CMS version: Drupal 7.0
  • MySQL version: MySQL 5.x
  • PHP version: 5.2
Create one activity per month for ongoing cases?
April 27, 2011, 02:06:58 pm
I would like to have an activity created automatically once per month for ongoing cases. This is to allow batch updates of the activity without requiring the case manager to click into each person's record to create a new activity each month.

I am not sure where to begin approaching this problem. It seems that using the activity api civicrm_activity_create( &$params ) would get the job done but where would it get called from?

I know this is loosely formed but I am not quite sure of what to ask, so the above is my first attempt.

Thank you for any advice as to where to begin with this solution.

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: Create one activity per month for ongoing cases?
April 27, 2011, 08:29:38 pm

You will need to write a standalone script and run it on a monthly basis (or via cron). There are some examples (though none involving activities) of such scripts in bin/* (in your civicrm directory)

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

theMusician

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 3
  • CiviCRM version: 4.0 and 4.0.1
  • CMS version: Drupal 7.0
  • MySQL version: MySQL 5.x
  • PHP version: 5.2
Re: Create one activity per month for ongoing cases?
April 28, 2011, 10:39:54 am
Ah,

Ok. I'll give it a shot. Thanks for the resource location.

Max

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Create one activity per month for ongoing cases?

This forum was archived on 2017-11-26.