MARKETPLACE
PLUGINS
CSV CHOP AND ENCODE
CSV chop and encode logo

CSV chop and encode

Published August 2023
   •    Updated this month

Plugin details

When a CSV file is uploaded, this plugin extracts only the specified columns, changes column names, order, and character encoding, then outputs to a CSV or JSON file, chopped every 100 rows (modifiable).
CSVファイルがアップロードされた際に、指定したカラムだけ取り出し、カラム名や順序や文字コードを変更し、100行ごと(変更可)に区切ってCSVファイルまたはJSONファイルに出力します

Free

For everyone

No ratings yet
53 installs  
This plugin does not collect or track your personal data.

Other actions

Contributor details

jansnap logo
jansnap
Joined 2021   •   2 Plugins
View contributor profile

Instructions

## Configuration 1
1. Download the plugin.

2. Place the File Uploader element on the screen. FileUploader A.

3. Place the CSV Chop&Encode element on the screen. CSVchop&encode A.

4. Open the properties of CSV Chop&Encode A and configure the following:

- Specify the input file. Use the value from FileUploader A.
- Specify the character encoding of the input CSV file.
- Specify the output file format as CSV or JSON.
- Specify the column names to extract from the input CSV file, separated by line breaks.
- Specify the column names to assign in the output file, separated by line breaks. The order should match the extracted column names above.
- Specify the number of records to include in each file.


## Configuration 2

1. Specify the actions you want to perform after upload and chop:

- In the Workflow tab, click "Click here to add an event..."
- Select "Elements" - "A CSV chop&encode generates a new file"
- You can use "This CSVupload&encode's csv_files_name" or "This CSVChop&encode's json_files_name" (List of files type) from Step 1 onwards. (Note: The "Upload data as CSV" action requires a paid plan.)

Example:

```

https://7ed5d1d10173990c68c6021d81861b31.cdn.bubble.io/f1691896289002x644688035117246800/sample_data_sjis.csv

https://7ed5d1d10173990c68c6021d81861b31.cdn.bubble.io/f1691896803762x877286780971464600/output_csv_0.csv, https://7ed5d1d10173990c68c6021d81861b31.cdn.bubble.io/f1691896816367x386232817441398460/output_csv_1.csv, https://7ed5d1d10173990c68c6021d81861b31.cdn.bubble.io/f1691896837266x301136345029730000/output_csv_2.csv


```


## Testing

1. Test the functionality in preview mode:

- Open the preview screen.
- Click on "FileUploader A" and select the CSV file you want to upload.
- In the Data tab, check the "File manager" to see the list of files.
 - Depending on the number of records, output_csv_0.csv, output_csv_1.csv, output_csv_2.csv, ... files will be generated as output in case of output as CSV.
 - Depending on the number of records, output_json_0.json, output_json_1.json, output_json_2.json, ... files will be generated as output in case of output as JSON.



--------

## 設定1

1. プラグインをダウンロードする

2. File Uploader エレメントを画面に配置する。FileUploader A

3. CSV Upload&Encode エレメントを画面に配置する。CSVupload&encode A

4. CSV Upload&Encode A のプロパティを開き、以下を設定する

 - 入力ファイルを指定する。FileUploader A's value
 - 入力元のCSVファイルの文字コードを指定する
 - 出力先のファイル形式(CSVまたはJSON)を指定する
 - 入力元のCSVファイルから取り出す列名を改行区切りで指定する
 - 出力先のファイルにつける列名を改行区切りで指定する。順番は上記で取り出した列名と合わせる
 - 1ファイルに何レコード入れるか指定する

## 設定2

1. アップロード&分割後に動作させたいアクションを指定する

 - Workflowタブで Click here to add an event...
 - Elements - A CSV upload&encode generates a new file
 - Step1 以降で、"This CSVupload&encode's csv_files_name" または "This CSVupload&encode's csv_files_name" (List of files型) を使用できる(ただしUpload data as CSV アクションは有料プランでないと使えないので注意)
   - 例:

```

https://7ed5d1d10173990c68c6021d81861b31.cdn.bubble.io/f1691896289002x644688035117246800/sample_data_sjis.csv

https://7ed5d1d10173990c68c6021d81861b31.cdn.bubble.io/f1691896803762x877286780971464600/output_csv_0.csv, https://7ed5d1d10173990c68c6021d81861b31.cdn.bubble.io/f1691896816367x386232817441398460/output_csv_1.csv, https://7ed5d1d10173990c68c6021d81861b31.cdn.bubble.io/f1691896837266x301136345029730000/output_csv_2.csv


```

## 動作確認

1. プレビューで動作確認する
 - プレビュー画面を開く
 - File Uploader A をクリックして、アップロードするCSVファイルを選択する
 - Dataタブ - File manager でファイル一覧を確認する
   - レコード数に応じて、output_csv_0.csv, output_csv_1.csv, output_csv_2.csv, ... が出力される(CSV出力の場合)
   - レコード数に応じて、output_json_0.json, output_json_1.json, output_json_2.json, ... が出力される(JSON出力の場合)

Types

This plugin can be found under the following types:
Background Services   •   Element   •   Event

Categories

This plugin can be found under the following categories:

Resources

Support contact
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble