Closed ghost closed 11 years ago
I'll look at this today sometime and let you know.
Thanks man means a lot. It's not an error your end I'm sure but my inability to use it correctly. If you could let me know how I'm meant to send custom fields to InfusionSoft that's what I'm after really. Thanks :+1:
So the solution is really simple. I haven't used this API in awhile or I would have known the answer right away. ;)
The solution is this:
client.ContactService.Update(iISID, setter => setter.Set("_PauseUntilDate", RadCalendar2.SelectedDate.ToShortDateString()));
oh just send as normal then... haha sorry for essentially waisting your time. Thanks loads
No problem, man. Any troubles you have, let me know and I'll do my best to help if I have time.
I'm trying to send data to a custom field in InfusionSoft doing the following
Dim diCustom As IDictionary(Of String, Object) = New Dictionary(Of String, Object) diCustom.Add("_PauseUntilDate", RadCalendar2.SelectedDate.ToShortDateString().ToString())
ISIntegration.InfusionActions.UpdateCustom(iISID, diCustom)
public static void UpdateCustom(int iISID, IDictionary<string, object> custDirectory) { var client = MakeInfusionSoftConnection(); client.ContactService.Update(iISID, setter => setter.Set(c => c.CustomFields, custDirectory)); }
But I get the following response
Server returned a fault exception: [11] [NoFields]No fields sent for update
This is due to TableFieldSetter.cs - HasAccess returning false on
if (attributes.Length != 1) { return false; }
I'm sure it's me pushing the wrong data across but I was wondering if you could let me know how to push data to custom fields.