Codeunit "Doc. Exch. Service Mgt."

ID 1410
Namespace: Microsoft.EServices.EDocument

Properties

Name Value
Permissions TableData "Sales Invoice Header" = rm, TableData "Sales Cr.Memo Header" = rm

Methods

IsSandbox

procedure IsSandbox(var DocExchServiceSetup: Record "Doc. Exch. Service Setup"): Boolean

Parameters

Name Type Description
DocExchServiceSetup Table Microsoft.EServices.EDocument."Doc. Exch. Service Setup"

Returns

Type Description
Boolean

SetURLsToDefault

procedure SetURLsToDefault(var DocExchServiceSetup: Record "Doc. Exch. Service Setup")

Parameters

Name Type Description
DocExchServiceSetup Table Microsoft.EServices.EDocument."Doc. Exch. Service Setup"

RecallActivateAppNotification

procedure RecallActivateAppNotification()

CheckCredentials

procedure CheckCredentials()

CheckServiceEnabled

procedure CheckServiceEnabled()

GetServiceSetUp

procedure GetServiceSetUp(var DocExchServiceSetup: Record "Doc. Exch. Service Setup")

Parameters

Name Type Description
DocExchServiceSetup Table Microsoft.EServices.EDocument."Doc. Exch. Service Setup"

GetPostSalesInvURL

procedure GetPostSalesInvURL(): Text

Returns

Type Description
Text

GetPostSalesCrMemoURL

procedure GetPostSalesCrMemoURL(): Text

Returns

Type Description
Text

LogActivitySucceeded

procedure LogActivitySucceeded(RelatedRecordID: RecordId, ActivityDescription: Text, ActivityMessage: Text)

Parameters

Name Type Description
RelatedRecordID RecordId
ActivityDescription Text
ActivityMessage Text

LogActivityFailed

procedure LogActivityFailed(RelatedRecordID: RecordId, ActivityDescription: Text, ActivityMessage: Text)

Parameters

Name Type Description
RelatedRecordID RecordId
ActivityDescription Text
ActivityMessage Text

LogActivityFailedAndError

procedure LogActivityFailedAndError(RelatedRecordID: RecordId, ActivityDescription: Text, ActivityMessage: Text)

Parameters

Name Type Description
RelatedRecordID RecordId
ActivityDescription Text
ActivityMessage Text

EnableTraceLog

procedure EnableTraceLog(NewTraceLogEnabled: Boolean)

Parameters

Name Type Description
NewTraceLogEnabled Boolean

HandleVANRegisterServiceConnection

[EventSubscriber(Table,1400,OnRegisterServiceConnection,,False,False)]
procedure HandleVANRegisterServiceConnection(var ServiceConnection: Record "Service Connection" temporary)

Parameters

Name Type Description
ServiceConnection Table Microsoft.Utilities."Service Connection"

GetExternalDocURL

procedure GetExternalDocURL(DocID: Text): Text

Parameters

Name Type Description
DocID Text

Returns

Type Description
Text

VerifyPrerequisites

procedure VerifyPrerequisites(ShowFailure: Boolean): Boolean

Parameters

Name Type Description
ShowFailure Boolean

Returns

Type Description
Boolean

Events

OnGetClientId

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

Parameters

Name Type Description
ClientId Text

OnGetClientSecret

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

Parameters

Name Type Description
ClientSecret Text

OnBeforeSendActivateAppNotification

[IntegrationEvent(False,False)]
local procedure OnBeforeSendActivateAppNotification(var IsHandled: Boolean)

Parameters

Name Type Description
IsHandled Boolean

OnBeforeSetURLsToDefault

[IntegrationEvent(False,False)]
local procedure OnBeforeSetURLsToDefault(var DocExchServiceSetup: Record "Doc. Exch. Service Setup", Sandbox: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
DocExchServiceSetup Table Microsoft.EServices.EDocument."Doc. Exch. Service Setup"
Sandbox Boolean
IsHandled Boolean

OnBeforeVerifyPrerequisites

[IntegrationEvent(False,False)]
local procedure OnBeforeVerifyPrerequisites(ShowFailure: Boolean, var Success: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ShowFailure Boolean
Success Boolean
IsHandled Boolean

OnBeforeCheckDocumentStatus

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDocumentStatus(DocRecRef: RecordRef, var IsHandled: Boolean)

Parameters

Name Type Description
DocRecRef RecordRef
IsHandled Boolean

OnBeforeGetPostSalesURL

[IntegrationEvent(True,False)]
local procedure OnBeforeGetPostSalesURL(DocRecRef: RecordRef, var URL: Text)

Parameters

Name Type Description
DocRecRef RecordRef
URL Text

See also