basecrm-ruby
basecrm-ruby copied to clipboard
How to search deals (or whatever) by tag?
I tried to come up with a field name for a tag, and tried many options, e.g.:
base.deals.where(contact_id: contact.id, tag_list: 'vk-onboarding')
base.deals.where(contact_id: contact.id, tag: 'vk-onboarding')
base.deals.where(contact_id: contact.id, tags: 'vk-onboarding')
base.deals.where(contact_id: contact.id, tags: ['vk-onboarding'])
base.deals.where(contact_id: contact.id, tags: ['vk-onboarding'])
base.deals.where(contact_id: contact.id, tag_id: 1)
base.deals.where(contact_id: contact.id, tag_ids: 1)
None of this works. How to search by tag?
Hi @Nowaker,
Currently you can't. All the supported filters are listed on https://developers.getbase.com/docs/rest/reference/deals page. Potentially as a short term solution, you might want to use custom fields.