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) »
  • Need example of crm_create_activity_history
Pages: [1]

Author Topic: Need example of crm_create_activity_history  (Read 1709 times)

kdas

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
Need example of crm_create_activity_history
December 10, 2007, 08:39:57 pm
I am new to using APIs. Can anyone please give the sample code for crm_create_activity_history? I would like to see how to construct $param and how to use the return object? I was able to use crm_get_activity_history and I would like to add an activity using crm_create_activity_history. Thanks in advance for your help.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Need example of crm_create_activity_history
December 10, 2007, 09:37:06 pm
Does the example near the end of the test-new/SimpleTest/api/CreateActivityHistory.php file is enough?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

kdas

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
Re: Need example of crm_create_activity_history
December 11, 2007, 08:09:46 am
I think so. I will try it out. Thanks a lot for your help.  :)

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Need example of crm_create_activity_history
December 12, 2007, 02:13:55 am

Before implementing anything with activity history, please consider that this part of the code went through significant changes in CiviCRM 2.0, so you might need to reimplement your code if you want it running on 2.0.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Need example of crm_create_activity_history

This forum was archived on 2017-11-26.