This documentation relates to CiviCRM version 3.2. It's not maintained anymore.
Current version of documentation.

Activity APIs

Skip to end of metadata
Go to start of metadata

This page refers to outdated version of CiviCRM. Check current version of documentation.


Documentation Search


CiviCRM 3.2 Documentation

Support and Participation

Developer Resources


CiviCRM book!

Make sure to check out Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

Activity APIs

civicrm_activity_create( &$params )

Creates a new Activity record and returns the newly created activity array.

Parameters specified in 'params' (associative array of property name/value pair):

  • (Required) activity_name and/or activity_type_id
  • (Required) source_contact_id
  • assignee_contact_id
  • target_contact_id
  • subject
  • details
  • status_id (2 = Complete, others?)
  • activity_date_time
  • duration_minutes
  • location
Activity Creation
Result

civicrm_activities_get_contact( $params )

Returns lists of all activities for contact (quite limited functionality).

Parameters specified in 'params' (associative array of property name/value pair):

  • (Required) contact_id

civicrm_activity_update( &$params )

Updates an Activity record and returns the Updated activity array.

Parameters specified in 'params' (associative array of property name/value pair):

  • (Required) id of the activity
Activtiy Updation
Result

civicrm_activity_delete( &$params )

Deletes an Activity record and returns array of result of success or failure.

Parameters specified in 'params' (associative array of property name/value pair):

  • (Required) activity_name and activity_id
Activity Deletion
Result

civicrm_activity_type_create( &$params )

Creates a new Activity Type and returns the newly created activity type array.

Parameters specified in 'params' (associative array of property name/value pair):

  • label
  • weight
  • is_active
Activity Type Creation
Result

civicrm_activity_type_delete( &$activity_type_id )

Deletes Activity Type and returns boolean value.

Parameters specified in acitvity_type_id

Activity Type Deletion
Result
Labels
  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.