Export PDF invoices from SmartBill to Google Drive
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- SetData (Edit Fields (Set)): sets or maps fields
- Set Default Folder Name (Code): runs custom JavaScript code
- Search Drive Folder (Google Drive): uses Google Drive
- If: checks a condition and branches into true / false
- Set Folder ID (Edit Fields (Set)): sets or maps fields
- Create Drive Folder (Google Drive): uses Google Drive
- Set the loop (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Smartbill get invoice pdf (HTTP Request): calls an HTTP API
- Set mime (Code): runs custom JavaScript code
…plus 2 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.
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Google Drive
n8n-nodes-base.googleDrive - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait
From the author
This workflow automates the retrieval of invoice PDFs from the Smartbill API and saves them to Google Drive in a dynamically created folder based on last month’s date. It also generates a range of invoice numbers, ensuring proper formatting, and uploads each…