Lewati ke konten utama

Perbarui Baris di Excel di dalam Power Automate

PDF4me Excel - Perbarui Baris adalah sebuah Power Automate Tindakan yang memodifikasi sel yang sudah ada di dalam buku kerja secara langsung, mencocokkan JSON Nama properti ke header kolom. Gunakan ini untuk menyinkronkan perubahan basis data, menyegarkan CRM catatan, atau memperbarui kolom status di dalam Excel membuat laporan tanpa menyisipkan atau menghapus baris apa pun.

Apa yang dilakukan oleh tindakan ini?

PDF4me Excel - Perbarui Baris menulis sebuah JSON Menyusun array objek ke dalam baris yang sudah ada, dimulai dari Baris Awal, mencocokkan setiap nama properti dengan header kolom. Konversi Numerik dan Tanggal, Format Tanggal, Format Numerik, dan Nama Budaya mengontrol bagaimana nilai diketik dan diformat. Fungsi ini tidak pernah menyisipkan atau menghapus baris, hanya sel yang cocok yang berubah.

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

Bagaimana Cara Saya Mengautentikasi Saya? Power Automate Mengalir?

Setiap PDF4me tindakan dalam Power Automate Membutuhkan koneksi yang valid. Buat atau pilih koneksi yang sesuai dengan kebutuhan Anda. PDF4me API kunci agar alur dapat melakukan autentikasi Excel permintaan pembaruan baris secara aman.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Ini memperbarui baris, bukan menyisipkan baris baru.
Objek dalam JSON Update Data diterapkan secara berurutan ke baris yang sudah ada, dimulai dari Baris Awal. Tidak ada pencarian berdasarkan kunci, gunakan Tambah Baris terlebih dahulu jika baris tersebut belum ada.
Kolom data diberi label JSON Perbarui Data
Itu harus selalu menjadi JSON array, bahkan untuk satu baris saja. Objek polos tanpa tanda kurung array akan menghasilkan kesalahan "JsonData must be an array".
Konversi tipe memerlukan tombol aktif.
Format Tanggal, Format Numerik, dan Nama Budaya hanya berlaku jika Konversi Numerik dan Tanggal diaktifkan. Jika tidak diaktifkan, setiap nilai akan ditulis sebagai teks biasa.
Power Automate PDF4me Excel - Tindakan Perbarui Baris dikonfigurasi dengan Konten File, Nama File, Nama Lembar Kerja Sheet1, Data Pembaruan JSON, Mulai Baris 20, Mulai Kolom 1, dan parameter Lanjutan yang menunjukkan Konversi Numerik dan Tanggal Ya, Format Tanggal yyyy-MM-dd, dan Format Numerik N2

Petakan Isi File dan Nama File, atur JSON Perbarui Data dan Baris Awal, lalu perluas Parameter Lanjutan untuk konversi tipe dan pemformatan.

Parameter

Diperlukan: Isi File, Nama File, dan JSON Data pembaruan harus selalu diberikan. JSON Pembaruan Data harus berupa JSON array, objek kosong akan ditolak.

ParameterDiperlukanApa fungsinya?Contoh
File ContentRequiredBase64 content of the source Excel workbook, mapped from SharePoint, OneDrive, or another prior action.[File Content from Get File]
File NameRequiredExcel filename including extension (.xlsx or .xls), used for processing and output identification.data.xlsx
JSON Update DataRequiredJSON array of objects to update. Each object updates one row sequentially starting at Start Row. Must be an array, a bare single object is rejected.[{"Name":"John","Age":31}]
Worksheet NameOptionalName of the worksheet to update. Defaults to the first worksheet if left blank.Sheet1
Start RowOptional1-based row number to start updating. Default 1, typically set to 2 or higher to skip a header row.2
Start ColumnOptional1-based column offset for header matching. Default 1 (column A).1
Convert Numeric And DateOptionalEnables automatic conversion of JSON numbers to Excel numeric values and date-like strings to Excel dates. Default true.true
Date FormatOptionalExcel date format applied when Convert Numeric And Date is enabled. Default yyyy-MM-dd.MM/dd/yyyy
Numeric FormatOptionalExcel numeric format applied when Convert Numeric And Date is enabled. Default N2.#,##0.00
Ignore Null ValuesOptionalSkips updating a cell for any JSON property that is null when enabled. Default false, which writes nulls as empty cells.false
Ignore Attribute TitlesOptionalMakes JSON property name matching case-insensitive against column headers when enabled. Default false.true
Culture NameOptionalCulture code used to parse incoming date and number strings before conversion. Default empty (system default).en-US

Bidang Keluaran

BidangJenisIsi di dalamnya
documentBase64The Excel workbook with the matched rows updated.
SuccessBooleantrue if the update completed, false if the action failed.
ErrorMessageStringError description, null when Success is true.
ErrorsArrayDetailed error objects with Code and Message, empty when Success is true.

Apa Arti Pesan Kesalahan Umum Tersebut?

Pesan KesalahanMenyebabkanLarutan
Request is emptyThe request object is null.Provide a valid request object.
Document is emptyFile Content is null or empty.Map a valid Excel document into File Content.
Invalid worksheet selectionThe named worksheet does not exist.Use an existing worksheet name or leave it blank for the first sheet.
No headers found in worksheetThe target row (or Start Row minus one) has no headers.Ensure the header row exists directly above the rows you are updating.
JsonData must be an arrayA bare single object was provided instead of an array.Wrap the object in array brackets, for example [{"Name":"John"}].

Bagaimana Cara Mengatur Pembaruan Baris di Power Automate?

  1. Menambahkan PDF4meExcel - Perbarui Baris untuk Anda Power Automate mengalir.
  2. Peta Isi File Dan Nama File dari tindakan sebelumnya (SharePoint, OneDrive, atau konektor basis data).
  3. Mengatur Pembaruan Data JSON ke sebuah JSON Deretan objek, satu per baris untuk diperbarui.
  4. Mengatur Baris Awal ke baris pertama yang akan diperbarui (lewati baris header) dan Kolom Awal untuk offset header.
  5. Memperluas Parameter lanjutan untuk memungkinkan Konversi Angka dan Tanggal dan atur formatnya. Jalankan alur kerja, buku kerja yang diperbarui akan kembali sebagai berikut. dokumen.

Pengaturan Umum

Contoh Alur KerjaCommon Power Automate flow patterns using Update Rows.
Sinkronisasi inventaris harian
  1. Pemicu terjadwal akan melakukan kueri ke basis data untuk mendapatkan informasi terbaru tentang tingkat stok.
  2. Hasilnya dikonversi menjadi sebuah JSON larik yang sesuai dengan judul kolom lembar inventaris.
  3. Mendapatkan konten file mengambil buku kerja inventaris utama dari SharePoint.
  4. Update Rows menerapkan array mulai dari Baris Awal 2, dengan Konversi Angka dan Tanggal diaktifkan untuk penghitungan stok berupa bilangan bulat.
  5. Buku kerja inventaris yang diperbarui disimpan kembali ke SharePoint.
Pembaruan status pesanan
  1. Suatu alur dipicu ketika status pesanan berubah dalam sistem manajemen pesanan.
  2. Skenario tersebut membangun sebuah JSON array dengan kolom status yang diperbarui untuk baris yang terpengaruh.
  3. Mengambil isi file akan menampilkan log pelacakan pesanan.
  4. Update Rows menerapkan perubahan dengan opsi Abaikan Nilai Null diaktifkan, sehingga kolom pesanan lainnya tetap tidak berubah.
  5. Log yang diperbarui disimpan kembali ke SharePoint.
Pembaruan kontak CRM
  1. Pertanyaan pemicu mingguan Dynamics 365 untuk kontak yang diubah dalam 7 hari terakhir.
  2. Rekaman tersebut dikonversi menjadi sebuah JSON array dengan kolom kontak dan tanggal modifikasi terakhir.
  3. Update Rows menerapkan perubahan dengan opsi Abaikan Judul Atribut diaktifkan untuk pencocokan header yang tidak peka terhadap huruf besar/kecil.
  4. Daftar kontak yang diperbarui diarsipkan dengan cap waktu.

Tips Praktis

This is not a lookup-and-match update
Rows are updated sequentially from Start Row, there is no key column matching. Sort or filter your JSON array to match the row order in the workbook before calling this action.
JSON Update Data must be an array, always
Even a single-row update needs array brackets: [{"Name":"John"}], not {"Name":"John"}. Omitting the brackets returns a JsonData must be an array error.
Start Row usually skips the header
Row 1 typically holds column headers, so most flows set Start Row to 2 or higher to begin updating actual data rows.
Culture Name affects parsing, not just display
Set Culture Name to match how your source data formats dates and decimals (for example de-DE for comma decimals), otherwise conversion can misread values.
Ignore Attribute Titles solves case-mismatch headaches
If your JSON property names differ in case from the Excel column headers, enable Ignore Attribute Titles instead of renaming every header or every JSON key.

Lembar Panduan Singkat

BidangNilai
ActionExcel - Update Rows
Required fieldsFile Content, File Name, JSON Update Data (array)
Default start row1 (set to 2+ to skip headers)
Default start column1 (column A)
Type conversion toggleConvert Numeric And Date = true (default)
Default date/numeric formatyyyy-MM-dd / N2
Outputdocument (Base64 workbook) + Success + ErrorMessage + Errors

Pertanyaan Umum

How do I update existing Excel rows in Power Automate?+
Add the PDF4me Excel - Update Rows action, map File Content and File Name from a prior action, set JSON Update Data to a JSON array of objects (one per row), and set Start Row to the first data row to update.
Does Update Rows insert new rows if a match is not found?+
No. Update Rows only modifies existing cells starting at Start Row, it does not insert or delete rows. Objects are applied sequentially to consecutive rows beginning at Start Row, there is no lookup-and-match against a key column.
Why must JSON Update Data be an array even for one row?+
The action always expects a JSON array of objects. A bare single object such as {"Name":"John"} returns a JsonData must be an array error, wrap it as [{"Name":"John"}] even when updating only one row.
How does automatic type conversion work?+
With Convert Numeric And Date enabled, JSON numbers become Excel numeric values formatted with Numeric Format, and date-like strings become Excel DateTime values formatted with Date Format. Culture Name controls how the incoming values are parsed before conversion. See <a href="https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings" target="_blank" rel="noopener noreferrer">Microsoft's numeric format string reference</a> for the supported format codes.
What happens to a JSON property that has no matching column header?+
It is ignored for that row. Only JSON properties whose names match an existing column header (case-sensitive unless Ignore Attribute Titles is enabled) are written to a cell. See the <a href="https://learn.microsoft.com/en-us/connectors/pdf4meconnect/" target="_blank" rel="noopener noreferrer">PDF4me Power Automate connector reference</a> for the full action schema.

Studi Kasus & Aplikasi Industri

  • Pembaruan Status ProspekPerbarui status kualifikasi prospek di lembar pelacakan Excel.
  • Metrik Kampanye: Perbarui metrik kinerja kampanye dari platform analitik
  • Catatan PelangganSinkronkan informasi kontak pelanggan dari CRM ke Excel.
  • Kuota PenjualanPerbarui target dan data penjualan aktual bulanan di dasbor Excel.

Tindakan Terkait

Tugas yang Sama di Platform Lain

Dapatkan Bantuan