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

# NSDocumentEntity

## Constructors

### NSDocumentEntity()

```crmscript theme={null}
NSDocumentEntity
```

Initializes a new instance of the NSDocumentEntity class.

## Methods

## GetActiveLinks()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Number of active links to sale, document, appointment.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer activeLinks = thing.GetActiveLinks();
```

## GetAssociate()

```crmscript theme={null}
NSAssociate GetAssociate()
```

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The owner of the document\* the associate whose checklist the document is in.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSAssociate associate = thing.GetAssociate();
```

## GetAttention()

```crmscript theme={null}
String GetAttention()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Attention/salutation.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String attention = thing.GetAttention();
```

## GetCompleted()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Document Completed state. This is the part of the Status property.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer completed = thing.GetCompleted();
```

## GetContact()

```crmscript theme={null}
NSContact GetContact()
```

**Returns:** [CRMScript.NetServer.NSContact](CRMScript.NetServer.NSContact) - The contact associated with the document. It may also be null if no contact is associated with the document.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSContact contact = thing.GetContact();
```

## GetCreatedBy()

```crmscript theme={null}
NSAssociate GetCreatedBy()
```

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The person that first created the document. The property is read-only.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSAssociate createdBy = thing.GetCreatedBy();
```

## GetCreatedDate()

```crmscript theme={null}
DateTime GetCreatedDate()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Registered when.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
DateTime createdDate = thing.GetCreatedDate();
```

## GetCustomFields()

Gets the user-defined + extra fields on an NSDocumentEntity as a map.

```crmscript theme={null}
Map GetCustomFields()
```

**Returns:** [CRMScript.Native.Map](CRMScript.Native.Map)

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Map fields = thing.GetCustomFields();
String oldValue = fields.get("SuperOffice:1");
fields.insert("SuperOffice:1", "NewValue");
for (fields.first(); !fields.eof(); fields.next())
  printLine(fields.getKey() + ":  " + fields.getVal());
```

## GetDate()

```crmscript theme={null}
DateTime GetDate()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - date + start time planned.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
DateTime date = thing.GetDate();
```

## GetDescription()

```crmscript theme={null}
String GetDescription()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String description = thing.GetDescription();
```

## GetDocumentId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer documentId = thing.GetDocumentId();
```

## GetDocumentTemplate()

```crmscript theme={null}
NSDocumentTemplate GetDocumentTemplate()
```

**Returns:** [CRMScript.NetServer.NSDocumentTemplate](CRMScript.NetServer.NSDocumentTemplate) - The template type of the document.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSDocumentTemplate documentTemplate = thing.GetDocumentTemplate();
```

## GetExternalRef()

```crmscript theme={null}
String GetExternalRef()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - External reference for document plugin to resolve document identity (Notes ID, e-mail message ID, whatever).

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String externalRef = thing.GetExternalRef();
```

## GetExtraFields()

Gets the extra fields on NSDocumentEntity as a map.

```crmscript theme={null}
Map GetExtraFields()
```

**Returns:** [CRMScript.Native.Map](CRMScript.Native.Map)

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Map fields = thing.GetExtraFields();
String oldValue = fields.get("x_foobar");
fields.insert("x_foobar", "NewValue");
for (fields.first(); !fields.eof(); fields.next())
  printLine(fields.getKey() + ":  " + fields.getVal());
```

## GetHeader()

```crmscript theme={null}
String GetHeader()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Visible document name.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String header = thing.GetHeader();
```

## GetIsPublished()

```crmscript theme={null}
Bool GetIsPublished()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Should this NSDocumentEntity be published and visible to strangers?

## GetLinks()

```crmscript theme={null}
NSLink[] GetLinks()
```

**Returns:** [CRMScript.NetServer.NSLink](CRMScript.NetServer.NSLink)\[] - List of all elements linked to the document.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSLink[] links = thing.GetLinks();
```

## GetLockSemantics()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - See \<xref href="CRMScript.NetServer.DocumentLockSemantics" data-throw-if-not-resolved="false">\</xref>

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer lockSemantics = thing.GetLockSemantics();
```

## GetName()

```crmscript theme={null}
String GetName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - File name.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String name = thing.GetName();
```

## GetOurRef()

```crmscript theme={null}
String GetOurRef()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Our reference, searchable field from free-text search.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String ourRef = thing.GetOurRef();
```

## GetPerson()

```crmscript theme={null}
NSPerson GetPerson()
```

**Returns:** [CRMScript.NetServer.NSPerson](CRMScript.NetServer.NSPerson) - A document may also be connected to a person; this must be a contact person registered on the current company. This does not mean however that a person is required.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSPerson person = thing.GetPerson();
```

## GetProject()

```crmscript theme={null}
NSProject GetProject()
```

**Returns:** [CRMScript.NetServer.NSProject](CRMScript.NetServer.NSProject) - A document may also be connected to a project, so you see the document both on the company card, and on the project card. This does not mean however that a project is required.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSProject project = thing.GetProject();
```

## GetPublishEventDate()

```crmscript theme={null}
DateTime GetPublishEventDate()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Publish event date on NSDocumentEntity.

## GetPublishFrom()

```crmscript theme={null}
DateTime GetPublishFrom()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Publish from date on NSDocumentEntity.

## GetPublishTo()

```crmscript theme={null}
DateTime GetPublishTo()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Publish to date on NSDocumentEntity. After this date the event is no longer visible.

## GetSale()

```crmscript theme={null}
NSSale GetSale()
```

**Returns:** [CRMScript.NetServer.NSSale](CRMScript.NetServer.NSSale) - A document may also be connected to a sale, so you see the document on the company card, on the project card and on the sale card. This does not mean however that a sale is required. May be null.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSSale sale = thing.GetSale();
```

## GetSnum()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The sequence number allocated from refcount on used template when creating the document.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer snum = thing.GetSnum();
```

## GetSuggestedDocumentId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Suggested guide item that this document is an instance of.

<Note>
  NOT valid for appointments, they have their own link
</Note>

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer suggestedDocumentId = thing.GetSuggestedDocumentId();
```

## GetType()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Is this a normal document or a mail-merge or report?

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer type = thing.GetType();
```

## GetUpdatedBy()

```crmscript theme={null}
NSAssociate GetUpdatedBy()
```

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The person that last updated the appointment.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSAssociate updatedBy = thing.GetUpdatedBy();
```

## GetUpdatedDate()

```crmscript theme={null}
DateTime GetUpdatedDate()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Last updated when.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
DateTime updatedDate = thing.GetUpdatedDate();
```

## GetUserDefinedFields()

Gets the user-defined fields on the NSDocumentEntity as a map.

```crmscript theme={null}
Map GetUserDefinedFields()
```

**Returns:** [CRMScript.Native.Map](CRMScript.Native.Map)

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Map fields = thing.GetUserDefinedFields();
String oldValue = fields.get("SuperOffice:1");
fields.insert("SuperOffice:1", "NewValue");
for (fields.first(); !fields.eof(); fields.next())
  printLine(fields.getKey() + ":  " + fields.getVal());
```

## GetVisibleFor()

```crmscript theme={null}
NSVisibleFor[] GetVisibleFor()
```

**Returns:** [CRMScript.NetServer.NSVisibleFor](CRMScript.NetServer.NSVisibleFor)\[] - Return the user groups and/or users the NSDocumentEntity item is visible for.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSVisibleFor[] visibleFor = thing.GetVisibleFor();
```

## GetYourRef()

```crmscript theme={null}
String GetYourRef()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Your reference.

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String yourRef = thing.GetYourRef();
```

## SetActiveLinks(Integer)

```crmscript theme={null}
Void SetActiveLinks(Integer activeLinks)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer activeLinks;
thing.SetActiveLinks(activeLinks);
```

## SetAssociate(NSAssociate)

```crmscript theme={null}
Void SetAssociate(NSAssociate associate)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSAssociate associate;
thing.SetAssociate(associate);
```

## SetAttention(String)

```crmscript theme={null}
Void SetAttention(String attention)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String attention;
thing.SetAttention(attention);
```

## SetCompleted(Integer)

```crmscript theme={null}
Void SetCompleted(Integer completed)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer completed;
thing.SetCompleted(completed);
```

## SetContact(NSContact)

```crmscript theme={null}
Void SetContact(NSContact contact)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSContact contact;
thing.SetContact(contact);
```

## SetCreatedBy(NSAssociate)

```crmscript theme={null}
Void SetCreatedBy(NSAssociate createdBy)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSAssociate createdBy;
thing.SetCreatedBy(createdBy);
```

## SetCreatedDate(DateTime)

```crmscript theme={null}
Void SetCreatedDate(DateTime createdDate)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
DateTime createdDate;
thing.SetCreatedDate(createdDate);
```

## SetCustomFields(Map)

Sets the user-defined and extra fields on an NSDocumentEntity with a map.

```crmscript theme={null}
Void SetCustomFields(Map udefs)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Map udefs;
udefs["SuperOffice:1"] = "[I:123]";
udefs["SuperOffice:1"] = "123"; // this will also work, but beware of decimal point variations in different languages
udefs["custom.progid"] = "foobar";
udefs["x_foo"] = "foobar";
udefs["x_bar"] = "456"; // List item id
thing.SetCustomFields(udefs);
```

## SetDate(DateTime)

```crmscript theme={null}
Void SetDate(DateTime date)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
DateTime date;
thing.SetDate(date);
```

## SetDescription(String)

```crmscript theme={null}
Void SetDescription(String description)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String description;
thing.SetDescription(description);
```

## SetDocumentId(Integer)

```crmscript theme={null}
Void SetDocumentId(Integer documentId)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer documentId;
thing.SetDocumentId(documentId);
```

## SetDocumentTemplate(NSDocumentTemplate)

```crmscript theme={null}
Void SetDocumentTemplate(NSDocumentTemplate documentTemplate)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSDocumentTemplate documentTemplate;
thing.SetDocumentTemplate(documentTemplate);
```

## SetExternalRef(String)

```crmscript theme={null}
Void SetExternalRef(String externalRef)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String externalRef;
thing.SetExternalRef(externalRef);
```

## SetExtraFields(Map)

Sets the extra field values on NSDocumentEntity with a map.

```crmscript theme={null}
Void SetExtraFields(Map extras)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Map extras;
extras["SuperOffice:1"] = "[I:123]";
extras["SuperOffice:1"] = "123"; // this will also work, but beware of decimal point variations in different languages
extras["custom.progid"] = "foobar";
thing.SetExtraFields(extras);
```

## SetHeader(String)

```crmscript theme={null}
Void SetHeader(String header)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String header;
thing.SetHeader(header);
```

## SetIsPublished(Bool)

Sets the IsPublished property

```crmscript theme={null}
Void SetIsPublished(Bool isPublished)
```

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

## SetLinks(NSLink\[])

```crmscript theme={null}
Void SetLinks(NSLink[] links)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSLink[] links;
thing.SetLinks(links);
```

## SetLockSemantics(Integer)

```crmscript theme={null}
Void SetLockSemantics(Integer lockSemantics)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer lockSemantics;
thing.SetLockSemantics(lockSemantics);
```

## SetName(String)

```crmscript theme={null}
Void SetName(String name)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String name;
thing.SetName(name);
```

## SetOurRef(String)

```crmscript theme={null}
Void SetOurRef(String ourRef)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String ourRef;
thing.SetOurRef(ourRef);
```

## SetPerson(NSPerson)

```crmscript theme={null}
Void SetPerson(NSPerson person)
```

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

<Note>
  A document may also be connected to a person; this must be a contact person registered on the current company. This does not mean however that a person is required.
</Note>

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSPerson person;
thing.SetPerson(person);
```

## SetProject(NSProject)

```crmscript theme={null}
Void SetProject(NSProject project)
```

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

<Note>
  A document may also be connected to a project, so you see the document both on the company card, and on the project card. This does not mean however that a project is required.
</Note>

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSProject project;
thing.SetProject(project);
```

## SetPublishEventDate(DateTime)

```crmscript theme={null}
Void SetPublishEventDate(DateTime publishDate)
```

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

## SetPublishFrom(DateTime)

Sets the publish from date on an NSDocumentEntity.

```crmscript theme={null}
Void SetPublishFrom(DateTime publishFrom)
```

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

## SetPublishTo(DateTime)

Sets the publish to date on NSDocumentEntity. After this date the event is no longer visible.

```crmscript theme={null}
Void SetPublishTo(DateTime publishTo)
```

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

## SetSale(NSSale)

```crmscript theme={null}
Void SetSale(NSSale sale)
```

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

<Note>
  A document may also be connected to a sale, so you see the document on the company card, on the project card and on the sale card. This does not mean however that a sale is required. May be null.
</Note>

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSSale sale;
thing.SetSale(sale);
```

## SetSnum(Integer)

```crmscript theme={null}
Void SetSnum(Integer snum)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer snum;
thing.SetSnum(snum);
```

## SetSuggestedDocumentId(Integer)

```crmscript theme={null}
Void SetSuggestedDocumentId(Integer suggestedDocumentId)
```

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

<Note>
  NOT valid for appointments, they have their own link
</Note>

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer suggestedDocumentId;
thing.SetSuggestedDocumentId(suggestedDocumentId);
```

## SetType(Integer)

```crmscript theme={null}
Void SetType(Integer type)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Integer type;
thing.SetType(type);
```

## SetUpdatedBy(NSAssociate)

```crmscript theme={null}
Void SetUpdatedBy(NSAssociate updatedBy)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSAssociate updatedBy;
thing.SetUpdatedBy(updatedBy);
```

## SetUpdatedDate(DateTime)

```crmscript theme={null}
Void SetUpdatedDate(DateTime updatedDate)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
DateTime updatedDate;
thing.SetUpdatedDate(updatedDate);
```

## SetUserDefinedFields(Map)

Sets the user-defined fields on the NSDocumentEntity as a map.

```crmscript theme={null}
Void SetUserDefinedFields(Map udefs)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
Map udefs;
udefs["SuperOffice:1"] = "[I:123]";
udefs["SuperOffice:1"] = "123"; // this will also work, but beware of decimal point variations in different languages
udefs["custom.progid"] = "foobar";
thing.SetUserDefinedFields(udefs);
```

## SetVisibleFor(NSVisibleFor\[])

Sets the user groups and/or users the NSDocumentEntity item is visible for.

```crmscript theme={null}
Void SetVisibleFor(NSVisibleFor[] visibleFor)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
NSVisibleFor[] visibleFor = thing.GetVisibleFor();
visibleFor[0].SetVisiblity(1);  // usergroup
visibleFor[0].SetVisibleId(123); // usergroup id
thing.SetVisibleFor(visibleFor);
```

## SetYourRef(String)

```crmscript theme={null}
Void SetYourRef(String yourRef)
```

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

**Example:**

```crmscript theme={null}
NSDocumentEntity thing;
String yourRef;
thing.SetYourRef(yourRef);
```


## Related topics

- [NSDocumentAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSDocumentAgent.md)
- [Document files](/en/automation/crmscript/howto/document/file.md)
- [Document properties](/en/automation/crmscript/howto/document/properties.md)
- [NSTemplateVariablesParameters](/en/automation/crmscript/reference/CRMScript.NetServer.NSTemplateVariablesParameters.md)
- [Validate Document Entity](/en/api/reference/restful/agent/document_agent/validate-document-entity.md)
- [Save Document Entity](/en/api/reference/restful/agent/document_agent/save-document-entity.md)
