basecrm-ruby icon indicating copy to clipboard operation
basecrm-ruby copied to clipboard

How to search deals (or whatever) by tag?

Open Nowaker opened this issue 10 years ago • 1 comments

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?

Nowaker avatar Jan 11 '16 22:01 Nowaker

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.

iaintshine avatar Feb 25 '16 21:02 iaintshine