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
GetTempConnectionSetup
procedure GetTempConnectionSetup(var TempCDSConnectionSetup: Record "CDS Connection Setup" temporary, var CDSConnectionSetup: Record "CDS Connection Setup", AccessToken: SecretText)
Parameters
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
IsVirtualTablesAppInstalled
[TryFunction]
[NonDebuggable]
procedure IsVirtualTablesAppInstalled(var TempAdminCDSConnectionSetup: Record "CDS Connection Setup" temporary): Boolean
Parameters
Returns
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
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
Returns
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
UpdateBusinessEventsSetupFromWizard
[NonDebuggable]
procedure UpdateBusinessEventsSetupFromWizard(var SourceCDSConnectionSetup: Record "CDS Connection Setup")
Parameters
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
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
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
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