I’m not tied to it if I can figure out a different way. My problem is that the library works fine for retrieving the native fields such as Email, Id, etc. But does not pull in any custom fields. Here’s a sample of what I’m dealing with.
Contact contact = client.ContactService.Load(infusionsoftid, new string { “Email”,“Id”,“_CustomerNumber”},);
That code will pull in the email and ID fine, but pulls back nothing for our custom field “_CustomerNumber”.
From what you are describing this might be a problem with what information is in the contact’s record. Let me explain. When a call is made to get a record it will only return fields that have a value. If the contact record that is being returned doesn’t have a value for customer number then the field won’t be returned as null.
Sorry I should have mentioned that I am specifically testing for records that do have a value for _CustomerNumber. I verify this by going to the infusionsoft website, looking up the contact, and viewing the record. I then plug the id for that contact into my test scenario.
Yep, I realize that infusionsoft doesn’t directly support this library. I was hoping someone in here had used and had the same issues possibly. Looking for a workaround.
I wound up rolling my own solution that uses the REST service. I wouldn’t bother unless you’re wanting to help someone that might have the same issue in the future