# IRPCObjectOperations.GetMultipleWorkflowStatesAndTransitionsWithRightsCheck

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Objects, versions, properties and files](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetMultipleWorkflowStatesAndTransitionsWithRightsCheck/

Badges: `Vault API / core` `read` `session or assertion` `idempotent` `returns metadata structure version`

Gets the states and transitions of several workflows in one call, in a compressed binary form,
with the user's rights checked.

- **Service:** [Objects, versions, properties and files](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/index.md) `MFiles.IRPCObjectOperations`
- **gRPC method:** `/MFiles.IRPCObjectOperations/GetMultipleWorkflowStatesAndTransitionsWithRightsCheck`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-multiple-workflow-states-and-transitions-with-rights-check`
- **Request:** [`GetMultipleWorkflowStatesAndTransitionsWithRightsCheckRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetMultipleWorkflowStatesAndTransitionsWithRightsCheck/index.md#request)
- **Response:** [`GetMultipleWorkflowStatesAndTransitionsWithRightsCheckResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetMultipleWorkflowStatesAndTransitionsWithRightsCheck/index.md#response)
- **Book and level:** Vault API, core
- **Kind:** read
- **Session:** Required: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
- **Idempotent:** yes
- **Returns metadata structure version:** yes (in the mfiles-metadata-version-bin trailer)
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

Used by M-Files clients; see
[GetMultipleWorkflowStatesAndTransitions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetMultipleWorkflowStatesAndTransitions/index.md).

<a id="request"></a>

## Request: GetMultipleWorkflowStatesAndTransitionsWithRightsCheckRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `workflow_ids[]` | repeated `int32` | The IDs of the workflows. |

<a id="response"></a>

## Response: GetMultipleWorkflowStatesAndTransitionsWithRightsCheckResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `states` | `bytes` | States. Compressed, unless pulUncompressedStatesLength is -1. |
| `uncompressed_states_length` | `uint32` | Receives the length of the uncompressed data. Set to -1 if pbytesData is not compressed. |
| `transitions` | `bytes` | Transitions. Compressed, unless pulUncompressedTransitionsLength is -1. |
| `uncompressed_transitions_length` | `uint32` | Receives the length of the uncompressed data. Set to -1 if pbytesData is not compressed. |

<a id="related"></a>

## Related methods

- [GetMultipleWorkflowStatesAndTransitions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetMultipleWorkflowStatesAndTransitions/index.md): Gets the states and transitions of several workflows in one call, in a compressed binary form.
