Show / Hide Table of Contents

Class DocumentTemplateEntity

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.

Carrier object for DocumentTemplateEntity. Services for the DocumentTemplateEntity Carrier is available from the List Agent.
Inheritance
object
DocumentTemplateEntity
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.1.0.0")]
public class DocumentTemplateEntity : Carrier
Examples

Get DocumentTemplateEntity 123 using the agent:

using SuperOffice;
using SuperOffice.CRM.Services;

using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
   var agent = new ListAgent();
   var documentTemplateEntity = agent.GetDocumentTemplateEntity( 123 );
}

Constructors

DocumentTemplateEntity()

Default constructor

Declaration
public DocumentTemplateEntity()
See Also
IListAgent

Properties

AutoeventId

Which document plugin is responsible for the documents generated from this template

Declaration
[DataMember]
public virtual int AutoeventId { get; set; }
Property Value
Type Description
int
See Also
IListAgent

DefaultOref

Processed via tag substitution to give document reference

Declaration
[DataMember]
public virtual string DefaultOref { get; set; }
Property Value
Type Description
string
See Also
IListAgent

Deleted

True if deleted

Declaration
[DataMember]
public virtual bool Deleted { get; set; }
Property Value
Type Description
bool
See Also
IListAgent

Direction

1 = incoming, 2 = outgoing, see EAppntDirection

Declaration
[DataMember]
public virtual DocTmplDirection Direction { get; set; }
Property Value
Type Description
DocTmplDirection
See Also
IListAgent

DocumentTemplateId

Primary key

Declaration
[DataMember]
public virtual int DocumentTemplateId { get; set; }
Property Value
Type Description
int
See Also
IListAgent

DocumentTypeKey

The document type to use when creating a blank document. Plugin-specific. Used when not creating template from a local file.

Declaration
[DataMember]
public virtual int DocumentTypeKey { get; set; }
Property Value
Type Description
int
See Also
IListAgent

EmailSubject

Subject to use if document template is an email.

Declaration
[DataMember]
public virtual string EmailSubject { get; set; }
Property Value
Type Description
string
See Also
IListAgent

Filename

Relative to TemplatePath, or extref for other document plugins. i.e URL or full path.

Declaration
[DataMember]
public virtual string Filename { get; set; }
Property Value
Type Description
string
See Also
IListAgent

IncludeSignature

True if the email signature should be added in bottom of mail if this an email template

Declaration
[DataMember]
public virtual bool IncludeSignature { get; set; }
Property Value
Type Description
bool
See Also
IListAgent

IntentId

What is the intention of this document (used by SAINT)

Declaration
[DataMember]
public virtual int IntentId { get; set; }
Property Value
Type Description
int
See Also
IListAgent

InvitationDocType

Type for sending email meeting invitation. Not an invitation type template = 0, New = 1, Changed = 2, Cancelled = 3

Declaration
[DataMember]
public virtual DocTmplInvitationType InvitationDocType { get; set; }
Property Value
Type Description
DocTmplInvitationType
See Also
IListAgent

IsDefaultPublished

Published to external persons

Declaration
[DataMember]
public virtual bool IsDefaultPublished { get; set; }
Property Value
Type Description
bool
See Also
IListAgent

IsInUseInGuides

True if the template is in use in a project or sales guide

Declaration
[DataMember]
public virtual bool IsInUseInGuides { get; set; }
Property Value
Type Description
bool
See Also
IListAgent

LoadTemplateFromPlugin

Which document plugin is responsible for this template's contents

Declaration
[DataMember]
public virtual int LoadTemplateFromPlugin { get; set; }
Property Value
Type Description
int
See Also
IListAgent

MimeType

The mime type

Declaration
[DataMember]
public virtual string MimeType { get; set; }
Property Value
Type Description
string
See Also
IListAgent

Name

The template list item

Declaration
[DataMember]
public virtual string Name { get; set; }
Property Value
Type Description
string
See Also
IListAgent

PrivacyDocType

Indicator that this document template has a functional role, related to privacy/GDPR

Declaration
[DataMember]
public virtual DocTmplPrivacyType PrivacyDocType { get; set; }
Property Value
Type Description
DocTmplPrivacyType
See Also
IListAgent

QuoteDocType

The role this document plays in the Quote system, if any

Declaration
[DataMember]
public virtual DocTmplQuoteType QuoteDocType { get; set; }
Property Value
Type Description
DocTmplQuoteType
See Also
IListAgent

Rank

Rank order

Declaration
[DataMember]
public virtual short Rank { get; set; }
Property Value
Type Description
short
See Also
IListAgent

RecordType

1 = app, 2 = doc, 3 = email, 4 = fax, 5 = phone, 6 = todo - see EAppntRecordTypes

Declaration
[DataMember]
public virtual DocTmplType RecordType { get; set; }
Property Value
Type Description
DocTmplType
See Also
IListAgent

SaveInDb

1 = save document records in DB; otherwise not.

Declaration
[DataMember]
public virtual short SaveInDb { get; set; }
Property Value
Type Description
short
See Also
IListAgent

SenderEmailAddress

If email template, default senderaddress when template is of type quote email or privacy email.

Declaration
[DataMember]
public virtual string SenderEmailAddress { get; set; }
Property Value
Type Description
string
See Also
IListAgent

SenderEmailMode

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

Declaration
[DataMember]
public virtual SenderMailMode SenderEmailMode { get; set; }
Property Value
Type Description
SenderMailMode
See Also
IListAgent

ShowCurrents

True if when using this template there should be shown a place for editing current choices of person, compant, sale, project etc

Declaration
[DataMember]
public virtual bool ShowCurrents { get; set; }
Property Value
Type Description
bool
See Also
IListAgent

Tooltip

Tooltip or other description

Declaration
[DataMember]
public virtual string Tooltip { get; set; }
Property Value
Type Description
string
See Also
IListAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

See Also
IListAgent

ToString(string)

Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.

Declaration
public string ToString(string prefix)
Parameters
Type Name Description
string prefix

The line prefix (typically used for indenting)

Returns
Type Description
string

The carrier contents.

See Also
IListAgent

See Also

IListAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top