How to retrieve custom fields with XML-RPC?

I am using Infusionsoft PHP SDK from GitHub - infusionsoft/infusionsoft-php: PHP client library for the Infusionsoft API. and I can get regular Contact fields like this just fine:

$ID = 12345;
$cid = $infusionsoft->contacts(‘xml’)->load($ID, [‘Email’, ‘FirstName’, ‘LastName’]);

But adding any of my custom fields into the array breaks this call altogether, so this doesn’t work at all:

$cid = $infusionsoft->contacts(‘xml’)->load($ID, [‘Email’, ‘FirstName’, ‘LastName’, ‘CustomField1’, ‘CustomField2’]);

(obviously for custom fields with those names/titles)

How can we do this via XML-RPC call, if it’s even possible with the current code / API in place?


Custom fields are denoted with an _ prefix in XML/RPC. Example _CustomField1

Ugh, that was it?!

Thank you!

1 Like