A consumables stock ledger that bridges the corporate divide. By connecting locked-down Microsoft 365 services (Active Directory user sync and Outlook email reminders via Power Automate) with a highly flexible n8n automation engine running externally, the system establishes a secure, reliable data bridge that keeps inventory accurate, audit-logged, and completely automated.

The challenge
In a large company, IT department consumables (cables, spare parts, and small hardware) fell outside the main warehouse system. Updating anything there meant going through a long request chain, days for a change that should take minutes. IT tickets move fast; the stock records never kept up.
The solution
In an enterprise environment, Active Directory and corporate Outlook are heavily restricted, preventing direct access from external tools. Rather than attempting a complex, high-friction direct API integration, I built a reliable hybrid bridge. n8n acts as the central execution engine (processing and validating transactions, and managing the database ledger), while Power Automate handles the Microsoft-native actions (pulling employees from Active Directory and triggering nudge emails via Outlook). Communicating strictly via structured webhook contracts, this cooperation creates a reliable, zero-maintenance data pipeline that respects corporate IT boundaries.
The impact
Because every change is logged automatically instead of relying on someone remembering to update a cell, physical audits now reconcile against a real transaction trail instead of a static number. A mismatch gets flagged as a variance row, not silently overwritten, so follow-up on a stock issue happens the same day instead of waiting for the next manual recount. And because a small poller now watches every item handed out, the internal paperwork it requires no longer depends on someone remembering to file it.
How it runs
A user picks an action from the sheet's custom menu (stock in, stock out, new item, audit) never types into a cell.
The dialog posts a JSON payload to n8n, tagged with which action it is and which location it applies to.
n8n re-checks everything the dialog already checked, the secret, the SKU, the quantity, because a payload could always be sent straight to the webhook, bypassing the dialog entirely.
The transaction is appended to the ledger. Stock is never edited directly, it's recomputed as the sum of everything AKTIF for that item at that location.
The change lands in the change log; if it was a stock-out, a separate poller later confirms the required paperwork followed, and reminds the recipient automatically if it hasn't.
What it does
Technical stack
How it fits together
The sheet is only the face, where every write passes through n8n before it lands, and two Microsoft-side jobs feed it fresh people-data and nudge stragglers. No sensitive details, just the wiring.
Who this fits for
Screens
Questions & comments
Interested, or want to ask how something works? Leave a public comment.
Comments are public. Links are shown as plain text, not clickable.
Loading comments…