---
title: "TASK-FIRSTAVAILABLE"
url: "https://help.formsfly.com/en/article/task-firstavailable"
language: "en"
last_updated: "2024-10-29T12:13:50.657Z"
---

# TASK-FIRSTAVAILABLE

Returns the 'First Available' automatic user assignment identifier.

* * *

### Syntax

**TASK-FIRSTAVAILABLE()**

### Examples

```plaintext
TASK-FIRSTAVAILABLE() will assign randomly to first of all available users

TASK-FIRSTAVAILABLE('mygroup') will assign randomly to first available user in User Group named 'mygroup'

TASK-FIRSTAVAILABLE({{myfield}}) will assign randomly to first available user in User Group name/ID matching the answer of field with name 'myfield'
```

### Notes

Useful for creating new Tasks that are randomly assigned to the first available user.

Also handy to use as a Process Step field's 'Send Form To' value.

The optional parameter allows you to restrict the Task assignment to only users within the given User Group name or external ID.

### Related

[TASK-FIRSTTOCLAIM](https://help.formsfly.com/en/article/task-firsttoclaim)
