closeio icon indicating copy to clipboard operation
closeio copied to clipboard

Updating a contact's custom fields?

Open alikhajeh1 opened this issue 3 years ago • 0 comments

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!

alikhajeh1 avatar May 30 '21 21:05 alikhajeh1