Answered

Tags are missing for the contact object that is returned in Intercom-Ruby

  • 17 August 2021
  • 1 reply
  • 13 views

When I do a find operation on contacts (also happens when doing a search operation) I'm not getting any tags returned from the gem for a contact. I checked this in postman with a rest api call and do receive the tags back. I can also see the tags in intercom. All of the contacts are type="user", active and not archived.

 

Version info

  • intercom-ruby version: 4.1.2
  • Ruby version: 2.6.7

 

Expected behavior

The contact object returned from finding/searching should contain all of tags that are attached to the contact.

 

Actual behavior

No tags are returned for the contact.

 

Steps to reproduce

  1. I retrieve the contact by doing a find: contact = intercom.contacts.find(id: "[contactid]")
  2. I receive a normal and populated contact object
  3. The contact object is missing tags
  4. I've tried with multiple contacts without getting any tags. It does work when doing api calls via curl/postman.

 

Logs

[57] pry(main)> contact.tags

=> nil

icon

Best answer by Eric Fitz 23 August 2021, 13:50

View original

1 reply

Userlevel 1

Hey @user59​, can you advise as to which version of our API you're using to make the call? I see you've listed the Ruby versions, but the API version would help us to diagnose. Can you also share an example of a call that doesn't return tags? Are you using the correct access token?

Reply