# Query Variable ArchivedCase

**URL:** <https://community.ofelia.com/t/query-variable-archivedcase/7749>\
**Category:** Q&A\
**Created:** [7 September 2016 15:18 UTC](https://community.ofelia.com/t/query-variable-archivedcase/7749 "2016-09-07T15:18:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@Jose\_Gonzalez](https://community.ofelia.com/u/Jose_Gonzalez)\
**Post date:** [7 September 2016 15:18 UTC](https://community.ofelia.com/t/query-variable-archivedcase/7749/1 "2016-09-07T15:18:00Z")

</div>

Dear friends,

I am using the API REST of BonitaSoft in my App and I need to get the variables of the \*\*archived cases \*\* but I cannot. I have been looking for information about how to do it, but I am having the feeling that these variables are not stored in the system. Is it like that or there is any way of doing this?

Pd. I could get data from the variables of cases but not for archived cases.

Thanks a lot in advance.  
Best regards.

---

<div class="post-metadata">

**Author:** ![alexgv99\_1404063](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@alexgv99\_1404063](https://community.ofelia.com/u/alexgv99_1404063)\
**Post date:** [24 October 2019 12:12 UTC](https://community.ofelia.com/t/query-variable-archivedcase/7749/2 "2019-10-24T12:12:41Z")

</div>

Could you find a solution? A have the same issue here…

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [7 September 2016 21:34 UTC](https://community.ofelia.com/t/query-variable-archivedcase/7749/3 "2016-09-07T21:34:05Z")

</div>

what code are you using?

---

<div class="post-metadata">

**Author:** ![Jose\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@Jose\_Gonzalez](https://community.ofelia.com/u/Jose_Gonzalez)\
**Post date:** [8 September 2016 06:16 UTC](https://community.ofelia.com/t/query-variable-archivedcase/7749/4 "2016-09-08T06:16:18Z")

</div>

Right now, anything.  
I mean, for getting the variables of a case, I am using this call to the REST API: /API/bpm/caseVariable/:caseId/:variableName but until now, I only can get the variables for an open case. So if I finish the case I am not able to get the value of the variables. I looking for something like _/API/bpm/caseVariable/: **archiveCaseId** /:variableName_ or something like that but I cannot find the solution. I don’t know if Bonita does not store this kind of information.  
Thanks.
