Generate discrepancy reports on a schedule

Recipe ToolsMarketingDocument/FileDeveloper ToolData ParserUtilities

What it does

When a scheduled time arrives, this automation retrieves sales data from a lookup table and compares it across time periods. It identifies discrepancies, logs results, and surfaces errors so the team can investigate.

Who it's for

Finance teams who need to monitor sales data consistency without manual daily checks.

How teams use this

Monitor sales channel consistency

Run automated checks every 5 minutes to catch data mismatches between current and prior month sales. The team reviews the Excel report to spot trends and fix data entry errors.

Alert on critical discrepancies

Extend this automation to send a Slack message when discrepancies exceed a threshold so the team responds faster. Add a condition to filter high-value mismatches before logging.

Archive reports for audit trails

Route completed Excel reports to a cloud storage folder each day so the team keeps a timestamped record. This supports compliance and historical analysis without changing the core logic.

How it works

  1. Run every 5 minutes. The automation starts on a 5-minute schedule to check for new discrepancies in the sales data.
  2. Retrieve sales entries. Fetch all entries from the Discrepancy_Sales_Channel lookup table to compare against previous periods.
  3. Compare data across periods. Process each entry and calculate start and stop indexes for the current and previous months to identify mismatches.
  4. Log discrepancies and errors. Write discrepancy records, log entries, and error details to Excel so the team can review findings and investigate root causes.