How can i create a custom attribute on a contact? | Community
Skip to main content
Answered

How can i create a custom attribute on a contact?

  • June 30, 2021
  • 1 reply
  • 1083 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)

 

 

Best answer by Roy

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.

View original
Did this topic help you find an answer to your question?

1 reply

Roy
Top Expert ✨
Forum|alt.badge.img+5
  • Top Expert ✨
  • 1152 replies
  • Answer
  • July 1, 2021

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