Lewati ke konten utama

Google Docs templat di Power Automate

Yang Google Docs keluarga adalah sebuah Power Automate Opsi Hasilkan Dokumen Tunggal yang menggunakan templat yang dirancang di Google Docs dan diekspor sebagai .docxPetakan file tersebut ke Generate Document Single, lalu gabungkan dengan file Anda. JSON atau XML data, dan dapatkan yang dipersonalisasi PDF atau Word kembalikan file. Pilih ini saat tim Anda membuat templat di Google Docs daripada Microsoft Word.

Postingan Blog Terkait
Belum ada postingan blog untuk fitur ini — akan segera hadir.
Sementara itu, jelajahi blog PDF4me untuk menemukan tutorial dan alur kerja di berbagai platform.
Kunjungi blog ini

Sebelum Anda Mulai

Google Docs diekspor sebagai .docx
Rancang templat tersebut di Google Docs, tambahkan placeholder, lalu unduh sebagai Microsoft Word (.docx). Sampel templat google-docs.docx sudah diekspor dan siap.
File data yang cocok
Menggunakan google-docs-data.json (direkomendasikan), test.xml, atau test.csvNama-nama placeholder dalam template sesuai dengan kunci data.
PDF4me koneksi di Power Automate
Buat PDF4me koneksi di Power Automate dan tempelkan milik Anda API kunci. Kunci yang sama berfungsi di setiap PDF4me tindakan pada penyewa Anda.

Paket File Sampel

Unduh file di bawah ini. Satu Google Docs templat ditambah data yang cocok di JSON, XML, Dan CSVPetakan .docx dari SharePoint, OneDrive, atau Dropbox ke dalam Hasilkan Dokumen Tunggal.

PDF4me Hasilkan Dokumen Word Tindakan Tunggal di Power Automate dengan Tipe File Templat diatur ke Docx, Nama File Templat linq-template.docx, Data File Templat dipetakan dari Konten File Dropbox, Tipe Data Dokumen Json, dan Teks Data Dokumen yang berisi contoh JSON.

Konfigurasi target untuk sebuah Google Docs ekspor: petakan .docx di bawah Data File Templat, mengatur Jenis File Templat ke Docx, dan tempel JSON ke dalam Document Data Teks.

Apakah yang Google Docs templat di Power Automate?

Yang Google Docs keluarga memungkinkan Anda membuat templat di Google Docs, ekspor sebagai .docx, dan menggabungkannya dengan data di dalam Power Automate alur. Karena file yang diekspor adalah .docx, itu mengalir melalui Word mesin templat dan mendukung placeholder bergaya kumis seperti {{nama}}Ini adalah pilihan paling sederhana untuk tim yang lebih suka Google Workspace lebih Microsoft Word untuk desain templat.

Bagaimana cara mengkonfigurasinya? Google Docs templat di Power Automate?

Atur kolom tindakan seperti di bawah ini. Hasilkan Dokumen Tunggal memetakan yang diekspor .docx dari langkah Dapatkan file sebelumnya. Untuk templat yang sudah tersimpan di Anda PDF4me akun, gunakan Buat Dokumen Menggunakan Templat alih-alih.

ParameterDiperlukanApa fungsinya?Contoh
ConnectionRequiredPDF4me connection for the flow. Create one with your API key, then reuse it across every PDF4me action.My PDF4me connection
Template File TypeRequiredFormat of the template file. A Google Docs export is a .docx, so choose PDF4me Word Template (Docx).PDF4me Word Template
Output TypeRequiredFormat of the generated document. PDF for a locked layout, or Word for an editable .docx.PDF
Template NameRequiredFilename of the exported template including the .docx extension. Map from the prior Get file step.google-docs-template.docx
TemplateRequiredBinary content of the Google Docs export. Map File Content from SharePoint, OneDrive, or Dropbox Get file content.File Content
Document DataTypeRequiredFormat of the data payload. Json maps cleanly from SharePoint columns and Forms. Xml is for XML source systems.Json
Document Data TextConditionalInline data payload built from dynamic content. Required when Document Data File is empty.[{ "name": "Alice Johnson" }]
Document Data FileConditionalA JSON or XML data file mapped from a prior step. Required when Document Data Text is empty.1. Data
Meta Data JsonOptionalDocument metadata for fields in JSON format. Leave empty for most certificate and letter templates.{"title":"Certificate"}

Data sampel di bawah ini sesuai dengan tempat penampung di google-docs-template.docxTempelkan ke dalam Document Data Teks, atau unggah sebagai file ke Document Data Berkas.

[
{
"name": "Alice Johnson",
"course": "Intro to Automation",
"date": "2026-03-10",
"instructor": "Mr. Smith"
}
]

Keluaran

Aksi ini mengembalikan dokumen yang dihasilkan sebagai konten dinamis. Petakan ke langkah selanjutnya yang menerima konten file.

BidangJenisIsi di dalamnya
Doc DataBinaryThe merged document produced from the Google Docs export and your data. Map it into File Content of Create file (Dropbox, OneDrive, SharePoint) or into an Outlook attachment.
File NameStringOutput filename derived from Template Name. Combine it with an expression such as guid() when you want unique filenames per run.
Aksi Buat berkas Dropbox di Power Automate dengan Jalur Folder diatur ke pdf4meoutput, Nama Berkas dibuat dari guid() ditambah dokumen yang dihasilkan, dan Konten Berkas dipetakan ke dokumen yang dihasilkan.

Menyimpan hasilnya: petakan dokumen yang dihasilkan ke dalam File Content, dan gunakan guid() di dalam File Name untuk nama keluaran yang unik.

Pola produksi

Pola Power Automate umum untuk templat Google DocsReplace the manual test with these once the sample works.
Formulir tanggapan terhadap sertifikat
  1. Microsoft Formulir akan aktif ketika respons baru dikirimkan.
  2. Hasilkan Dokumen Tunggal memetakan Google Docs sertifikat .docx dari Mendapatkan isi file.
  3. Kolom respons diteruskan sebagai JSON di dalam Document Data Teks.
  4. Membuat file menyimpan sertifikat dan Outlook Mengirim email akan mengirimkannya.
SharePoint daftar ke PDF tersimpan
  1. SharePoint Saat sebuah item dibuat, pemicu akan aktif pada sebuah daftar.
  2. Generate Document Single menggabungkan kolom-kolom daftar ke dalam templat.
  3. Dokumen yang dihasilkan dikembalikan sebagai konten dinamis.
  4. SharePoint Membuat berkas akan menyimpannya di pustaka dokumen.
Tes manual untuk Dropbox
  1. Memicu alur secara manual akan memulai eksekusi.
  2. Hasilkan Dokumen Peta Tunggal google-docs-template.docx dengan inline JSON.
  3. Membuat file akan menulis ke /pdf4meoutput dengan nama file guid().
  4. Setelah diverifikasi, gantilah pemicu manual dengan pemicu asli.

Pertanyaan yang Sering Diajukan

How do I prepare a Google Docs template for Power Automate?+
Design the document in Google Docs, add placeholders, then use File, Download, Microsoft Word (.docx). Map that file into Generate Document Single from SharePoint, OneDrive, or Dropbox. If the template is already saved in your PDF4me account, use Generate Document Using Template instead.
Which Template File Type do I select for a Google Docs export?+
Set Template File Type to PDF4me Word Template. A Google Docs export is a .docx, so it merges through the Word template engine. Set Output Type to PDF or Word.
Can the action output PDF or Word from a Google Docs template?+
Yes. Set Output Type to PDF or Word on Generate Document Single. The exported Google Docs file is a .docx, so either output format is valid.
What data formats can I use with the Google Docs template?+
Set Document DataType to Json or Xml. Document Data Text takes an inline payload built from dynamic content, and Document Data File takes an uploaded JSON or XML file. The sample pack includes google-docs-data.json, test.xml, and test.csv.
Where does the generated file go in a Power Automate flow?+
The action returns Doc Data as dynamic content. Map it into a downstream step such as Create file (Dropbox, OneDrive, SharePoint) or Outlook Send an email with attachment. Use guid() in the File Name to keep each output unique.

Panduan Terkait

Untuk mesin templat yang mendasarinya, lihat Aspose Words untuk .NET dokumentasi dan Power Automate referensi ekspresi.