> 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/importtasksemail/_setnote.md).

# \_setNote

Sets a Note for an Email which Tasks will be Imported to.

### Parameters

#### id

The ID of the Email.

#### val

The Notes to be put onto the email

### Example

```
FM_api('ImportTasksEmail_setNote',[
    'id'=>'90186',
    'val'=>'Test Note'
    ]
);
```

### Results

#### On Failure

If the "id" parameter is not given a value or has a value less than 1:

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

If the "val" parameter has no value after being trimmed:

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

If the "val" parameter has over 65535 characters in length:

```
{"error":"parameter val too long. max length 65535"}
```

If the "id" parameter does not match the ID of an existing email:

```
{"error":"that import does not exist"}
```

#### On Success

```
{"ok":1,"id":90186}
```
