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

Cannot use spaces in custom attributes #586

Open
noctivityinc opened this issue Oct 1, 2022 · 1 comment
Open

Cannot use spaces in custom attributes #586

noctivityinc opened this issue Oct 1, 2022 · 1 comment

Comments

@noctivityinc
Copy link

noctivityinc commented Oct 1, 2022

We have been using custom attributes for almost 7 years via the Javascript API without issue. We have a custom attribute with the key Company Name, note the case and space.

In our javascript code we simply do this:

'Company Name': "#{current_professional.company_name}",

and have no problems, however, when we try to use this gem and do this:

 contact = $intercom.contacts.create(
      email: self.account.email,
      name: self.full_name,
      phone: self.phone,
      role: 'lead',
      custom_attributes: {
        'Company Name' => self.company_name
      }
    )

The Company Name attribute in custom attributes, it does not record the data for Company Name (its blank, everything else is fine). Every example provided shows a key in lower case with underscores, but there is no documentation that says this is required and it works perfectly fine with the javascript code.

What are we missing?

@noctivityinc
Copy link
Author

Any update on this?

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