Consolidated Invoicing Workflow (Business Central → SharePoint → Email → Daily Printing)
A Power Automate workflow that stores posted invoices into a clean SharePoint folder structure and supports a daily consolidated print process—while enforcing guardrails (zero lines, blocked customers, missing email).
Summary
Business impact
Gallery
Screenshots and artifacts from the build (sanitized where needed).
I standardized storage into a predictable structure and ensured folders exist automatically as time changes: Year (YYYY) → Month (MM-MonthName) → Day (MM-DD-YYYY). The flow checks for each folder and creates it when missing.
On invoice posted, the flow retrieves invoice header data and invoice lines so the output PDF and routing decisions are always tied back to the posted document.
- Zero lines check: if invoice has no meaningful lines, notify and terminate.
- Customer blocked: if blocked, terminate (no send).
- Has email: if missing email, terminate (prevents misroutes).
- Timing control: delay-until logic supports sending at a consistent time (ex: 5PM).
The flow generates the invoice PDF, saves it into the correct Day folder, and prepares it for the manual daily print routine (download folder → merge in PDFsam → one print job).
Accounting opens the SharePoint library, downloads the day folder, merges PDFs in PDFsam, and prints a single merged PDF. Because the storage is standardized, the manual portion is fast and repeatable.