Extract invoice data from Outlook to Excel

ProductivitySales EnablementRecipe ToolsWorkatoArtificial IntelligenceDeveloper ToolMarketingDocument/File

What it does

When a new email arrives in Outlook with an invoice attachment, this automation downloads the file and extracts invoice data. The extracted records are transformed and added to Excel so the team has structured invoice data ready for review.

Who it's for

Accounting teams who need to extract invoice data from email attachments and populate Excel without manual data entry.

How teams use this

Automate invoice data entry from email

Extract vendor, amount, and date from invoice PDFs attached to Outlook emails and populate Excel automatically. The team no longer needs to type invoice details by hand.

Route invoices to different Excel sheets

Add a condition after document processing to check the vendor name and write each invoice to a different Excel sheet based on the supplier. This keeps vendor records organized without extra manual sorting.

Capture additional invoice fields

Modify the JavaScript transformation to include PO number, tax amount, and payment terms in addition to the base fields. The Excel sheet schema expands to hold the new columns for complete invoice records.

Monitor processing errors in Slack

Send a Slack notification when document processing fails to extract data or JavaScript transformation errors occur so the team can review the invoice manually. Errors are logged and flagged in real time.

How it works

  1. Monitor for new invoice emails. A new email arrives in Outlook Mail with an invoice attachment ready to process.
  2. Download the invoice file. Download email attachments from the Outlook email so the invoice document is available for extraction and processing.
  3. Extract invoice data with document processing. Process the document using Workato Idp to pull structured fields like vendor, amount, and date from the invoice PDF or image.
  4. Transform the extracted records. Execute JavaScript code to format and clean the extracted invoice data before it goes into Excel for final storage.
  5. Add invoice rows to the sheet. Add rows in batch in Microsoft Excel so the transformed invoice records are stored and ready for accounting review and reconciliation.