Share via


Codeunit "CDS Integration Impl."

ID 7201
Namespace: Microsoft.Integration.Dataverse

Properties

Name Value
SingleInstance True

Methods

SetupVirtualTables

procedure SetupVirtualTables(var CDSConnectionSetup: Record "CDS Connection Setup", var ConfigId: Guid)

Parameters

Name Type Description
CDSConnectionSetup Table Microsoft.Integration.Dataverse."CDS Connection Setup"
ConfigId Guid

GetTempConnectionSetup

procedure GetTempConnectionSetup(var TempCDSConnectionSetup: Record "CDS Connection Setup" temporary, var CDSConnectionSetup: Record "CDS Connection Setup", AccessToken: SecretText)

Parameters

Name Type Description
TempCDSConnectionSetup Table Microsoft.Integration.Dataverse."CDS Connection Setup"
CDSConnectionSetup Table Microsoft.Integration.Dataverse."CDS Connection Setup"
AccessToken SecretText

CheckIntegrationUserPrerequisites

Obsolete

This element will become obsolete from version 25.0. Use the procedure that receives AdminPassword and AccessToken as SecretText instead.

[Obsolete(Use the procedure that receives AdminPassword and AccessToken as SecretText instead.,25.0)]
[NonDebuggable]
procedure CheckIntegrationUserPrerequisites(var CDSConnectionSetup: Record "CDS Connection Setup", AdminUserName: Text, AdminPassword: Text, AccessToken: Text, AdminADDomain: Text)

Parameters

Name Type Description
CDSConnectionSetup Table Microsoft.Integration.Dataverse."CDS Connection Setup"
AdminUserName Text
AdminPassword Text
AccessToken Text
AdminADDomain Text

IsVirtualTablesAppInstalled

[TryFunction]
[NonDebuggable]
procedure IsVirtualTablesAppInstalled(var TempAdminCDSConnectionSetup: Record "CDS Connection Setup" temporary): Boolean

Parameters

Name Type Description
TempAdminCDSConnectionSetup Table Microsoft.Integration.Dataverse."CDS Connection Setup"

Returns

Type Description
Boolean

AssignTeamRole

procedure AssignTeamRole(CrmHelper: DotNet "Microsoft.Dynamics.Nav.CrmCustomizationHelper.CrmHelper", TeamId: Guid, RoleId: Guid): Boolean

Parameters

Name Type Description
CrmHelper "Microsoft.Dynamics.Nav.CrmCustomizationHelper.CrmHelper"
TeamId Guid
RoleId Guid

Returns

Type Description
Boolean

ReplaceUserNamePasswordInConnectionString

Obsolete

This element will become obsolete from version 25.0. Use the procedure that receives NewPassword as SecretText and returns a SecretText instead

[Obsolete(Use the procedure that receives NewPassword as SecretText and returns a SecretText instead,25.0)]
[NonDebuggable]
procedure ReplaceUserNamePasswordInConnectionString(CDSConnectionSetup: Record "CDS Connection Setup", NewUserName: Text, NewPassword: Text): Text

Parameters

Name Type Description
CDSConnectionSetup Table Microsoft.Integration.Dataverse."CDS Connection Setup"
NewUserName Text
NewPassword Text

Returns

Type Description
Text

GetAccessToken

Obsolete

This element will become obsolete from version 25.0. Use the procedure that receives AccessToken as SecretText instead.

[NonDebuggable]
[Obsolete(Use the procedure that receives AccessToken as SecretText instead.,25.0)]
procedure GetAccessToken(ResourceURL: Text, GetTokenFromCache: Boolean, var AccessToken: Text)

Parameters

Name Type Description
ResourceURL Text
GetTokenFromCache Boolean
AccessToken Text

SendMultipleCompaniesNotification

procedure SendMultipleCompaniesNotification()

MultipleCompanyNotificationHelpLink

procedure MultipleCompanyNotificationHelpLink(Notification: Notification)

Parameters

Name Type Description
Notification Notification

DisableMultipleCompanyNotification

procedure DisableMultipleCompanyNotification(Notification: Notification)

Parameters

Name Type Description
Notification Notification

OpenIntegrationTableMappings

procedure OpenIntegrationTableMappings(Notification: Notification)

Parameters

Name Type Description
Notification Notification

MultipleCompaniesConnected

procedure MultipleCompaniesConnected(): Boolean

Returns

Type Description
Boolean

UpdateBusinessEventsSetupFromWizard

[NonDebuggable]
procedure UpdateBusinessEventsSetupFromWizard(var SourceCDSConnectionSetup: Record "CDS Connection Setup")

Parameters

Name Type Description
SourceCDSConnectionSetup Table Microsoft.Integration.Dataverse."CDS Connection Setup"

GetOptionSetMetadata

procedure GetOptionSetMetadata(EntityName: Text, FieldName: Text): Dictionary of [Integer, Text]

Parameters

Name Type Description
EntityName Text
FieldName Text

Returns

Type Description
Dictionary of [Integer, Text]

InsertOptionSetMetadata

procedure InsertOptionSetMetadata(EntityName: Text, FieldName: Text, NewOptionLabel: Text): Integer

Parameters

Name Type Description
EntityName Text
FieldName Text
NewOptionLabel Text

Returns

Type Description
Integer

InsertOptionSetMetadataWithOptionValue

procedure InsertOptionSetMetadataWithOptionValue(EntityName: Text, FieldName: Text, NewOptionLabel: Text, NewOptionValue: Integer): Integer

Parameters

Name Type Description
EntityName Text
FieldName Text
NewOptionLabel Text
NewOptionValue Integer

Returns

Type Description
Integer

UpdateOptionSetMetadata

procedure UpdateOptionSetMetadata(EntityName: Text, FieldName: Text, OptionValue: Integer, NewOptionLabel: Text)

Parameters

Name Type Description
EntityName Text
FieldName Text
OptionValue Integer
NewOptionLabel Text

ScheduleEnablingVirtualTables

procedure ScheduleEnablingVirtualTables(FilterList: List of [Text])

Parameters

Name Type Description
FilterList List of [Text]

OpenEnableVirtualTablesJobFromNotification

procedure OpenEnableVirtualTablesJobFromNotification(ScheduledJobNotification: Notification)

Parameters

Name Type Description
ScheduledJobNotification Notification

LearnMoreDisablingCRMConnection

procedure LearnMoreDisablingCRMConnection(ErrorInfo: ErrorInfo)

Parameters

Name Type Description
ErrorInfo ErrorInfo

Events

OnBeforeCleanCRMIntegrationRecords

[IntegrationEvent(False,False)]
local procedure OnBeforeCleanCRMIntegrationRecords(var DisableIntegrationRecordCleanup: Boolean)

Parameters

Name Type Description
DisableIntegrationRecordCleanup Boolean

OnBeforeCleanCRMIntegrationSyncJob

Obsolete

This element will become obsolete from version 26.0. This event is not used. Integration Sync Job records are not cleaned up.

[Obsolete(This event is not used. Integration Sync Job records are not cleaned up.,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCleanCRMIntegrationSyncJob(var DisableIntegrationSyncJobCleanup: Boolean)

Parameters

Name Type Description
DisableIntegrationSyncJobCleanup Boolean

OnBeforeCheckGLSetupLCYCode

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckGLSetupLCYCode(GLSetup: Record "General Ledger Setup", CRMTransactioncurrency: Record "CRM Transactioncurrency", var IsHandled: Boolean)

Parameters

Name Type Description
GLSetup Table Microsoft.Finance.GeneralLedger.Setup."General Ledger Setup"
CRMTransactioncurrency Table Microsoft.Integration.D365Sales."CRM Transactioncurrency"
IsHandled Boolean

OnGetCDSConnectionClientId

[IntegrationEvent(False,False)]
local procedure OnGetCDSConnectionClientId(var ClientId: Text)

Parameters

Name Type Description
ClientId Text

OnGetCDSConnectionClientSecret

[IntegrationEvent(False,False)]
local procedure OnGetCDSConnectionClientSecret(var ClientSecret: Text)

Parameters

Name Type Description
ClientSecret Text

OnAfterIntegrationEnabled

[IntegrationEvent(False,False)]
local procedure OnAfterIntegrationEnabled()

OnBeforeGetBusinessEventsSupported

[IntegrationEvent(False,False)]
local procedure OnBeforeGetBusinessEventsSupported(var Supported: Boolean, var Handled: Boolean)

Parameters

Name Type Description
Supported Boolean
Handled Boolean

OnBeforeGetDefaultBusinessUnitName

[IntegrationEvent(True,False)]
local procedure OnBeforeGetDefaultBusinessUnitName(var BusinessUnitName: Text[160], var IsHandled: Boolean)

Parameters

Name Type Description
BusinessUnitName Text[160]
IsHandled Boolean

OnGetIntegrationUserEmail

[IntegrationEvent(True,False)]
local procedure OnGetIntegrationUserEmail(var IntegrationUsernameEmailTxt: Text[100], var IsHandled: Boolean)

Parameters

Name Type Description
IntegrationUsernameEmailTxt Text[100]
IsHandled Boolean

See also