Constructors
NSDocumentEntity()
Initializes a new instance of the NSDocumentEntity class.
Methods
GetActiveLinks()
Returns: CRMScript.Global.Integer - Number of active links to sale, document, appointment.
Example:
GetAssociate()
Returns: CRMScript.NetServer.NSAssociate - The owner of the document* the associate whose checklist the document is in.
Example:
GetAttention()
Returns: CRMScript.Global.String - Attention/salutation.
Example:
GetCompleted()
Returns: CRMScript.Global.Integer - Document Completed state. This is the part of the Status property.
Example:
Returns: CRMScript.NetServer.NSContact - The contact associated with the document. It may also be null if no contact is associated with the document.
Example:
GetCreatedBy()
Returns: CRMScript.NetServer.NSAssociate - The person that first created the document. The property is read-only.
Example:
GetCreatedDate()
Returns: CRMScript.Global.DateTime - Registered when.
Example:
GetCustomFields()
Gets the user-defined + extra fields on an NSDocumentEntity as a map.
Returns: CRMScript.Native.Map
Example:
GetDate()
Returns: CRMScript.Global.DateTime - date + start time planned.
Example:
GetDescription()
Returns: CRMScript.Global.String - The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases.
Example:
GetDocumentId()
Returns: CRMScript.Global.Integer - Primary key.
Example:
GetDocumentTemplate()
Returns: CRMScript.NetServer.NSDocumentTemplate - The template type of the document.
Example:
GetExternalRef()
Returns: CRMScript.Global.String - External reference for document plugin to resolve document identity (Notes ID, e-mail message ID, whatever).
Example:
Gets the extra fields on NSDocumentEntity as a map.
Returns: CRMScript.Native.Map
Example:
Returns: CRMScript.Global.String - Visible document name.
Example:
GetIsPublished()
Returns: CRMScript.Global.Bool - Should this NSDocumentEntity be published and visible to strangers?
GetLinks()
Returns: CRMScript.NetServer.NSLink[] - List of all elements linked to the document.
Example:
GetLockSemantics()
Returns: CRMScript.Global.Integer - See <xref href=“CRMScript.NetServer.DocumentLockSemantics” data-throw-if-not-resolved=“false”></xref>
Example:
GetName()
Returns: CRMScript.Global.String - File name.
Example:
GetOurRef()
Returns: CRMScript.Global.String - Our reference, searchable field from free-text search.
Example:
GetPerson()
Returns: 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:
GetProject()
Returns: 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:
GetPublishEventDate()
Returns: CRMScript.Global.DateTime - Publish event date on NSDocumentEntity.
GetPublishFrom()
Returns: CRMScript.Global.DateTime - Publish from date on NSDocumentEntity.
GetPublishTo()
Returns: CRMScript.Global.DateTime - Publish to date on NSDocumentEntity. After this date the event is no longer visible.
GetSale()
Returns: 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:
GetSnum()
Returns: CRMScript.Global.Integer - The sequence number allocated from refcount on used template when creating the document.
Example:
GetSuggestedDocumentId()
Returns: CRMScript.Global.Integer - Suggested guide item that this document is an instance of.
NOT valid for appointments, they have their own link
Example:
GetType()
Returns: CRMScript.Global.Integer - Is this a normal document or a mail-merge or report?
Example:
GetUpdatedBy()
Returns: CRMScript.NetServer.NSAssociate - The person that last updated the appointment.
Example:
GetUpdatedDate()
Returns: CRMScript.Global.DateTime - Last updated when.
Example:
GetUserDefinedFields()
Gets the user-defined fields on the NSDocumentEntity as a map.
Returns: CRMScript.Native.Map
Example:
GetVisibleFor()
Returns: CRMScript.NetServer.NSVisibleFor[] - Return the user groups and/or users the NSDocumentEntity item is visible for.
Example:
GetYourRef()
Returns: CRMScript.Global.String - Your reference.
Example:
SetActiveLinks(Integer)
Returns: CRMScript.Global.Void
Example:
SetAssociate(NSAssociate)
Returns: CRMScript.Global.Void
Example:
SetAttention(String)
Returns: CRMScript.Global.Void
Example:
SetCompleted(Integer)
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
SetCreatedBy(NSAssociate)
Returns: CRMScript.Global.Void
Example:
SetCreatedDate(DateTime)
Returns: CRMScript.Global.Void
Example:
SetCustomFields(Map)
Sets the user-defined and extra fields on an NSDocumentEntity with a map.
Returns: CRMScript.Global.Void
Example:
SetDate(DateTime)
Returns: CRMScript.Global.Void
Example:
SetDescription(String)
Returns: CRMScript.Global.Void
Example:
SetDocumentId(Integer)
Returns: CRMScript.Global.Void
Example:
SetDocumentTemplate(NSDocumentTemplate)
Returns: CRMScript.Global.Void
Example:
SetExternalRef(String)
Returns: CRMScript.Global.Void
Example:
Sets the extra field values on NSDocumentEntity with a map.
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
SetIsPublished(Bool)
Sets the IsPublished property
Returns: CRMScript.Global.Void
SetLinks(NSLink[])
Returns: CRMScript.Global.Void
Example:
SetLockSemantics(Integer)
Returns: CRMScript.Global.Void
Example:
SetName(String)
Returns: CRMScript.Global.Void
Example:
SetOurRef(String)
Returns: CRMScript.Global.Void
Example:
SetPerson(NSPerson)
Returns: CRMScript.Global.Void
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:
SetProject(NSProject)
Returns: CRMScript.Global.Void
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:
SetPublishEventDate(DateTime)
Returns: CRMScript.Global.Void
SetPublishFrom(DateTime)
Sets the publish from date on an NSDocumentEntity.
Returns: CRMScript.Global.Void
SetPublishTo(DateTime)
Sets the publish to date on NSDocumentEntity. After this date the event is no longer visible.
Returns: CRMScript.Global.Void
SetSale(NSSale)
Returns: CRMScript.Global.Void
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:
SetSnum(Integer)
Returns: CRMScript.Global.Void
Example:
SetSuggestedDocumentId(Integer)
Returns: CRMScript.Global.Void
NOT valid for appointments, they have their own link
Example:
SetType(Integer)
Returns: CRMScript.Global.Void
Example:
SetUpdatedBy(NSAssociate)
Returns: CRMScript.Global.Void
Example:
SetUpdatedDate(DateTime)
Returns: CRMScript.Global.Void
Example:
SetUserDefinedFields(Map)
Sets the user-defined fields on the NSDocumentEntity as a map.
Returns: CRMScript.Global.Void
Example:
SetVisibleFor(NSVisibleFor[])
Sets the user groups and/or users the NSDocumentEntity item is visible for.
Returns: CRMScript.Global.Void
Example:
SetYourRef(String)
Returns: CRMScript.Global.Void
Example: