Show / Hide Table of Contents

Class Associate

Carrier object for Associate. Services for the Associate Carrier is available from the IAssociateAgent.

Inheritance
Object
Associate
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
public class Associate : Carrier
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }

Constructors

Associate()

Default constructor

Declaration
public Associate()
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

Properties

AssociateId

Primary key

Declaration
public virtual int AssociateId { get; set; }
Property Value
Type Description
Int32
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

Deleted

If true, the user is retired and should have no rights, not appear in lists, etc.

Declaration
public virtual bool Deleted { get; set; }
Property Value
Type Description
Boolean
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

EjUserId

ID of the ej user record corresponding to this associate; 0 for associates that are not ej users

Declaration
public virtual int EjUserId { get; set; }
Property Value
Type Description
Int32
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

FormalName

The associate's culture formatted formalname (firstname, middleName and lastname, title, mrmrs)

Declaration
public virtual string FormalName { get; set; }
Property Value
Type Description
String
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

FullName

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

Declaration
public virtual string FullName { get; set; }
Property Value
Type Description
String
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

GroupIdx

Primary group membership, see UserGroupLink for secondary memberships

Declaration
public virtual int GroupIdx { get; set; }
Property Value
Type Description
Int32
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

Name

Initials, also login name, possibly database user name

Declaration
public virtual string Name { get; set; }
Property Value
Type Description
String
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

PersonId

Owning person record

Use MDO List name "person" to get list items.

Declaration
public virtual int PersonId { get; set; }
Property Value
Type Description
Int32
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

Rank

Rank order

Declaration
public virtual short Rank { get; set; }
Property Value
Type Description
Int16
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

Tooltip

Tooltip or other description

Declaration
public virtual string Tooltip { get; set; }
Property Value
Type Description
String
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

Type

User type - 1 = internal user, 2 = resource, 3 = external user, 4 = anonymous, 5 = system

Declaration
public virtual UserType Type { get; set; }
Property Value
Type Description
UserType
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

UserName

User name

Declaration
public virtual string UserName { get; set; }
Property Value
Type Description
String
Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
String

The carrier contents.

Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

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.

Examples

Get Associate 123 using the agent:

 using SuperOffice;
 using SuperOffice.CRM.Services;

 using (SoSession mySession = SoSession.Authenticate("user", "pass"))
 {
    var agent = new AssociateAgent();
    var associate = agent.GetAssociate( 123 );
 }
See Also
AssociateAgent
IAssociateAgent

See Also

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