Show / Hide Table of Contents

Class ErpSyncActor

The EIS actor class used internally in EIS and SuperOffice to represent an actor coming from either the CRM system of from an ERP connection

Inheritance
object
ErpSyncActor
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.ErpSync
Assembly: SuperOffice.Services.Implementation.dll
Syntax
public class ErpSyncActor

Constructors

ErpSyncActor()

The EIS actor class used internally in EIS and SuperOffice to represent an actor coming from either the CRM system of from an ERP connection

Declaration
public ErpSyncActor()

Properties

CrmRecordId

The primary key from the corresponding SuperOffice table (e.g. contact_id for contacts, person_id for persons, etc)

Declaration
public int CrmRecordId { get; set; }
Property Value
Type Description
int

CrmTableId

The table ID corresponding to the corresponding SuperOffice actor's owning table (e.g. the contact table for a contact, person table for a person, etc)

Declaration
public int CrmTableId { get; set; }
Property Value
Type Description
int

ErpExternalKeyId

The primary key id from the external key table for mapped actors, dependent on the connection this actor is fetched from - there may be several instances in the externalkeytable for this particular actor.

Declaration
public int ErpExternalKeyId { get; set; }
Property Value
Type Description
int

ErpExternalKeyMostRecentTimeStamp

The timestamp from the external key table for mapped actors, dependent on the connection this actor is fetched from - there may be several instances in the externalkeytable for this particular actor.

Declaration
public string ErpExternalKeyMostRecentTimeStamp { get; set; }
Property Value
Type Description
string

ErpInternalKeyId

The primary key from the actor's corresponding ErpInternalKey row (if mapped). Setting this will also set RecordId and TableId

Declaration
public int ErpInternalKeyId { get; set; }
Property Value
Type Description
int

FieldValues

Name/value pairs of field names and field values (field names as specified by the given connector/connection)

Declaration
public ErpSyncActorFieldCollection FieldValues { get; set; }
Property Value
Type Description
ErpSyncActorFieldCollection

LastModified

The LastModified value for this actor, as supplied by the origin connection

Declaration
public string LastModified { get; set; }
Property Value
Type Description
string

OriginErpActor

The ErpActor object that this ErpSyncActor was translated from (if any). Useful for identifying the actor if it's not mapped (which means InternalKeyId = 0)

Declaration
public ErpActor OriginErpActor { get; set; }
Property Value
Type Description
ErpActor

OwnerConnectionID

The connection Guid of the owning connection. NOTE! EIS will assume that the ErpFieldKeys in the FieldValues collection will correspond to the fieldkeys from THIS CONNECTION.

Declaration
public Guid OwnerConnectionID { get; set; }
Property Value
Type Description
Guid

ParentCrmRecordId

The EIS actor class used internally in EIS and SuperOffice to represent an actor coming from either the CRM system of from an ERP connection

Declaration
public int ParentCrmRecordId { get; set; }
Property Value
Type Description
int

ParentCrmTableId

The EIS actor class used internally in EIS and SuperOffice to represent an actor coming from either the CRM system of from an ERP connection

Declaration
public int ParentCrmTableId { get; set; }
Property Value
Type Description
int

Methods

CompareActorFieldCollection(ErpSyncActor, ErpSyncActor)

Compares two synced (!!) ErpSyncActor objects to see if their fields and field values match. Compares the whole field collection.

Declaration
public static bool CompareActorFieldCollection(ErpSyncActor actor1, ErpSyncActor actor2)
Parameters
Type Name Description
ErpSyncActor actor1
ErpSyncActor actor2
Returns
Type Description
bool

CompareActorFieldValues(ErpSyncActor, ErpSyncActor)

Compares two synced (!!) ErpSyncActor objects to see if their fields and field values match. Only compares matching fields (ignores all fields that are not present in both actors)

Declaration
public static bool CompareActorFieldValues(ErpSyncActor actor1, ErpSyncActor actor2)
Parameters
Type Name Description
ErpSyncActor actor1
ErpSyncActor actor2
Returns
Type Description
bool
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top