Export PDF invoices from SmartBill to Google Drive — n8n ワークフロー
概要
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 PDF with a structured filename.
Overview
Trigger and Data Setup:
The workflow is manually triggered. It sets the invoice range (start and end numbers), invoice series, the parent Google Drive folder ID and the folder where to save the
使用ノード
HTTP RequestGoogle DriveCode
ワークフロープレビュー
⚡
W
When clicking "Execute W…
Smartbill get invoice pdf
S
SetData
Set mime
Set Default Folder Name
Search Drive Folder
I
If exists
Create Drive Folder
Set the loop
L
Loop Over Items
Upload file to Google Dr…
W
Wait a sec
S
Set Folder ID
13 nodes14 edges
仕組み
- 1
トリガー
このワークフローは トリガー トリガーで開始します。
- 2
処理
データは 13 個のノードを流れます, connecting code, googledrive, httprequest。
- 3
出力
ワークフローは自動化を完了し、設定された宛先に結果を配信します。
ノード詳細 (13)
HT#1
HTTP Request
httpRequest
GO#2
Google Drive
googleDrive
CO#3
Code
code
このワークフローのインポート方法
- 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
- 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
- 3ダウンロードした
export-pdf-invoices-from-smartbill-to-google-driveファイルを選択し、インポートをクリックします。 - 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
- 5ワークフローをテスト をクリックして動作確認し、有効化します。
またはn8nの JSONからインポート に直接貼り付け:
{ "name": "Export PDF invoices from SmartBill to Google Drive", "nodes": [...], ...}
インテグレーション
codegoogledrivehttprequestifmanualtriggersetsplitinbatcheswait
作成者
Codez & AI
@codez
タグ
codegoogledrivehttprequestifmanualtriggersetsplitinbatcheswait