Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cannot use spaces in custom attributes #586

Open
@noctivityinc

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /