Get count variable instances with variables using REST API

I have the below variables

when i count the number of variable instances with the variable conventionCode, the api returns count = 1

http://localhost:8282/engine-rest/variable-instance/count?processInstanceIdIn=b622ad4d-9a11-11ec-937b-0242ac11000a&variableValues=conventionCode_eq_01018

when i count the number of variable instances with the variable exerciceFrameworkId, the api returns count = 1

http://localhost:8282/engine-rest/variable-instance/count?processInstanceIdIn=b622ad4d-9a11-11ec-937b-0242ac11000a&variableValues=exerciceFrameworkId_eq_SA-FR-LAB-6969284

The problem is when i use the two variables conventionCode and exerciceFrameworkId, the api returns count = 0

http://localhost:8282/engine-rest/variable-instance/count?processInstanceIdIn=b622ad4d-9a11-11ec-937b-0242ac11000a&variableValues=conventionCode_eq_01018,exerciceFrameworkId_eq_SA-FR-LAB-6969284

Hi @Aymen_Kanzari,

if you add two variable values to the query, they are combined with AND in the database query.

The combination with EQ of two different values will always return count 0.

Maybe you can try to find a pattern with variableNameLike?

Hope this helps, Ingo