メインコンテンツへスキップ

Power Automateでカスタムページ番号にスイスのQRコード付き紙幣を挿入する(PDF4meを使用した4アクションのDropboxフロー)

· 1分で読める
SEO and Content Writer

ほとんどのスイスのQR請求書チュートリアルでは、支払い伝票を 1ページ目 (または末尾に追加してください)。実際の請求書では、多くの場合これが必要です。 中間あたり: 10 ページの契約書パックで QR 請求書が概要の直後にある場合、または四半期明細書で伝票が表紙の後に続く場合。PDF4me Power Automate コネクタは、次の方法で 1 つのアクションでこれを処理します。 ページングオプション = カスタム プラス ページ番号 このフィールドでは、キャンバスに記録された実際の走行を詳しく解説します。 /pdf4metest/sample/10 page.pdf QR請求書が挿入されたスイス準拠ファイルになります。 3ページ目アップロード先 /pdf4meoutput GUIDプレフィックス付きの名前を使用することで、再実行時に名前が衝突しないようにします。 4つのアクション、コード不要、数秒で実行可能。

流れの概要
1. Manually trigger a flow
Manual trigger for testing. Swap for any storage trigger in production.
2. Dropbox Get file content
Reads /pdf4metest/sample/10 page.pdf with Infer Content Type Yes.
3. PDF4me Barcode - Create SwissQR Bill
Output Format Type PNG (try PDF for hybrid). Paging Options custom, Page Number 3. All payment fields filled.
4. Dropbox Create file
Writes to /pdf4meoutput. File Name built from guid() plus headers/FileName so every run lands as a unique file.
要約版

Power Automateのアクションが4つ。手動でトリガーするとフローが開始されます。Dropbox ファイルの内容を取得する 読む /pdf4metest/sample/10ページ.pdf と コンテンツタイプを推測する 「はい」に設定してください。PDF4me バーコード - SwissQRコード付き紙幣を作成 スイス決済規格に準拠したQR請求書ページを添付します。 出力フォーマットタイプ PNG (今回の実行では、 PDF ハイブリッドコンテナの場合、さらに JPEG そして ティフ 利用可能)、 IBAN CH4431999123000889012、 額 5253531、 通貨 CHF、 参照タイプ QRR、 言語 英語、 分離ライン はさみで線を引く債権者 ヴァール・シュナイダーAG (S住所、ビール2501)、最終債務者 ピア=マリア・ルッチマン=シュナイダー (S住所、ビール9400) 参照 210000000003139471430009017さらに、AV1およびAV2の代替スキームパラメータもすべて設定できます。詳細パラメータの項目: ページングオプション カスタム そして ページ番号 3Dropbox ファイルを作成する に手紙を書く /pdf4meoutput と ファイル名 から構築 guid() + ヘッダー/ファイル名 一意性を確保するため。出力:アーカイブフォルダ内にスイス銀行でスキャン可能なファイル。

出力が銀行のスキャンに対応し、かつ正しいページに表示されるかどうかを決定する3つの要素

まず、 IBANはCHまたはLIで始まる必要があります 最大21文字です。QRR参照タイプの場合、IBANは QRコードIBAN、標準IBANではありません。 第二に、参照タイプがQRRの場合、参照は 27桁の数字とmod 10のチェックデジット. もしお持ちでない場合は、 スコア または 非。 三番目、 ページングオプションとページ番号は、出力フォーマットタイプがPDFの場合にのみ適用されます。画像フォーマットタイプ(PNG、JPEG、Tiff)は、出力が複数ページのドキュメントではなく、単独のスリップ画像であるため、両方とも無視します。

現実世界でよくある疑問を解決します​

人々は次のようなフレーズを使って、まさにこの問題を検索しています。

  • Power Automateで、PDFの特定のページにスイスのQRコード付き紙幣を挿入するにはどうすればよいですか? 出力フォーマットタイプを使用する PDFページングオプション custom、および1から始まるページインデックス(このガイドでは3)を使用したページ番号。
  • 「スイスのQRコードをPDFページではなくPNG画像として出力することはできますか?」 はい。出力フォーマットタイプを PNG、 JPEG、 または Tiff そして、このアクションはページングオプションを無視して、伝票のみの独立した画像を返します。
  • 「再実行時に出力ファイル名が重複しないようにするにはどうすればよいですか?」 使用する guid() Dropbox アップロードのファイル名フィールドにある Power Automate 式(オプションで連結) headers/FileName PDF4meの出力から。
  • Power Automateアクションの「詳細パラメーター」には何が入りますか? 4つのフィールド:ページ番号、ページングオプション、ファイルコンテンツ(ソースPDF)、ファイル名。クリック すべて表示 高度なパラメータでそれらを表示します。
  • 「スイスの銀行はPNG形式のQRコード付き紙幣をスキャンできるのか?」 はい。QRコードのエンコードは、PDF出力と画像出力で同一です。PNGは、メール本文やウェブ埋め込みの伝票に最適です。PDFは、請求書と伝票をまとめて送付する場合に適しています。

あなたが構築しているもの​

再利用可能な4つのアクションからなるPower Automateフローで、QRコード付きのスイス銀行スキャン可能な請求書を作成します。 どのページを選んでも同様のフローで、メールに埋め込まれた支払いリマインダーのスタンドアロン画像の場合も処理されます(ソースPDFをスキップし、出力フォーマットタイプをPNG/JPEG/Tiffに切り替えます)。

Power Automate フローキャンバスには、4 つのアクションがあります: フローを手動でトリガーする、Dropbox でファイルコンテンツを取得する、バーコード - SwissQR 請求書を作成する、Dropbox でファイルを作成する。

上から順に4つの動作。手動トリガーにより、フローのテストが容易になります。本番環境では、任意のストレージトリガーと交換可能です。


必要なもの​

  • パワーオートマタ フローが開いているアカウント。 Power Automateを開く。
  • PDF4me APIキー。 APIキーを取得してくださいアクションを初めてドロップする際に、PDF4me Connectコネクタにサインインしてください。
  • Dropbox と /pdf4metest/sample ソースフォルダとして、 /pdf4meoutput 宛先として使用できます。SharePoint、OneDrive、Dataverseなど、どのストレージでも同じようにマッピングできます。
  • 請求書のPDFファイル。 10ページのサンプルをダウンロードしてください スクリーンショットを参考に、手順を正確に追ってください。
  • スイスの決済データ: CH または LI IBAN (最大 21 文字)、金額、通貨 (CHF または ユーロ)債権者と最終債務者の氏名/住所ブロック。 アクションドキュメント。

クイックリファレンス:出力結果を決定する4つのフィールド​

Output Format Type
PDF (hybrid), PNG, JPEG, or Tiff. Picks the container of the populated output.
Paging Options
first, last, add at end, or custom. PDF Output Format Type only.
Page Number
1-based page index. Required when Paging Options is custom; ignored otherwise. Set to 3 in this run.
File Content + File Name
The source PDF, mapped from a previous action. Skip both for a standalone QR-slip from payment data alone.

流れを作る​

アクション1:フローを手動でトリガーする​

テスト用の手動トリガー。本番環境では、 Dropbox ファイルが作成されたとき、 SharePoint ファイルが作成されたとき、 OneDrive ファイルが作成されたとき、 Outlook 新しいメールが届いたとき、 再発、 または ウェブフック ARパイプラインによって異なります。

アクション2:Dropbox - ファイルコンテンツを取得する​

入力フォルダから元の請求書を取得してください。

分野この実行で使用された値
File/pdf4metest/sample/10 page.pdf
Infer Content TypeYes
Power Automate Dropbox のファイルコンテンツ取得アクションで、ファイル /pdf4metest/sample/10 page.pdf と詳細パラメーター Infer Content Type Yes を指定します。

アクション3:PDF4meバーコード - SwissQR請求書の作成​

実際に作業を行うアクション。検索 PDF4me アクションピッカーで選択 バーコード - SwissQRコード付き紙幣を作成アクションにはメインパネルに支払いフィールドがあり、その下に4つのフィールドがあります。 詳細パラメータ (ページングオプション、ページ番号、ファイルの内容、ファイル名)設定:

グループ分野価値
OutputOutput Format TypePNG
PaymentIBANCH4431999123000889012
PaymentAmount5253531
PaymentCurrencyCHF
PaymentReference TypeQRR
PaymentLanguage TypeEnglish
PaymentSeperator LineLineWithScissor
CreditorCreditor NameVar Schneider AG
CreditorCreditor Address TypeS
CreditorCreditor: Address Line 1Var Schneider AG
CreditorCreditor: Address Line 223
CreditorCreditor PostalCode2501
CreditorCreditor Citybiel
DebtorUltimate Debtor NamePia-Maria Rutschmann-Schnyder
DebtorUltimate Debtor AddressTypeS
DebtorUltimate Debtor: Address Line 1Grosse Marktgasse
DebtorUltimate Debtor: Address Line 233
DebtorUltimate Debtor PostalCode9400
DebtorUltimate Debtor Citybiel
Ref/MsgReference210000000003139471430009017
Ref/MsgUnstructured MessageInstruction of 15.09.2019
Ref/MsgBilling InfoS1/01/20170309/11/10201409/20/14000000/22/36958/30/CH106017086/40/1020/41/3010
Ref/MsgAV1 ParametersName AV1: UV;UltraPay005;12345
Ref/MsgAv2 ParametersName AV2: XY;XYService;54321
AdvancedPaging Optionscustom
AdvancedPage Number3
AdvancedFile ContentFile Content (from Action 2)
AdvancedFile Nameabc.pdf

アクション4:Dropbox - ファイルの作成​

再実行時にファイル名が重複しないように、データが格納されたファイルを一意のGUID接頭辞付きの名前で保存してください。

分野この実行で使用された値
Folder Path/pdf4meoutput
File Nameguid() + headers/FileName (concat expression for a unique-per-run name)
File ContentFile Content (from Action 3 dynamic content)
Power Automate Dropbox の「ファイルの作成」アクション。フォルダー パスは /pdf4meoutput、ファイル名は guid() と headers/FileName 式から構築され、ファイル コンテンツは PDF4me の「SwissQR 請求書の作成」アクションからの動的コンテンツです。

の guid() ファイル名の式は、実行ごとに一意の名前を保証します。連結 ヘッダー/ファイル名 PDF4meの出力では、新しいファイル名の中に元の請求書名が保持されます。

保存してクリック テストスイス銀行がスキャン可能なファイルは /pdf4meoutput。


4つの出力フォーマットタイプを並べて表示します。​

PDF
Hybrid output: QR-bill page inserted into your source invoice. Most common for outgoing AR. Uses Paging Options + Page Number.
PNG
Standalone raster image of the QR-bill slip. Best for inline email embeds and web previews. Ignores Paging Options.
JPEG
Compressed raster image. Smaller file size than PNG. Still bank-scannable.
Tiff
Lossless raster archive format. Use when the recipient needs print-grade quality.

トラブルシューティング​

QR-bill landed on the wrong page
Check Paging Options. custom uses Page Number. first puts the slip as the new page 1. last appends at the end. Only applies when Output Format Type is PDF.
Page Number is greyed out / ignored
Paging Options is something other than custom. Switch Paging Options to custom and the Page Number field becomes active.
QR-bill page is blank or unreadable
IBAN is invalid (must start with CH or LI, max 21 chars) or Currency is something other than CHF / EUR. Both are hard requirements of the Swiss Payment Standards.
Bank rejects a QRR reference
QRR references must be 27 digits with a mod-10 check digit. If you do not have one, switch Reference Type to SCOR (ISO 11649) or NON and leave Reference empty.
Create file writes an empty file
File Content on Action 4 is not bound to the PDF4me File Content output. Click the field and re-pick the dynamic content from Action 3.
Want a standalone QR slip without a source invoice
Skip Action 2 (Get file content). On Action 3, leave File Content and File Name empty under Advanced parameters and the action returns a standalone Swiss QR-bill in the chosen Output Format Type.

このパターンはいつ使用するのか​

Slip on a specific mid-document page
Quarterly statement where the QR-bill belongs right after the cover page. Contract pack with the slip after the summary.
Inline email PNG payment reminders
Output Format Type PNG, skip the source PDF, embed the slip image directly in an Outlook Send email body.
High-volume AR archival
guid()-prefixed Dropbox upload makes every run uniquely addressable for downstream search and audit.
Subscription billing
QR-IBAN plus QRR Reference identifies the customer or contract every recurring run.

次に読むべきもの​


よくある質問​

How do I insert the Swiss QR-bill on a specific page in Power Automate?+
Click Show all on Advanced parameters in the PDF4me Barcode - Create SwissQR Bill action. Set Paging Options to custom, then set Page Number to the 1-based page index where the QR-bill should land (3 in this guide). Output Format Type must be PDF for Paging Options to take effect.
What is the difference between Paging Options values first, last, add at end, and custom?+
first inserts the QR-bill as the new page 1 (everything else shifts down by one). last appends at the very end of the source PDF. add at end is a functional alias for last. custom uses the Page Number field to insert at a specific 1-based position.
Why does the QR-bill not move when I change Paging Options?+
Output Format Type is set to PNG, JPEG, or Tiff. Image formats ignore Paging Options because the output is a standalone slip image, not a multi-page document. Switch Output Format Type to PDF.
Can I generate a Swiss QR-bill image (PNG) without a source invoice?+
Yes. Set Output Format Type to PNG (or JPEG / Tiff). Skip the File Content and File Name fields under Advanced parameters. The action returns a standalone QR-bill image you can embed inline in an Outlook email or display on a web page.
Why use guid() in the Dropbox Create file File Name?+
It guarantees every run lands as a unique file in /pdf4meoutput so re-runs do not silently overwrite previous outputs. Concatenating headers/FileName from the PDF4me output keeps the original invoice name inside the new filename for traceability.
My IBAN starts with DE / FR / IT, can I still use this?+
No. Swiss QR-bills are scoped to CH and LI IBANs only. For European SEPA payments with non-Swiss IBANs use the Generate EPC QR Code for SEPA action instead.
Address Type S vs K, which one should I pick?+
S (Structured) is the modern default and the recommended choice for new integrations. PostalCode and City go in separate fields; Address Line 1 / 2 carries the street. K (Combined) puts the full address into two free-text Address Line fields and leaves PostalCode and City empty.
Same flow in Make, Zapier, or n8n?+
Yes. The same PDF4me Create Swiss QR Bill action is available on all four platforms with identical parameters. See the cross-platform comparison at the bottom of the action reference page.

さあ始めましょう​