Show / Hide Table of Contents

Class Document

Carrier object for Document. Services for the Document Carrier is available from the Document Agent.

Inheritance
object
Document
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.7.0.0")]
public class Document : Carrier
Examples

Get Document 123 using the agent:

using SuperOffice;
using SuperOffice.CRM.Services;

using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
   var agent = new DocumentAgent();
   var document = agent.GetDocument( 123 );
}

Constructors

Document()

Default constructor

Declaration
public Document()
See Also
IDocumentAgent

Properties

AssociateFullName

The associate's culture formatted fullname (firstname, middleName and lastname)

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

AssociateId

ID of associate whose diary the appointment is in, REQUIRED

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

Attention

Attention/salutation

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

ContactId

Contact ID of owning contact, may be 0

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

ContactName

Contact name

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

Description

The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases

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

DocumentId

Primary key

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

DocumentTemplate

Carrier object for Document. Services for the Document Carrier is available from the Document Agent.

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

Header

Visible document name

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

IsPublished

True if document have an entry in published table

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

Name

File name

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

OurRef

Our reference, searchable field from freetext search

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

PersonFullName

The full name of the person this document belongs to.

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

PersonId

Person ID of person the appointment is with, may be 0

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

ProjectId

ID of project referred to, may be 0

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

ProjectName

Project name

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

SaleId

Owning sale, if any (may be 0)

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

SaleName

Heading of Owning sale, if any. (may be blank)

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

Snum

The sequence number allocated from refcount on used template when creating the document

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

YourRef

Your reference

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

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
string

The carrier contents.

See Also
IDocumentAgent

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
IDocumentAgent

See Also

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