Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating a contact's custom fields? #64

Open
alikhajeh1 opened this issue May 30, 2021 · 0 comments
Open

Updating a contact's custom fields? #64

alikhajeh1 opened this issue May 30, 2021 · 0 comments

Comments

@alikhajeh1
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant