# \_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"}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/customer/_getcustomfields.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
