closeio
closeio copied to clipboard
Updating a contact's custom fields?
I'm struggling to find a way to update custom fields for a contact (updating custom fields for leads works ok), I tried the following options. Is this possible? If so, what am I missing?
close_client.update_lead(lead_id,
contacts: [{
name: name,
title: position,
emails: [{type: "office", email: email}],
# "LinkedIn" => linkedin, this is ignored
# "custom.LinkedIn" => linkedin, this fails with: {"field-errors"=>{"contacts"=>{"errors"=>{"0"=>{"field-errors"=>{"custom.LinkedIn"=>"The Custom Field \"LinkedIn\" does not exist."}, "errors"=>[]}}}}, "errors"=>[]}
}],
"custom.CompanyEmpCount" => 123,
)
Thanks for this great project!