Class ActorHelper
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
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
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
Returns
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
Returns
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
Returns