Codeunit 248 "VAT Lookup Ext. Data Hndl"
Base Application · Microsoft.Finance.VAT.Registration
Across versions
- BC23-29present
- BC302 procedures added
Neighbourhood 8 connected objects and pages
Base Application · Microsoft.Finance.VAT.Registration · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| TableNo | VAT Registration Log |
| Permissions | TableData “VAT Registration Log” = rimd |
Events published
OnRunOnAfterLookupVatRegistrationFromWebService(var VATRegistrationLog: Record "VAT Registration Log"; var RecVATRegistrationLog: Record "VAT Registration Log")(integration): Integration event raised after completing VAT registration lookup from web service. Enables custom processing of validation results and log record finalization.OnSendRequestToVatRegistrationServiceOnBeforeSendRequestToWebService(var SOAPWebServiceRequestMgt: Codeunit "SOAP Web Service Request Mgt."; var TempBlobBody: Codeunit "Temp Blob")(integration): Integration event raised before sending request to VAT registration web service. Enables custom modification of SOAP request configuration and body content.OnSendRequestToVATRegistrationServiceBeforeShowErrors(var VATRegistrationLog: Record "VAT Registration Log"; var IsHandled: Boolean)(integration): Integration event raised before displaying validation errors to allow custom error handling. Enables custom error processing and messaging when VAT registration service validation fails.OnPrepareSOAPRequestBodyOnBeforeSetAccountDetails(var RecordRef: RecordRef; var VATRegistrationLog: Record "VAT Registration Log"; var AccountName: Text; var AccountStreet: Text; var AccountCity: Text; var AccountPostCode: Text)(integration): Integration event raised before setting account details in SOAP request body. Enables custom modification of account name, street, city, and post code values sent to VAT service.OnLookupVatRegistrationFromWebServiceOnAfterResponseLogRecordingAndBeforeCommit(VATRegistrationLog: Record "VAT Registration Log"; ShowErrors: Boolean; var SuppressCommit: Boolean)(integration): Integration event raised after web service response logging and before database commit. Enables custom transaction control and additional processing before finalizing validation results.OnRunOnBeforeLookupVatRegistrationFromWebService(var VATRegistrationLogRec: Record "VAT Registration Log"; var VATRegistrationLog: Record "VAT Registration Log"; var IsHandled: Boolean)(integration): Integration event raised before starting VAT registration lookup from web service. Enables custom pre-processing and validation logic before web service communication.OnBeforePrepareSOAPRequestBody(var TempBlob: Codeunit "Temp Blob"; VATRegistrationLog: Record "VAT Registration Log"; var IsHandled: Boolean)(integration): Integration event raised before preparing SOAP request body for VAT validation. Enables complete custom request body preparation and web service communication logic.
Procedures
GetVATRegNrValidationWebServiceURL(): Text[250]: Retrieves the default URL for the VAT registration number validation web service (VIES).
Plus 8 local procedures.
Triggers
OnRun
Relations
- runs on Table 249 “VAT Registration Log”
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 1290 “SOAP Web Service Request Mgt.” (7 calls:
SendRequestToVatRegistrationService → DisableHttpsCheck,SendRequestToVatRegistrationService → GetResponseContent,SendRequestToVatRegistrationService → ProcessFaultResponse, …) - Codeunit 4100 “Temp Blob” (5 calls:
InsertLogEntry → CreateInStream,PrepareSOAPRequestBody → CreateInStream,PrepareSOAPRequestBody → CreateOutStream, …) - Codeunit 6224 “XML DOM Management” (3 calls:
InsertLogEntry → LoadXMLDocumentFromInStream,PrepareSOAPRequestBody → AddElement,PrepareSOAPRequestBody → AddRootElementWithPrefix) - Codeunit 247 “VAT Lookup Quota Mgt.” (1 call:
SendRequestToVatRegistrationService → (object)) - Codeunit 249 “VAT Registration Log Mgt.” (1 call:
InsertLogEntry → LogVerification) - Codeunit 701 “Data Type Management” (1 call:
GetField → FindFieldByName)
Called by
- Codeunit 249 “VAT Registration Log Mgt.” (2 calls:
CheckVIESForVATNoField → (object),InitServiceSetup → GetVATRegNrValidationWebServiceURL) - Page 248 “VAT Registration Config” (1 call:
InitVATRegNrValidationSetup → GetVATRegNrValidationWebServiceURL)
Recent changes
- 2026-09-24 #11736 [29.x][VIES Integration] Per-environment daily request rate-limit (releases/29.x, BC29, feature)
- 2026-09-24 #11734 [VIES Integration] Per-environment daily request rate-limit (main, BC30, feature)
- 2026-09-18 #11435 Validate unauthenticated public API responses before use (main, BC30, fix)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "VAT Lookup Ext. Data Hndl"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.