Ana içeriğe geç

Tek bir belge oluştur Power Automate

Bu eylemin yaptığı şey

PDF4me Tek Belge Oluştur Word'ü birleştirir, HTML, veya PDF şablon ile JSON veya XML içindeki veriler Power Automate akış ve kişiselleştirilmiş bir sonuç üretir. PDFWord, Excel veya HTML Dosyayı tek bir işlemde tamamlar. Çok adımlı işlemleri ortadan kaldırır. Microsoft 365 Tek bir yapılandırılabilir adımla posta birleştirme akışları. Şablon dosyasını herhangi bir yerden eşleştirin. Microsoft 365 depolama işlemi (SharePoint, OneDriveDataverse Outlook Ekler dahil olmak üzere, verilerinizi dinamik içerikten veya eşlenmiş bir dosyadan sağlayın ve oluşturulanı aktarın. Belge Tarihi Doğrudan Dosya oluştur, E-posta gönder veya herhangi bir sonraki işleme yönlendirir.

İlgili Blog Yazıları(1)

Kimliğinizi Doğrulama API Rica etmek

O PDF4me Konektörü bağlayın. Power Automate geçerli bir belge gerektirir bağlantı elinizde tuttuğunuz PDF4me API Anahtar. Bağlantıyı akış tasarımı sırasında bir kez oluşturun, ardından her PDF4me Kiracınızın bunu yeniden kullanması durumunda gerçekleşecek eylem.

Kaçırmamanız Gereken Önemli Bilgiler

Şablon dosya türü, şablon uzantısıyla eşleşmelidir.
Şablon Dosya Türü açılır menüsü (PDF4me Word Şablonu, PDF4me HTML Şablon, PDF4me PDF Şablon) altında eşleştirilen dosyayla eşleşmelidir. Şablon altında eşleştirilen bir .docx dosyası. HTML Seçilen tür çalışma zamanında başarısız oluyor. Word şablonları, bıyık stili yer tutucular kullanır, örneğin: {{müşteri.adı}}.
Belge Veri Metni veya Belge Veri Dosyası seçeneklerinden birini sağlayın.
Belge Veri Metni satır içi kabul eder JSON veya XML Dinamik içerikten oluşturulmuştur. Belge Veri Dosyası, önceki bir kaynaktan ikili veri dosyası kabul eder. Microsoft 365 Adım. Her akışta ikisinden birini sağlayın, ikisini birden değil.
Belge Verileri, dinamik içerik çıktısıdır.
Oluşturulan dosya şu şekilde görünür: Belge Tarihi Dinamik içerik alanı. Doğrudan aktarın. SharePoint Dosya oluştur, Outlook Ekli dosya içeren bir e-posta gönderin. OneDrive Dosya oluşturun, Dataverse'e yeni bir satır ekleyin veya Teams'e dosya içeren bir mesaj gönderin.
PDF4me Belge Oluşturma Tekli Eylemi, Şablon Dosya Türü PDF4me Word Şablonu, Çıktı Türü PDF ve SharePoint'ten eşlenmiş bir Word şablonu olarak ayarlanmış bir Power Automate akışında yapılandırılmıştır.

Tek bir belge oluşturma eylemi Power Automate Tipik bir Word'den dijitale dönüştürme işlemi için gerekli alanlar şunlardır: Şablon Dosya Türü, Çıktı Türü, Şablon Adı, Şablon, Belge Veri Türü ve Belge Veri Metni (veya Belge Veri Dosyası).PDF koşmak.

Parametreler

Gerekli: Şablon Dosya Türü, Çıktı Türü, Şablon Adı, Şablon, Belge Veri Türü. Şartlı: Belge Veri Metni VEYA Belge Veri Dosyası (ikisinden biri veri yükünü taşımalıdır). İsteğe bağlı: Meta Veri JSON.

ParametreGerekliNe işe yarar?Örnek
Template File TypeYesFormat of the template file. PDF4me Word Template (.docx, mustache template variables, most common), PDF4me HTML Template (.html), or PDF4me PDF Template (.pdf, form field replacement).PDF4me Word Template
Output TypeYesFormat of the generated document. Word (editable .docx), PDF (locked layout, most common), Excel (.xlsx), or HTML.PDF
Template NameYesFilename of the template including extension. Map as dynamic content from the prior step File Name output (SharePoint, OneDrive, Outlook attachments).invoice_template.docx
TemplateYesBinary content of the template file. Map as dynamic content from the prior step File Content output (SharePoint Get file content, OneDrive Get file content, Outlook Get attachments).@triggerOutputs()?['body']
Document Data FileConditionalBinary data file produced by an upstream step. Use when the data lives in a file (SharePoint json file, OneDrive xml file). Required when Document Data Text is not provided.@outputs('Get_data_file')?['body']
Document DataTypeYesFormat of the data payload. Json (most common in Power Automate, maps cleanly from SharePoint columns and Forms) or Xml (for XML-native source systems).Json
Document Data TextConditionalInline data payload built from dynamic content. Use for short JSON or XML built with Power Automate expressions. Required when Document Data File is not provided.{ "Name": "John", "Age": 16, "Birth": "2000-1-1" }
Meta Data JsonNoOptional document properties as a JSON object (title, author, subject, custom fields) for templates that reference metadata at render time. Leave empty for most invoice and contract templates.{"title":"Invoice 2024-100"}

Şablon Dosya Türü seçenekleri

PDF4me Word ŞablonuBıyık yer tutuculu .docx
En esnek seçenek. Yer tutucuları destekler, örneğin: {{müşteri.adı}}Döngüler, koşullu ifadeler, tablolar ve satır içi resimler. Word'de oluşturulan faturalar, sözleşmeler, sertifikalar ve mektuplar için en uygunudur.
PDF4me HTML Şablonu.html dosyasına satır içi CSS eklenmiş
Ekibiniz e-posta veya web şablonlarını yönetirken kullanın. Pazarlama için idealdir. PDFMevcut verilerden oluşturulan marka ve stilize faturalar. HTML.
PDF4me PDF ŞablonuDoldurulabilir PDF form alanı değiştirme
Sabit düzenli doldurulabilir bir alanınız olduğunda kullanın. PDF (Hükümet, düzenleyici veya uyumluluk formu). Bu işlem, belirtilen form alanlarını verilerinizle doldurur ve doldurulmuş formu döndürür. PDF.

Çıktı Türü seçenekleri

PDFPrint-ready locked layout
Standard choice for invoices, contracts, certificates, and statements. Attach to an Outlook email, save to a SharePoint document library, or store in a Dataverse file column.
WordEditable .docx output
Use when recipients need to edit the document (draft contracts going back for review, HR letters requiring a manual signature line).
ExcelSpreadsheet .xlsx output
Use for data-heavy templates such as financial reports. The template must be designed in Excel.
HTMLWeb-ready HTML
Use for emails or web previews. Output is a single HTML file you can embed or send through Outlook.

Çıktı

Bu işlem, dinamik içerikten oluşan bir paket döndürür. Oluşturulan dosya şu konumda saklanır: Belge Tarihiaşağı akıntıya geçmeye hazır Microsoft 365 Eylemler.

AlanTipİçeriğinde neler var?
Doc DataBinaryThe generated document in the format chosen under Output Type. Pass directly into SharePoint Create file, Outlook Send an email with attachment, OneDrive Create file, Dataverse Add a new row, or Teams Post a message.
File NameStringOutput filename based on Template Name with the extension matching Output Type.

Akış örnekleri

Ortak Power Automate akış kalıplarıTypical ways to chain Generate Document Single into a flow.
SharePoint e-posta listesi PDF
  1. SharePoint Faturalar listesinde bir öğe oluşturulduğunda veya değiştirildiğinde tetikleyici çalışır.
  2. SharePoint Dosya içeriğini al seçeneği, Şablonlar kütüphanesinden fatura Word şablonunu yükler.
  3. Liste öğesi sütunlarıyla tek bir birleştirme şablonu içeren belge oluşturun. JSONÇıktı Türü PDF.
  4. Outlook E-postaya belge verilerini ekleyerek müşteriye teşekkür mesajı gönder.
Formlar sertifikaya yanıt veriyor.
  1. Microsoft Forms'da yeni bir yanıt gönderildiğinde, kursun tamamlanması için tetikleyici çalışır.
  2. OneDrive Dosya içeriğini al seçeneği, sertifika Word şablonunu yükler.
  3. Tekli Belge Oluştur seçeneği sertifikayı şu şekilde oluşturur: PDF Form yanıtını kullanarak JSON.
  4. SharePoint Oluşturulan dosya, sertifikayı Sertifikalar belge kitaplığına kaydeder ve Outlook E-posta göndermek, öğrenciye iletir.
Dataverse sözleşmesinin Teams tarafından onaylanması
  1. Dataverse'te, Fırsatlar tablosuna bir satır eklendiğinde, kazanılmış ve kapanmış fırsatlar için tetikleyici devreye girer.
  2. SharePoint Dosya içeriğini al seçeneği, sözleşme şablonunu yükler.
  3. Generate Document Single sözleşmeyi oluşturur. PDF Anlaşma verilerinden.
  4. Ekipler, onay yolları içeren uyarlanabilir kartı gönderir ve belge verilerini imza için yasal sahibine iletir.

Sıkça Sorulan Sorular

What template file types does Generate Document Single accept in Power Automate?+
Three options under Template File Type: PDF4me Word Template (.docx with mustache template variables, most common), PDF4me HTML Template (.html for browser-rendered layouts), and PDF4me PDF Template (.pdf for form field replacement on a fillable PDF). Match the type to the extension of the file mapped under Template.
What output formats can the action produce?+
Output Type supports Word (.docx for editable output), PDF (locked layout, most common for invoices and contracts), Excel (.xlsx for spreadsheet output), and HTML for web embedding. The output format is independent of the template type, so a Word template can produce a PDF and vice versa.
How do I pass JSON data to the template in a flow?+
Set Document DataType to Json, then either paste the JSON object directly into Document Data Text (with dynamic content expressions for SharePoint columns or Forms responses) or map a data file from a previous step into Document Data File. Document Data Text is best for short payloads built inline, Document Data File for larger pre-built data documents.
Where does the generated file appear in dynamic content?+
The output is on the Doc Data dynamic-content field of the action. Pass Doc Data into SharePoint Create file, Outlook Send an email with attachment, OneDrive Create file, Dataverse Add a new row with file column, or Teams Post a message with file. The filename uses Template Name with the extension matching Output Type.
Does this work with Power Automate Desktop or only Power Automate (cloud)?+
The PDF4me Connect connector is a cloud connector available in Power Automate (the web flow designer). For desktop automation, call the same Generate Document Single REST endpoint with the HTTP action.
Can I generate multiple documents in a loop?+
Yes. Wrap Generate Document Single in an Apply to each loop over an array of records (Dataverse rows, SharePoint list items, Forms responses). The action runs once per record and returns one file per iteration. For true multi-record output in a single call use Generate Documents Multiple.
Is Meta Data Json required?+
No. Meta Data Json is optional. Use it when your template references document metadata (title, author, subject) at render time. Leave it empty for most invoice and contract templates.
How is this different from the Make, n8n, or Zapier version?+
All four platforms call the same PDF4me Generate Document Single backend. Power Automate is the Microsoft 365 native option with built-in SharePoint, Outlook, Teams, and Dataverse connectors. Make is the visual scenario builder, n8n is the developer-friendly self-hosted option, Zapier triggers from any of 6,000+ SaaS apps. The template logic and output formats are identical across platforms.

İlgili işlemler

Diğer platformlarda aynı görev

Yardım Alın