> 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/importcustomersemail/_setnotes.md).

# \_setNotes

Sets the notes within an instruction for how Customer Emails will be imported.

### Parameters

#### id

The ID of the instruction.

#### val

A string containing the desired notes for the instruction.

### Example

```
FM_api('ImportCustomersEmail_setNotes',[
    'id'=>'167',
    'val'=>'Test note.
This sentence is on a new line.'
    ]
);
```

### Results

#### On Success

```
{"ok":1}
```

If the "val" parameter already matches the current instruction's exact notes:

```
{"ok":"1","warning":"no change required"}
```

#### On Failure

If the "id" parameter is not set:

```
{"error":"missing or invalid parameter: id"}
```

If the "val" parameter is not set:

```
{"error":"missing or invalid parameter: val"}
```

If the "id" parameter does not match an existing instruction:

```
{"error":"import_filters is not existing."}
```
