KVSEDX Setup#
Fields#
| Name | Type | Note |
|---|---|---|
| Primary Key | Code[10] | |
| Path Documents | Text[200] | |
| Subdirectory Test | Text[20] | |
| Subdirectory Productive | Text[20] | |
| Extension Vendor EDX Partner | Code[10] | |
| Extension Customer EDX Partner | Code[10] | |
| Setup Check Path | Boolean | FlowField |
| Setup Check Document Types | Boolean | FlowField |
| Setup Check Partner | Boolean | FlowField |
| Setup Check Partner Setup | Boolean | FlowField |
| Setup Count Document Types | Integer | FlowField |
| Setup Count Partner | Integer | FlowField |
| Setup Count Document Setup | Integer | FlowField |
| EDX Order Nos. | Code[20] | |
| EDX Order Conf. Nos. | Code[20] | |
| EDX Order Change Nos. | Code[20] | |
| EDX Purchase Receipt Nos. | Code[20] | |
| EDX Purchase Invoice Nos. | Code[20] | |
| EDX Purch. Order Conf. Nos. | Code[20] | |
| EDX Purch. Order Change Nos. | Code[20] | |
| EDX Purch. Cr. Memo Nos. | Code[20] | |
| EDX Quote Nos. | Code[20] | |
| EDX Quote Change Nos. | Code[20] | |
| EDX Return Order Nos. | Code[20] | |
| Test Environment | Boolean | |
| Database Name | Text[60] | |
| Webservice Log Inbound | Boolean | |
| Webservice Log Outbound | Boolean | |
| Error Mailaddress Receiver | Text[200] | |
| Time Span Error Mailing | Integer | |
| Disable XML Byte Order Mark | Boolean | |
| Archive inbound older than | DateFormula | |
| Archive outbound older than | DateFormula | |
| JobQueue interval in seconds | Boolean | |
| JobQueue V3.0 | Boolean | |
| Tasks | Integer | FlowField |
| Job Queue Entries | Integer | FlowField |
| Company Filter | Text[30] | FlowFilter |
| Stop jobqueue at message setup | Boolean | |
| Archive from | Time | |
| Archive to | Time | |
| Use Interval for In-/Outbound | Boolean | |
| Purchase suppress commit | Boolean | |
| Sales suppress commit | Boolean | |
| Activated | Boolean | |
| Deactivate during upgrade | Boolean | |
| IC Source Role | Enum (KVSEDX Wizard IC Source Role) | |
| IC Source Code | Code[20] | |
| IC Source Partner | Code[30] | |
| IC Source Company | Text[30] | |
| IC Source Code Invoice | Code[20] | |
| IC Source Partner Invoice | Code[30] | |
| IC Destination Code | Code[20] | |
| IC Destination Partner | Code[30] | |
| IC Destination Company | Text[30] | |
| IC Destination Code Invoice | Code[20] | |
| IC Destination Partner Invoice | Code[30] | |
| IC Destination Company Id | Guid | |
| IC Wizard Completed | Boolean | |
| Wizard Function | Enum (KVSEDX Wizard Function) | |
| Wizard Switches | Code[15] | |
| Wizard Use Azure Storage | Boolean | |
| Wizard Transm. Type for IC | Enum (KVSEDX Transmission Type IC) | |
| Wizard Use Purch.Price | Boolean | |
| Wizard OAuth Code | Code[20] | |
| Wizard OAuth Code Dest. | Code[20] | |
| Expiry period invoices | Duration | |
| Expiry period shipments | Duration | |
| Expiry period orders | Duration | |
| Expiry period confirmations | Duration | |
| Expiry period acknowledgements | Duration | |
| Expiry period base data | Duration | |
| Expiry period system errors | Duration | |
| Azure Storage Account Name | Text[250] | |
| Azure Storage KeyStorageId | Guid | |
| Azure Storage IsEnabled | Boolean | Warning: Obsolete |
| Azure Storage Container | Text[64] | |
| Azure Subdirectory Test | Text[20] | |
| Azure Subdirectory Productive | Text[20] | |
| Azure File Share | Text[64] | |
| Maximum Nos. of Errors Records | Integer | |
| Unit Test | Boolean | |
| GS1 Weight UOM Code | Code[10] | |
| GS1 Volume UOM Code | Code[10] | |
| EDX System Folder | Text[100] |
Procedures#
TranslatePath(Record KVSEDX Document Setup) : Text#
Summary: Translates the file path from EDX Document Setup by replacing placeholders with actual values. Uses the file path and transmission type from the document setup record.
procedure TranslatePath(ParKVSEDXDocumentSetup: Record "KVSEDX Document Setup"): Text
Parameters:
ParKVSEDXDocumentSetup: EDX Document Setup record containing the file path and transmission type
Returns: Translated path with placeholders replaced by actual values
TranslatePath(Record KVSEDX Document Setup, Boolean) : Text#
Summary: Translates the file path from EDX Document Setup with option to use share or storage names. When UseShareOrStorageName is true, Azure share/container names are included in the translation.
procedure TranslatePath(ParKVSEDXDocumentSetup: Record "KVSEDX Document Setup"; UseShareOrStorageName: Boolean): Text
Parameters:
ParKVSEDXDocumentSetup: EDX Document Setup record containing the file path and transmission typeUseShareOrStorageName: Set to true to include Azure share/container names in path translation
Returns: Translated path with placeholders replaced, optionally including share/storage names
TranslatePath(Text, Enum KVSEDX Transmission Type, Boolean) : Text#
Summary: Translates a file path by replacing placeholders with actual values based on transmission type. Supports Azure share/container name inclusion when UseShareOrStorageName is enabled.
procedure TranslatePath(FilenamePar: Text; TransmissionTypePar: Enum "KVSEDX Transmission Type"; UseShareOrStorageName: Boolean): Text
Parameters:
FilenamePar: File path containing placeholders to be translatedTransmissionTypePar: EDX Transmission Type determining which placeholders to replaceUseShareOrStorageName: Set to true to include Azure share/container names in translation
Returns: Translated path with placeholders replaced by actual values
TranslatePath(Text, Enum KVSEDX Transmission Type) : Text#
Summary: Translates a file path by replacing placeholders with actual values based on transmission type. Uses default behavior without Azure share/container names.
procedure TranslatePath(FilenamePar: Text; TransmissionTypePar: Enum "KVSEDX Transmission Type"): Text
Parameters:
FilenamePar: File path containing placeholders to be translatedTransmissionTypePar: EDX Transmission Type determining which placeholders to replace
Returns: Translated path with placeholders replaced by actual values
TranslateFTPPath(Text, Enum KVSEDX Transmission Type) : Text#
Summary: Translates file paths specifically for FTP transmission by replacing %ROOT_DIR% placeholder. Uses forward slashes for FTP path format and selects test or productive subdirectory based on environment setting.
procedure TranslateFTPPath(FilenamePar: Text; TransmissionTypePar: Enum "KVSEDX Transmission Type"): Text
Parameters:
FilenamePar: File path containing %ROOT_DIR% placeholderTransmissionTypePar: EDX Transmission Type (used for future extensibility)
Returns: FTP-formatted path with forward slashes and environment-specific subdirectory
IsActivated() : Boolean#
Summary: Determines if EDX functionality is currently activated by checking the Activated field. Also considers the "Deactivate during upgrade" setting and current execution context. Shows a notification if EDX is deactivated and GUI is available.
procedure IsActivated(): Boolean
Returns: True if EDX is activated and not temporarily deactivated during upgrade, false otherwise
Events#
OnExpiryOfStoragePeriod(Record KVSEDX Document Types, Duration, Boolean) :#
Summary: Integration event fired when determining expiry storage period for custom document types. Allows extensions to define retention periods for non-standard EDX message types.
[IntegrationEvent(true, false)]
local procedure OnExpiryOfStoragePeriod(DocumentTypes: Record "KVSEDX Document Types"; var Expiry: Duration; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Table, Table::"KVSEDX Setup", 'OnExpiryOfStoragePeriod', '', false, false)]
local procedure DoSomethingOnExpiryOfStoragePeriod(DocumentTypes: Record "KVSEDX Document Types"; var Expiry: Duration; var IsHandled: Boolean)
begin
end;
Parameters:
DocumentTypes: KVSEDX Document Types record for which to determine expiry periodExpiry: Output parameter to set the retention duration for the document typeIsHandled: Set to true if the event handler provides a custom expiry period
OnAfterInitializeExpiryOfStoragePeriod(Record KVSEDX Setup) :#
Summary: Integration event fired by the EDX Assistant after initializing expiry storage periods. Allows extensions to initialize additional custom storage period fields beyond the standard ones.
[IntegrationEvent(true, false)]
local procedure OnAfterInitializeExpiryOfStoragePeriod(var EDXSetup: Record "KVSEDX Setup"):
[EventSubscriber(ObjectType::Table, Table::"KVSEDX Setup", 'OnAfterInitializeExpiryOfStoragePeriod', '', false, false)]
local procedure DoSomethingOnAfterInitializeExpiryOfStoragePeriod(var EDXSetup: Record "KVSEDX Setup")
begin
end;
Parameters:
EDXSetup: KVSEDX Setup record being initialized
OnLicenseCount(Integer, Boolean) :#
[IntegrationEvent(true, false)]
local procedure OnLicenseCount(var NumberofLicensedClients: Integer; var Handled: Boolean):
[EventSubscriber(ObjectType::Table, Table::"KVSEDX Setup", 'OnLicenseCount', '', false, false)]
local procedure DoSomethingOnLicenseCount(var NumberofLicensedClients: Integer; var Handled: Boolean)
begin
end;