Show / Hide Table of Contents

Class ActorHelper

Inheritance
object
ActorHelper
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 static class ActorHelper

Methods

BreakActorLinkAsync(int, int, CrmActorType, CancellationToken)

Breaks a link between a CRM and ERP actor.

Declaration
public static Task<bool> BreakActorLinkAsync(int erpConnectionId, int crmRecordId, CrmActorType actorType, CancellationToken cancellationToken)
Parameters
Type Name Description
int erpConnectionId
int crmRecordId
CrmActorType actorType
CancellationToken cancellationToken
Returns
Type Description
Task<bool>

CreateActorLinkAsync(int, int, CrmActorType, string, ErpActorType, CancellationToken)

Creates a new link between a CRM and ERP actor

Declaration
public static Task<bool> CreateActorLinkAsync(int erpConnectionId, int crmRecordId, CrmActorType crmActorType, string erpKey, ErpActorType erpActorType, CancellationToken cancellationToken)
Parameters
Type Name Description
int erpConnectionId
int crmRecordId
CrmActorType crmActorType
string erpKey
ErpActorType erpActorType
CancellationToken cancellationToken
Returns
Type Description
Task<bool>

CreateActorLinkAsync(int, int, int, string, ErpActorType, CancellationToken)

Creates a new link between a CRM and ERP actor

Declaration
public static Task<bool> CreateActorLinkAsync(int erpConnectionId, int crmRecordId, int crmTableId, string erpKey, ErpActorType erpActorType, CancellationToken cancellationToken)
Parameters
Type Name Description
int erpConnectionId
int crmRecordId
int crmTableId
string erpKey
ErpActorType erpActorType
CancellationToken cancellationToken
Returns
Type Description
Task<bool>

GetCrmActorTypeAsync(int, ErpActorType, CancellationToken)

Retrieves all ErpActorTypes that are mapped to a specific CrmActorType for this connection

Declaration
public static Task<CrmActorType> GetCrmActorTypeAsync(int erpConnectionId, ErpActorType erpActorType, CancellationToken cancellationToken)
Parameters
Type Name Description
int erpConnectionId
ErpActorType erpActorType
CancellationToken cancellationToken
Returns
Type Description
Task<CrmActorType>

GetDefaultActortypeMapping(ErpActorType)

Gets the default actor type mapping between ErpActorType and CrmActorType

Declaration
public static CrmActorType GetDefaultActortypeMapping(ErpActorType actorType)
Parameters
Type Name Description
ErpActorType actorType
Returns
Type Description
CrmActorType

GetDefaultErpFieldsAndValuesAsync(int, ErpActorType, Dictionary<string, string>, ErpSyncActor, CancellationToken)

Declaration
public static Task<Dictionary<string, string>> GetDefaultErpFieldsAndValuesAsync(int erpConnectionId, ErpActorType erpActorType, Dictionary<string, string> existingValues, ErpSyncActor erpSyncActor, CancellationToken cancellationToken)
Parameters
Type Name Description
int erpConnectionId
ErpActorType erpActorType
Dictionary<string, string> existingValues
ErpSyncActor erpSyncActor
CancellationToken cancellationToken
Returns
Type Description
Task<Dictionary<string, string>>

GetMappedErpActorTypesAsync(int, CancellationToken, params CrmActorType[])

Retrieves all ErpActorTypes that are mapped to a specific CrmActorType for this connection

Declaration
public static Task<ErpActorType[]> GetMappedErpActorTypesAsync(int erpConnectionId, CancellationToken cancellationToken, params CrmActorType[] crmActorTypes)
Parameters
Type Name Description
int erpConnectionId
CancellationToken cancellationToken
CrmActorType[] crmActorTypes
Returns
Type Description
Task<ErpActorType[]>

RemoveCrmFields(ErpSyncActorFieldCollection, params string[])

Declaration
public static ErpSyncActorFieldCollection RemoveCrmFields(ErpSyncActorFieldCollection collection, params string[] fields)
Parameters
Type Name Description
ErpSyncActorFieldCollection collection
string[] fields
Returns
Type Description
ErpSyncActorFieldCollection
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top