Skip to content

Updating a contact's custom fields? #64

Description

@alikhajeh1

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions