Answered

How can i create a custom attribute on a contact?

  • 30 June 2021
  • 1 reply
  • 612 views

I am using the Ruby API and the following code gets an error:

" (Custom attribute 'kamil_attribute_console' does not exist)"

 

user_id = 1
intercom_query = intercom.contacts.search('query': {'field': 'external_id', 'operator': '=', 'value': "#{user_id}"})
contact = intercom_query.first
contact.custom_attributes = {"kamil_attribute" => "here-iam-update-me"}
intercom.contacts.save(contact)

 

 

icon

Best answer by Roy 1 July 2021, 02:26

View original

1 reply

Badge

Hello @kamil c​ ,

 

To create contact attribute, go to Intercom Settings -> WorkspaceName Data -> People data -> Click on "Create attribute" button.

 

attribute 

attribute-2 

I hope this will be helpful, let me know if you have any further questions about this topic.

Reply