New answers tagged

0

This ^^ was the answer for me regarding civicrm apiv3 get contacts limit. This is why I wish people would quit documenting so heavily in proprietary languages like php that do weird stuff to your payload. If you're writing docs for an http api and if you're going to write it in multiple languages anyway, please for the love of god make one of them the HTTP ...


2

you can get both Phone and Mobile in a single API call as below $result = civicrm_api3('Phone', 'get', [ 'sequential' => 1, 'contact_id' => 203, 'phone_type_id' => ['IN' => ["Phone", "Mobile"]], ]); I have created the test example against https://dmaster.demo.civicrm.org I guess this helps !!! Thanks


4

You need to write an extension (https://docs.civicrm.org/dev/en/latest/extensions/civix/#generate-module), and you can use the existing provider extensions as a template and change what you need. You can also look at other third party extensions. I wrote one recently (https://lab.civicrm.org/extensions/ringcentral), which has some maybe nonstandard things, ...


2

It might not be implemented completely yet. This bug report is slightly different (join from tag to contact) but suggests it's maybe not complete: https://github.com/civicrm/org.civicrm.api4/issues/128


1

The problem was caused by IIS Request Filtering Hidden Segments. By default IIS has a hidden segment called bin. API Explorer 4 attempts to get JavaScript from .../administrator/components/com_civicrm/civicrm/bower_components/google-code-prettify/bin/ Notice the bin folder name. Removing the bin Hidden Segment cured the problem. Security isn't an ...


1

Turns out this was caused by some server settings by my hosting provider (apparently they did some changes to the firewall). They managed to fix it and it seems to be working fine.


2

Not sure if this is what you're after but works for me; the 'join on' is a bit hidden in the 'Select' box. CRM.api4('Relationship', 'get', { select: ["contact_a.display_name"], where: [["relationship_type_id", "=", 5]], limit: 25 }).then(function(relationships) { // do something with relationships array }, function(failure) { // handle failure })


1

For the part about making your first-step example work, use 'contact_a.display_name' instead of display_name. Also it's missing from your example but it would be 'Relationship', 'get', at the very beginning, so the whole thing, to also get the org, is $relationships = civicrm_api4('Relationship', 'get', [ 'select' => [ 'contact_a.display_name', '...


1

No the CiviCRM api does not comply with the open api specification. Is there any reason why you are asking this?


Top 50 recent answers are included