# Set Paw Attachment

Creates a new PAW attachment object and adds it to the existing list.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `FileName` | `String` | ✅Yes     | File name   |
| `Data`    | `Byte[]` | ✅Yes     | File data   |
| `FieldName` | `String` | ✅Yes     | Field name  |
| `AddTo`   | `List<`[`PAWAttachment`](/doc/pawattachment-s6TWQpixFG)`>` | ❌No      | Existing list to add to |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsSetPAWAttachmentSuccessful` | `Boolean` | Success status |
| `SetPAWAttachmentMessage` | `String` | Result message |
| `SetPAWAttachmentResult` | `List<`[`PAWAttachment`](/doc/pawattachment-s6TWQpixFG)`>` | Updated attachment list |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Throw exception on error |