# Search case by variable

**URL:** <https://community.ofelia.com/t/search-case-by-variable/7962>\
**Category:** Q&A\
**Created:** [22 November 2016 05:53 UTC](https://community.ofelia.com/t/search-case-by-variable/7962 "2016-11-22T05:53:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitdhage01](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@amitdhage01](https://community.ofelia.com/u/amitdhage01)\
**Post date:** [22 November 2016 05:53 UTC](https://community.ofelia.com/t/search-case-by-variable/7962/1 "2016-11-22T05:53:08Z")

</div>

Hi,

I’m using Bonita 7.2.2. I have a process A which has a variable b. I want to search a process instance of process A from outside a process using value of variable b. Is there any filter or REST api available to search a process instance with variable value.

Any Help.?

Thank you.

---

<div class="post-metadata">

**Author:** ![steveb1](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@steveb1](https://community.ofelia.com/u/steveb1)\
**Post date:** [22 November 2016 10:14 UTC](https://community.ofelia.com/t/search-case-by-variable/7962/2 "2016-11-22T10:14:46Z")

</div>

Hi,

I had the regarding tab open:  
“Case Variable” : get or search for a case variable  
[http://documentation.bonitasoft.com/?page=bpm-api#toc15](http://documentation.bonitasoft.com/?page=bpm-api#toc15)

Standard search parameters are available.  
f = case\_id%3d[caseId] to indicate that you want to add a filter on ‘case\_id’ with value [caseId] (%3d is the URL-encoded ‘=’ (equals) sign)

Hope this helps.

Bye.

---

<div class="post-metadata">

**Author:** ![dbravo](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@dbravo](https://community.ofelia.com/u/dbravo)\
**Post date:** [22 November 2016 19:29 UTC](https://community.ofelia.com/t/search-case-by-variable/7962/3 "2016-11-22T19:29:39Z")

</div>

Hi,

On Efficency and Performance editions you can make process indexes for doing searches, unfortunately on other editions you can’t make searches using process variables. I suggest you to use Business Data Variables and store there filter data for searching purposes.

Bye.

---

<div class="post-metadata">

**Author:** ![amit.dhage](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@amit.dhage](https://community.ofelia.com/u/amit.dhage)\
**Post date:** [23 November 2016 06:38 UTC](https://community.ofelia.com/t/search-case-by-variable/7962/4 "2016-11-23T06:38:32Z")

</div>

Hi Steve,

Thank you for your reply. But I want to search a case with the help of a process variable value. So I don’t have caseId with me.
