In the Wair Connector App, Application Insights is used to monitor and diagnose the performance and health of the integration between Business Central and the Wair API. By capturing detailed telemetry data, Application Insights provides valuable insights into how the app is being used, enabling the identification of errors and performance issues before they are reported by partners or customers.
.png?sv=2026-02-06&spr=https&st=2026-06-08T02%3A58%3A24Z&se=2026-06-08T03%3A09%3A24Z&sr=c&sp=r&sig=eAECU3M38I%2FlXyVLNdtFwCmiKmhuAUFzJLtEnkSrU8I%3D)
Picture 17: Application Insights logs
Implemented Application Insights Event IDs Meaning
WRS0001: Indicates that a (POST, GET, DELETE) request has been made to Wair.
WRS0002: Indicates that the authentication token request to Wair was unsuccessful.
WRS0003: Indicates that the feature "Wair Connector Setup" has been discovered.
WRS0004: Indicates that the feature "Wair Connector Setup" has been set up.
WRS0005: Indicates that the feature "Wair Connector Setup" has been used.
Retention Policy
Managing Wair Log Entries can become challenging as they accumulate over time. To prevent system clutter, setting up a retention policy is an effective solution. This policy allows for the automatic deletion of old log entries after a specified period, keeping your system efficient and organized.
To set up a retention policy for Wair log entries:
Access Retention Policies: Open Business Central and navigate to the Retention Policies page.
Create a New Policy: Press New and, in the Table ID field, choose the Wair Log Entry table.
Set Retention Period: Specify the length of time for which to keep the data in the table.
Optional – Configure Deletion Rules: The policy can be applied to specific data within a table by filtering the records for each line. This approach ensures that the policy affects only the records that match the specified filters (for example, entries with the DELETE method need to be deleted after two weeks, and entries with the POST method need to be deleted after a month).
.png?sv=2026-02-06&spr=https&st=2026-06-08T02%3A58%3A24Z&se=2026-06-08T03%3A09%3A24Z&sr=c&sp=r&sig=eAECU3M38I%2FlXyVLNdtFwCmiKmhuAUFzJLtEnkSrU8I%3D)
Picture 18: Retention Policy setup