行を結合する - Excel API
PDF4me 行を結合する 複数の行データをマージできます JSON 情報源 Excel ワークシートと表を対象としたドキュメント。 API サービスプロセス Excel ファイルと行データを結合します。 API 受け取る Excel 文書の内容と JSON 行データ REST API 通話を利用して Base64 安全な送信のためのエンコード。このソリューションは、データ統合、レポート作成、自動化に最適です。 Excel データワークフロー。
関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →
認証 API リクエスト
あなたの API 認証リクエストにキーを入力してください PDF4me REST API。
主な機能
- 行の結合: 行データを結合する JSON の中へ Excel 表または範囲
- ワークシートと表のターゲティング: 特定のワークシートとオプションのテーブル名
REST API 終点
- 方法: POST
- 終点:
office/ApiV2Excel/ExcelMergeRows
REST API パラメータ
重要: アスタリスク (*) が付いているパラメータは必須です。すべてのリクエストで使用されます。 書類、 ドキュメントコンテンツ、 そして mergeRowsToExcelAction操作固有のパラメータ(jsonInput、worksheetNameなど)は、アクションオブジェクトのプロパティです。
必須パラメータ(ルートレベル)
| パラメータ | 必須 | その機能 | 例 |
|---|---|---|---|
| document | Required | Source file. `Name` must end in `.xlsx`, `.xls` or `.xlsm` (a `.csv` for `ExcelParseCsv`). | { "Name": "data.xlsx" } |
| document.Name | Required | File name including its extension. Type: string. | { "Name": "data.xlsx" } |
| docContent | Required | The source file, base64-encoded. Type: string. | UEsDBBQABgAIAAAA... |
| isAsync | Optional | Process the request in the background. The call returns `202 Accepted`; poll the `Location` URL (`GetActionStatus`) for the result. Type: boolean. | |
| mergeRowsToExcelAction | Required | Object carrying this operation's settings. Its fields are the mergeRowsToExcelAction rows below. | See Payload example below |
| mergeRowsToExcelAction.worksheetNumbers | Optional | Comma-separated 1-based numbers of the sheets to merge. Type: string. | |
| mergeRowsToExcelAction.mergeKeyColumns | Optional | Comma-separated 1-based numbers of the columns used to match rows. Type: string. | |
| mergeRowsToExcelAction.outputFormat | Optional | Type: string. | |
出力
の API 返します Excel ドキュメントとして Base64-エンコードされた文字列 JSON フォーマット (ドキュメント、ファイル名、成功、エラーメッセージ)。
リクエスト例
ヘッダ
Content-Type: application/json
Authorization: Basic YOUR_BASE64_ENCODED_API_KEY
ペイロード(基本)
{
"document": { "Name": "data.xlsx" },
"docContent": "UEsDBBQABgAIAAAA...",
"mergeRowsToExcelAction": {
"jsonInput": "[{\"Name\":\"John\",\"Age\":30}]"
}
}