# Change Filter property auto-refresh

**URL:** <https://forum.camunda.io/t/change-filter-property-auto-refresh/20297>\
**Category:** Discussion & Questions\
**Tags:** optimize\
**Created:** [May 27, 2020, 8:28am UTC](https://forum.camunda.io/t/change-filter-property-auto-refresh/20297 "2020-05-27T08:28:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarvinKern](https://forum.camunda.io/user_avatar/forum.camunda.io/marvinkern/32/9763_2.png) [@MarvinKern](https://forum.camunda.io/u/MarvinKern)\
**Post date:** [May 27, 2020, 8:28am UTC](https://forum.camunda.io/t/change-filter-property-auto-refresh/20297/1 "2020-05-27T08:28:26Z")

</div>

Hi at all,  
I want to set the “auto-refresh” property in my filters with java to true.

My current code when I create filters looks as following:

> Map\<String, Object\> filterProperties = new HashMap\<String, Object\>();  
> filterProperties.put(“description”, “some description”);  
> filterProperties.put(“priority”, examplePriority);  
> List exampleVariables = new ArrayList();  
> filterProperties.put(“variables”, exampleVariables);

My question is now: What is the name of the auto-refresh priority?  
I tried something like:

> filterProperties.put(“auto-refresh”, true);

But it did not work…  
Does anyone have an idea on this?  
Thank you.  
Kind regards,  
Marvin

---

<div class="post-metadata">

**Author:** ![hassang](https://forum.camunda.io/user_avatar/forum.camunda.io/hassang/32/16498_2.png) [@hassang](https://forum.camunda.io/u/hassang)\
**Post date:** [May 28, 2020, 10:38am UTC](https://forum.camunda.io/t/change-filter-property-auto-refresh/20297/3 "2020-05-28T10:38:41Z")

</div>

Hi @MarvinKern,

Try below

`filterProperties.put(“refresh”, true);`

---

<div class="post-metadata">

**Author:** ![MarvinKern](https://forum.camunda.io/user_avatar/forum.camunda.io/marvinkern/32/9763_2.png) [@MarvinKern](https://forum.camunda.io/u/MarvinKern)\
**Post date:** [May 28, 2020, 11:02am UTC](https://forum.camunda.io/t/change-filter-property-auto-refresh/20297/4 "2020-05-28T11:02:51Z")

</div>

Thanks a lot 🙂 Its working.  
Should appear somewhere in the Filter documentation I guess.

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 30, 2024, 12:26pm UTC](https://forum.camunda.io/t/change-filter-property-auto-refresh/20297/5 "2024-01-30T12:26:00Z")

</div>

Closed on January 30, 2024, 12:26pm UTC


