# How to add many filters to ListOpenWorkflow ExecutionsRequest

**URL:** https://community.temporal.io/t/how-to-add-many-filters-to-listopenworkflow-executionsrequest/9089
**Category:** Community Support
**Created:** [August 4, 2023, 8:26am UTC](https://community.temporal.io/t/how-to-add-many-filters-to-listopenworkflow-executionsrequest/9089 "2023-08-04T08:26:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Zwen](https://avatars.discourse-cdn.com/v4/letter/z/f6c823/32.png) [@Zwen](https://community.temporal.io/u/Zwen)
#### Post date: [August 4, 2023, 8:26am UTC](https://community.temporal.io/t/how-to-add-many-filters-to-listopenworkflow-executionsrequest/9089/1 "2023-08-04T08:26:27Z")

</div>

Hi, I dont understand ho I can add more than one filter to the ListOpenWorkflowExecutionsRequest. When I add for example another filter like StatusFilter, I treid to add it after the comma. But its not accepted.

```auto
r, err := temporalClient.ListOpenWorkflow(context.Background(), &workflowservice.ListOpenWorkflowExecutionsRequest{
		Namespace: "default",
		Filters: &workflowservice.ListOpenWorkflowExecutionsRequest_TypeFilter{
			TypeFilter: &filter.WorkflowTypeFilter{
				Name: "GreetingWorkflow",
			},
		},
//Here should be added more filters
	})

```

I have an example but it does not work, because there is only a key Filters in the current version? With this it does not work anymore:  
r

```auto
equest := &workflowservice.ListClosedWorkflowExecutionsRequest{
		ExecutionFilter: &workflowservice.WorkflowExecutionFilter{WorkflowId: parentWorkflowID},
		TypeFilter: &workflowservice.WorkflowTypeFilter{Name: "child_workflow_type_name"},
		StatusFilter: &enums.WorkflowExecutionStatusFilter{Status: enums.WORKFLOW_EXECUTION_STATUS_CLOSED},
		PageSize: 100,
		NextPageToken: nil,
		EarliestStartTime: nil,
		LatestStartTime: nil,
	}

```

---

<div class="post-metadata">

### Author: ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)
#### Post date: [August 7, 2023, 1:25pm UTC](https://community.temporal.io/t/how-to-add-many-filters-to-listopenworkflow-executionsrequest/9089/2 "2023-08-07T13:25:47Z")

</div>

Yes you should be able to add multiple filters, will try to repro.

Note can just use [ListWorkflowExecutions](https://github.com/temporalio/api/blob/master/temporal/api/workflowservice/v1/service.proto#L279C9-L279C31) api with visibility query, for example

“WorkflowType=‘GreetingWorkflow’ AND ExecutionStatus=‘Running’”

Remember list apis are paginated, make sure you iterate through all pages of results.
