The template a document is based on is stored in the SO_arc\template folder on the server. This will return the name as displayed in the GUI, and not the physical document name, of the template the document object is based on.
Constructors
NSDocumentTemplateEntity()
Initializes a new instance of the NSDocumentTemplateEntity class.
Methods
GetAutoeventId()
Which document plugin is responsible for the documents generated from this template
Returns: CRMScript.Global.Integer
Example:
GetDefaultOref()
Processed via tag substitution to give document reference
Returns: CRMScript.Global.String
Example:
GetDeleted()
True if deleted
Returns: CRMScript.Global.Bool
Example:
GetDirection()
Returns: CRMScript.Global.Integer - 1 = incoming, 2 = outgoing. See <xref href=“CRMScript.NetServer.TaskDirection” data-throw-if-not-resolved=“false”></xref>
Example:
GetDocumentTemplateId()
Primary key
Returns: CRMScript.Global.Integer
Example:
GetDocumentTypeKey()
The document type to use when creating a blank document. Plugin-specific. Used when not creating template from a local file.
Returns: CRMScript.Global.Integer
Example:
GetEmailSubject()
Subject to use if document template is an email.
Returns: CRMScript.Global.String
Example:
GetFilename()
Relative to TemplatePath, or extref for other document plugins. i.e URL or full path.
Returns: CRMScript.Global.String
Example:
GetIncludeSignature()
True if the email signature should be added in bottom of mail if this an email template
Returns: CRMScript.Global.Bool
Example:
GetIntentId()
What is the intention of this document (used by SAINT)
Returns: CRMScript.Global.Integer
Example:
GetInvitationDocType()
Returns: CRMScript.Global.Integer - Type for sending email meeting invitation. See <xref href=“CRMScript.NetServer.DocTmplInvitationType” data-throw-if-not-resolved=“false”></xref>
Example:
GetIsDefaultPublished()
Returns: CRMScript.Global.Bool - Published to external persons.
Example:
GetIsInUseInGuides()
True if the template is in use in a project or sales guide
Returns: CRMScript.Global.Bool
Example:
GetLoadTemplateFromPlugin()
Which document plugin is responsible for this template’s contents
Returns: CRMScript.Global.Integer
Example:
GetMimeType()
The mime type
Returns: CRMScript.Global.String
Example:
GetName()
The template list item
Returns: CRMScript.Global.String
Example:
GetPrivacyDocType()
Returns: CRMScript.Global.Integer - Indicator that this document template has a functional role, related to privacy/GDPR. See <xref href=“CRMScript.NetServer.DocTmplPrivacyType” data-throw-if-not-resolved=“false”></xref>
Example:
GetQuoteDocType()
Returns: CRMScript.Global.Integer - The role this document plays in the Quote system, if any. See <xref href=“CRMScript.NetServer.DocTmplQuoteType” data-throw-if-not-resolved=“false”></xref>
Example:
GetRank()
Returns: CRMScript.Global.Integer - Rank order.
Example:
GetRecordType()
Returns: CRMScript.NetServer.NSDocTmplType - 1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo See <xref href=“CRMScript.NetServer.TaskType” data-throw-if-not-resolved=“false”></xref>
Example:
GetSaveInDb()
1 = save document records in DB; otherwise not.
Returns: CRMScript.Global.Integer
Example:
GetSenderEmailAddress()
If email template, default sender address when template is of type quote email or privacy email.
Returns: CRMScript.Global.String
Example:
GetSenderEmailMode()
Returns: CRMScript.Global.Integer - If email template, when DocType is Privacy or quote email, it is possible to make sender address like our contact, or our support contact, or always one address. See <xref href=“CRMScript.NetServer.SenderMailMode” data-throw-if-not-resolved=“false”></xref>
Example:
GetShowCurrents()
True if when using this template there should be shown a place for editing current choices of person, compant, sale, project etc
Returns: CRMScript.Global.Bool
Example:
Tooltip or other description
Returns: CRMScript.Global.String
Example:
SetAutoeventId(Integer)
Which document plugin is responsible for the documents generated from this template
Returns: CRMScript.Global.Void
Example:
SetDefaultOref(String)
Processed via tag substitution to give document reference
Returns: CRMScript.Global.Void
Example:
SetDeleted(Bool)
True if deleted
Returns: CRMScript.Global.Void
Example:
SetDirection(Integer)
Sets the direction of a document template.
Returns: CRMScript.Global.Void
Example:
SetDocumentTemplateId(Integer)
Primary key
Returns: CRMScript.Global.Void
Example:
SetDocumentTypeKey(Integer)
The document type to use when creating a blank document. Plugin-specific. Used when not creating template from a local file.
Returns: CRMScript.Global.Void
Example:
SetEmailSubject(String)
Subject to use if document template is an email.
Returns: CRMScript.Global.Void
Example:
SetFilename(String)
Relative to TemplatePath, or extref for other document plugins. i.e URL or full path.
Returns: CRMScript.Global.Void
Example:
SetIncludeSignature(Bool)
True if the email signature should be added in bottom of mail if this an email template
Returns: CRMScript.Global.Void
Example:
SetIntentId(Integer)
What is the intention of this document (used by SAINT)
Returns: CRMScript.Global.Void
Example:
SetInvitationDocType(Integer)
Returns: CRMScript.Global.Void
Example:
SetIsDefaultPublished(Bool)
Published to external persons
Returns: CRMScript.Global.Void
Example:
SetIsInUseInGuides(Bool)
True if the template is in use in a project or sales guide
Returns: CRMScript.Global.Void
Example:
SetLoadTemplateFromPlugin(Integer)
Which document plugin is responsible for this template’s contents
Returns: CRMScript.Global.Void
Example:
SetMimeType(String)
The mime type
Returns: CRMScript.Global.Void
Example:
SetName(String)
The template list item
Returns: CRMScript.Global.Void
Example:
SetPrivacyDocType(Integer)
Returns: CRMScript.Global.Void
Example:
SetQuoteDocType(Integer)
Returns: CRMScript.Global.Void
Example:
SetRank(Integer)
Rank order
Returns: CRMScript.Global.Void
Example:
SetRecordType(NSDocTmplType)
1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo
Returns: CRMScript.Global.Void
See <xref href=“CRMScript.NetServer.TaskType” data-throw-if-not-resolved=“false”></xref>
Example:
SetSaveInDb(Integer)
1 = save document records in DB; otherwise not.
Returns: CRMScript.Global.Void
Example:
SetSenderEmailAddress(String)
If email template, default senderaddress when template is of type quote email or privacy email.
Returns: CRMScript.Global.Void
Example:
SetSenderEmailMode(Integer)
Returns: CRMScript.Global.Void
Example:
SetShowCurrents(Bool)
True if when using this template there should be shown a place for editing current choices of person, compant, sale, project etc
Returns: CRMScript.Global.Void
Example:
Tooltip or other description
Returns: CRMScript.Global.Void
Example: