> ## 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.

# NSPreviewsAgent

> Gets preview strings from a hint.

Gets preview strings from a hint.

## Constructors

### NSPreviewsAgent()

```crmscript theme={null}
NSPreviewsAgent
```

## Methods

## GetPreview(String)

Parses a Preview hint and return a Preview\.The returned Preview string may contain resource string identifiers (in square brackets), to be processed by the resource manager.

The Preview hint is either a literal text, representing itself or a set of key/value pairs enclosed in curly braces. Each key is separated from its value by an equals sign, and each pair from the next by an ampersand, according to usual conventions.

```crmscript theme={null}
String GetPreview(String previewHint)
```

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

<Note>
  A typical Preview hint could be \<code>`{contact_id=123}`\</code> or \<code>`{appointment_id=222&mode=simple}`\</code>
</Note>


## Related topics

- [SuperOffice.WebApi.Agents.PreviewsAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.PreviewsAgent.md)
- [SuperOffice.WebApi.Agents.IPreviewsAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IPreviewsAgent.md)
- [Get Preview](/en/api/reference/restful/agent/previews_agent/get-preview.md)
- [Preview Import](/en/api/reference/restful/agent/import_agent/preview-import.md)
- [Get Attachment Preview](/en/api/reference/restful/agent/ticket_agent/get-attachment-preview.md)
- [Get Preview Contact](/en/api/reference/restful/agent/contact_agent/get-preview-contact.md)
