Questions tagged [chaining]
The chaining tag has no usage guidance.
4 questions
6
votes
1
answer
485
views
What is the join logic when using API chaining with action = get?
I read about API chaining and I'm using it with get actions to learn more about how it works. I'm confused by the inconsistent behavior of the following two API calls:
CRM.api3('participant', 'get', ...
4
votes
1
answer
261
views
Can I chain API calls through drush?
API chaining works well in Javascript and PHP. For example, I can retrieve a contact's email addresses using this code generated by the API Explorer:
Php
$result = civicrm_api3('Contact', 'getsingle'...
1
vote
1
answer
823
views
How to use API chaining to create a contact and a relationship
I've read all the docs I could find, the code examples, the 4.6 explorer, but I'm not grasping one piece. Below is code to create a new adult contact (via profile submit, to get some extra validation ...
0
votes
1
answer
53
views
How to update ContentType Label through API chaining?
I try to relabel Organization as "Entity":
$result = civicrm_api3('ContactType', 'create', array(
'label' => "Entity",
'api.ContactType.get' => array('name' => "Organization"),
));
...