# currentUserDataInput

Audience: Developer

**Served by:** [workflow](https://docs.pyck.cloud/api/services/workflow.md)

## Arguments

| Name | Type |
| --- | --- |
| `input` | [UserDataInputQueryInput](https://docs.pyck.cloud/api/inputs/userdatainputqueryinput.md)! |

## Returns

[CurrentUserDataInput](https://docs.pyck.cloud/api/types/currentuserdatainput.md)

## Example

Returns the current pending user data input form for an active workflow execution. The workflow must be in a state waiting for user input.

```graphql
query GetCurrentUserDataInput($input: UserDataInputQueryInput!) {
  currentUserDataInput(input: $input) {
    activityCount
    activityIndex
    data
    errors
    type {
      id
      schema
    }
  }
}
```

**Variables**

```json
{
  "input": {
    "runID": "<run ID>",
    "workflowID": "<workflow execution ID>"
  }
}
```
