infusionsoft / infusionsoft-php

PHP client library for the Infusionsoft API.
https://developer.infusionsoft.com/
Other
129 stars 126 forks source link

How to retrieve custom fields with XML-RPC? Everything I've tried failed so far. #311

Closed crazyserb closed 1 year ago

crazyserb commented 1 year ago

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 in place?

Thanks!

bbooth commented 1 year ago

Closing as I will answer in the community post you made.