# Adding OR condition (property) in crm\_objects query

**URL:** <https://community.hubspot.com/t/adding-or-condition-property-in-crm-objects-query/60839>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [July 13, 2022, 1:14am UTC](https://community.hubspot.com/t/adding-or-condition-property-in-crm-objects-query/60839 "2022-07-13T01:14:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CristianSabogal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cristiansabogal/32/57088_2.png) [@CristianSabogal](https://community.hubspot.com/u/CristianSabogal)\
**Post date:** [July 13, 2022, 1:14am UTC](https://community.hubspot.com/t/adding-or-condition-property-in-crm-objects-query/60839/1 "2022-07-13T01:14:50Z")

</div>

Hi there,

How I can define the query string to filter by property\_x but many values?

I’m trying this:

{% set query = crm\_objects(“proyecto”, “ **hs\_pipeline\_stage=20346536 | hs\_pipeline\_stage=20346539** &limit=100”, properties) %}

But, not working.

It seems to me inefficient to bring in this case the projects with the hs\_pipeline\_stage with id (20346536 and 20346539) with independent queries.

Thanks and regards,

Cristian Sabogal

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [July 13, 2022, 10:51pm UTC](https://community.hubspot.com/t/adding-or-condition-property-in-crm-objects-query/60839/2 "2022-07-13T22:51:42Z")

</div>

Hi, @CristianSabogal 👋 Thanks for reaching out! Let’s see if we can get the conversation going for you. Hey, @albertsg @Indra @Oezcan, do you have any suggestions or workarounds for @CristianSabogal?

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![Indra](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/indra/32/98381_2.png) [@Indra](https://community.hubspot.com/u/Indra)\
**Post date:** [July 14, 2022, 5:44am UTC](https://community.hubspot.com/t/adding-or-condition-property-in-crm-objects-query/60839/3 "2022-07-14T05:44:07Z")

</div>

Hi @CristianSabogal,

I haven’t tested this yet, but have you tried the following?

```lia-code-sample

{% set query = crm_objects("proyecto", "&hs_pipeline_stage=20346536&hs_pipeline_stage=20346539&limit=100", properties) %}

```

---

<div class="post-metadata">

**Author:** ![CristianSabogal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cristiansabogal/32/57088_2.png) [@CristianSabogal](https://community.hubspot.com/u/CristianSabogal)\
**Post date:** [July 28, 2022, 6:01pm UTC](https://community.hubspot.com/t/adding-or-condition-property-in-crm-objects-query/60839/4 "2022-07-28T18:01:27Z")

</div>

Hi @Indra.

Yes I tried this:

`{% set query = crm_objects("proyecto", "&hs_pipeline_stage=20346536&hs_pipeline_stage=20346539&limit=100", properties) %}`

But doesn’t work. However I found one way to achieve it.

This works:

{% set query =crm\_objects(“proyecto”,“ **hs\_pipeline\_stage\_\_in=20346536,25271316,25266832** &limit=100”, properties) %}
