Lewati ke konten utama

Uraikan Dokumen di Power Automate

Apa yang dilakukan oleh tindakan ini?

PDF4me Uraikan Dokumen menjalankan templat parse yang Anda simpan terhadap PDF di dalam Power Automate mengalir dan mengembalikan ID Jejak ditambah data bidang yang diekstrak siap digunakan sebagai konten dinamis. Isi File Pipa dari SharePoint, Outlook, OneDrive, atau Dataverse, rujuk templat tersebut dengan Nama Templat (TemplateId), dan mengarahkan nilai-nilai yang telah diurai langsung ke dalam sebuah SharePoint pembaruan daftar, pembuatan baris Dataverse, sebuah Outlook Email, atau notifikasi Teams. Satu tindakan, satu templat, setiap saat. Microsoft 365 alur kerja.

Postingan Blog Terkait(1)

Sebelum Anda menjalankan tindakan ini: buat templat parse di PDF4me Dasbor. Tentukan kunci tangkapan Anda dan pilih Ekspresi Regex untuk pola yang stabil atau JavaScript Ekspresi untuk logika kondisional. Itu Power Automate referensi tindakan yang templat oleh ID Templat. Melihat Siapkan Informasi Penguraian untuk Dokumen Untuk pengaturan lengkap, contoh Regex (INV-\d{6,10}, \d{2}/\d{2}/\d{4}), dan dua pekerja JavaScript Contoh pengklasifikasi ekspresi.

Memverifikasi Identitas Anda API Meminta

Yang PDF4me Hubungkan konektor di Power Automate memerlukan validitas Koneksi memegangmu PDF4me API kunci. Buat koneksi sekali saat pembuatan alur, lalu setiap PDF4me Tindakan di penyewa Anda menggunakannya kembali.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Nama Templat menerima GUID TemplateId.
Tempelkan GUID TemplateId dari dasbor, bukan nama templat yang mudah dibaca manusia. GUID ini stabil meskipun namanya diubah dan merupakan nilai produksi yang aman.
Ekspresi reguler untuk pola stabil, JavaScript untuk logika kondisional
Aturan pengambilan data terdapat dalam templat. Gunakan Ekspresi Regex untuk nomor faktur, tanggal, dan jumlah. Gunakan JavaScript Ekspresi dengan teks Variabel untuk klasifikasi dan aturan cadangan, kemudian rutekan berdasarkan variabel tersebut dengan Kondisi atau Peralihan.
Warga asli Microsoft 365 sumber
Konten berkas dipetakan dengan rapi dari SharePoint Dapatkan isi file, Outlook Dapatkan lampiran, OneDrive Dapatkan konten file, dan unduh file Dataverse. TemplateId yang sama berfungsi dari Make, n8n, Zapier, dan langsung REST.
Tindakan Mengurai Dokumen di Power Automate

Parameter

ParameterDiperlukanApa fungsinya?Contoh
File ContentYesBinary PDF as dynamic content from a prior Microsoft 365 action: SharePoint Get file content, Outlook Get attachments, OneDrive Get file content, Dataverse Download file. Must be a valid PDF.@triggerOutputs()?['body']
File NameYesSource filename including .pdf extension. Usually mapped as dynamic content from the same upstream action File Name output.Invoice_12345.pdf
Template NameYesTemplateId GUID from the PDF4me dashboard. Identifies which parse template (capture keys + extraction rules) the action should apply.12345678-1234-1234-1234-123456789abc

Jenis ekspresi dalam templat parse Anda

Ekspresi RegexPola yang stabil
Nomor faktur (INV-\d{6,10}), tanggal (\d{2}/\d{2}/\d{4}), jumlah ($?\d{1,3}(?:,\d{3})*(?:.\d{2})?). Sekitar 80% kunci pengambilan produksi.
JavaScript EkspresiLogika kondisional dan pengklasifikasi
Teks area tangkapan diteruskan sebagai teks; mengembalikan string. Klasifikasi multi-marker, aturan cadangan, normalisasi tanggal. Lihat Siapkan Informasi Penguraian untuk Dokumen untuk dua sampel kerja.

Keluaran

Aksi ini mengembalikan ID Jejak ditambah data bidang yang diuraikan sebagai konten dinamis yang tersedia untuk setiap aksi selanjutnya.

BidangJenisIsi di dalamnya
Trace-IdStringUnique identifier for the parse operation. Log it to a SharePoint list or Dataverse table for audit and troubleshooting.
Parsed fieldsObjectOne dynamic-content field per capture key in your template (invoiceNumber, totalAmount, invoiceDate, etc). Reference them directly in any downstream action.

Contoh alur

Pola alur Common Power AutomateTypical ways to chain Parse Document into a Power Automate flow.
Outlook faktur ke Dataverse
  1. Outlook Saat email baru tiba, pemicu akan aktif di kotak masuk/AP.
  2. Terapkan pada setiap filter lampiran PDFs hanya.
  3. Parse Document menjalankan templat Faktur terhadap lampiran.
  4. Dataverse menambahkan baris baru akan menulis invoiceNumber, totalAmount, vendorName ke dalam tabel Invoices.
  5. Teams: Kirim pesan di obrolan atau saluran untuk memberi tahu tim AP.
SharePoint perpustakaan untuk memperbarui daftar
  1. SharePoint Saat sebuah file dibuat di dalam folder, pemicu akan aktif di /Documents/Invoices.
  2. SharePoint Mendapatkan konten file memuat PDF biner.
  3. Parse Document mengekstrak kolom-kolom faktur.
  4. SharePoint Pembaruan item menulis kembali nilai yang telah diuraikan ke metadata item yang sama.
Alur klasifikasi dan perutean
  1. Pengiriman melalui Formulir atau Power Apps memberikan PDF.
  2. Parse Document menjalankan template dengan sebuah JavaScript Ekspresi kunci yang mengembalikan tipe dokumen.
  3. Alihkan rute tindakan pada kolom tipe (faktur / pesanan / kontrak).
  4. Setiap cabang mengirimkan nilai yang telah diuraikan ke tujuan yang tepat (Dynamics, SharePoint, Outlook persetujuan).

Pertanyaan yang Sering Diajukan

What goes in the Template Name field?+
Paste the TemplateId GUID from the PDF4me dashboard. Despite the field label, the GUID is the safer production value. It is stable across renames and identical to the value used by the REST API and the other platform connectors.
Where does File Content come from?+
Any Microsoft 365 action that returns a binary file: SharePoint Get file content, Outlook Get attachments, OneDrive Get file content, Dataverse Download file. Reference both File Content and File Name as dynamic content from that step.
What is Trace ID used for?+
Trace ID is a unique identifier for the parse operation. Log it to a SharePoint list or Dataverse table to maintain an audit trail. Reference it in error notifications so support staff can find the operation in PDF4me logs.
Can I classify documents at parse time using JavaScript?+
Yes. Inside the template add a JavaScript Expression on a capture key. The capture area text is passed as the variable text and your function returns a string. Use it for invoice vs order classification, then route on it with a Power Automate Switch or Condition action.
How do I write the parsed values back to the source SharePoint item?+
In SharePoint, the trigger When a file is created or modified gives you the item ID. Pass the file binary to Parse Document, then use SharePoint Update item with the same ID to write each parsed key (invoiceNumber, totalAmount, etc) into the column with the matching name.
Does it work with Power Automate Desktop or only with 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 Parse Document REST endpoint with the HTTP action.

Tindakan terkait

Tugas yang sama di platform lain

Dapatkan Bantuan