Class Document
Carrier object for Document. Services for the Document Carrier is available from the Document Agent.
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
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
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
Attention
Attention/salutation
Declaration
[DataMember]
public virtual string Attention { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
ContactId
Contact ID of owning contact, may be 0
Declaration
[DataMember]
public virtual int ContactId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
ContactName
Contact name
Declaration
[DataMember]
public virtual string ContactName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
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
DocumentId
Primary key
Declaration
[DataMember]
public virtual int DocumentId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
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
Header
Visible document name
Declaration
[DataMember]
public virtual string Header { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
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
Name
File name
Declaration
[DataMember]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
OurRef
Our reference, searchable field from freetext search
Declaration
[DataMember]
public virtual string OurRef { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
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
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
ProjectId
ID of project referred to, may be 0
Declaration
[DataMember]
public virtual int ProjectId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
ProjectName
Project name
Declaration
[DataMember]
public virtual string ProjectName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
SaleId
Owning sale, if any (may be 0)
Declaration
[DataMember]
public virtual int SaleId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
See Also
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
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
YourRef
Your reference
Declaration
[DataMember]
public virtual string YourRef { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The carrier contents. |
See Also
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. |