> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/customer/_getcustomfields.md).

# \_getCustomFields

Returns the values of specified custom fields for a particular customer

### Parameters

#### id

The id of the Customer

#### fields

Array of custom fields required

### Example

```
FM_api('Customer_getCustomFields', ['id'=>'12', 'fields'=>['custom1', 'custom2', 'custom3']]);
```

### On Success

```
 {"id":12, "fields":["1", "2", ["3a", "3b"]]}
```

### On Failure

#### If no id parameter is provided

```
{"error":"no 'id' parameter"}
```

#### If no fields parameter is provided

```
{"error":"no 'fields' parameter"}
```

#### If no data found for that customer id

```
{"error":"customer does not exist"}
```
