We’re rewarding the question askers & reputations are being recalculated! Read more.

Hot answers tagged

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

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

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?


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.


1

The iATS extension does not expose any api functions for assigning iATS "payment tokens" to contacts (not to be confused with CiviCRM tokens, a completely different thing). The next version of the iATS extension (1.7) will use the CiviCRM standard payment token mechanism, so you can assign them that way. You did check the super-awesome api explorer, yes? ...


1

Normally contact merge process get skipped when there is something common in both contact and merge process unable to resolve it. e.g. address conflicts (same address type on both contacts). on actual merge contact UI, we have option to override the record or add additional record with same address type. You need to pass Merge Mode in api call. string ...


Only top voted, non community-wiki answers of a minimum length are eligible