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) »
  • Creating cases through API
Pages: [1]

Author Topic: Creating cases through API  (Read 474 times)

elcongrio

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 3.6.1
  • CMS version: Wordpress
  • MySQL version: 5.3
  • PHP version: 5.3.3
Creating cases through API
December 15, 2014, 11:25:22 am
Hi Everyone:

I'm trying tu use the API to open a new case. Whenever I call it, I get the following error:

source_contact_id is not a valid integer

I have check the API browser, but I can't find any field named source_contact_id. Maybe I need to make some chained call to complete some related activities, or to assign roles.
Anyone has a working example? Open Case, Assign roles, create activities?
Thanks in advance


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: Creating cases through API
December 15, 2014, 11:22:41 pm
Source_contact_id is on the Activity, and when the case is created the OpenCase activity is added too I assume. I have not tried to add a Case yet with the API....
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

elcongrio

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 3.6.1
  • CMS version: Wordpress
  • MySQL version: 5.3
  • PHP version: 5.3.3
Re: Creating cases through API
December 17, 2014, 05:07:03 am
mmmmm... maybe I need to chain the related activities. I will give a try
Thanks

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

This forum was archived on 2017-11-26.