> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSFieldInfoAttachment

> Attachment custom database field.

Attachment custom database field.

## Constructors

### NSFieldInfoAttachment()

```crmscript theme={null}
NSFieldInfoAttachment
```

Initializes a new instance of the NSFieldInfoAttachment class.

## Methods

## GetDefaultValue()

```crmscript theme={null}
Integer GetDefaultValue()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Default attachment ID value.

**Example:**

```crmscript theme={null}
NSFieldInfoAttachment thing;
Integer defaultValue = thing.GetDefaultValue();
```

## SetDefaultValue(Integer)

```crmscript theme={null}
Void SetDefaultValue(Integer defaultValue)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFieldInfoAttachment thing;
Integer defaultValue;
thing.SetDefaultValue(defaultValue);
```


## Related topics

- [SuperOffice.WebApi.Data.FieldInfoAttachment](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoAttachment.md)
- [Get Attachment Info](/en/api/reference/restful/rest/ticketmessage/get-attachment-info.md)
- [Get Attachment](/en/api/reference/restful/agent/email_agent/get-attachment.md)
- [Get Attachment Preview](/en/api/reference/restful/agent/ticket_agent/get-attachment-preview.md)
- [attachment](/en/api/mdo-providers/reference/attachment.md)
