Update project controlling Excel from Promato hours with Outlook and OneDrive
Ready for 3.0What this workflow does
This workflow has 40 nodes and runs on Microsoft Outlook events. Along the way it connects Microsoft Outlook and Microsoft SQL.
How it runs
Trigger: On Microsoft Outlook events.
- Identify template and project (Code): runs custom JavaScript code
- Project recognized? (If): checks a condition and branches into true / false
- Find project in Promato (Microsoft SQL): run a query
- Build error text (Code): runs custom JavaScript code
- Resolve project and build query (Code): runs custom JavaScript code
- Send error email (Microsoft Outlook): uses Microsoft Outlook
- Project unambiguous? (If): checks a condition and branches into true / false
- Mark email as read (Microsoft Outlook): update
- Promato: actual hours (Microsoft SQL): run a query
- Delete temp file in OneDrive (HTTP Request): calls an HTTP API (DELETE)
…plus 29 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Microsoft Outlook
n8n-nodes-base.microsoftOutlook - Microsoft Outlook Trigger
n8n-nodes-base.microsoftOutlookTrigger - Microsoft SQL
n8n-nodes-base.microsoftSql
From the author
Quick overview This workflow monitors an Outlook inbox for project controlling Excel templates, pulls booked hours for the reporting month from a Promato SQL Server database, updates the template in OneDrive with actual person-days and cumulative values, and…