CsvWriteActivity
Category: File Operations Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain
Overview
CsvWriteActivity (CSV Data Write) is a node used to write data to CSV files within a process. It inherits from ActionActivity and uses the MiniExcel library for writing, supporting overwrite and append modes.
Configuration Description
| Property Name | Type | Required | Default | Description |
|---|---|---|---|---|
| CsvFilePathContext | string | Yes | - | Write file directory |
| CsvFileName | string | No | GUID.csv | Filename |
| CsvSeperator | string | No | , | CSV data separator |
| OverWriteFile | bool | No | true | Whether to overwrite |
| IsBackgroundJob | bool | No | true | Whether to process asynchronously |
| CsvDataContext | string | No | CsvData_Value | Process context key for reading data |
Process Context
Input Parameters
| Parameter Name | Type | Description |
|---|---|---|
{CsvDataContext} | object | Data to write (supports list or object) |
Usage Examples
{
"Type": "CsvWriteActivity",
"Name": "Export Product Data",
"Alias": "ExportProductCsv",
"CsvFilePathContext": "C:\\Export",
"CsvFileName": "products_export.csv",
"CsvSeperator": ",",
"OverWriteFile": true,
"CsvDataContext": "ProductList_Value"
}
Notes
- 💡 Automatically creates the directory if it does not exist.
- 💡 When OverWriteFile=false, data is appended to the end of the file.
- 💡 When IsBackgroundJob=true, writing is asynchronous and does not block the process.
- ⚠️ Uses MiniExcel library for writing.
Related Nodes
- CsvReadActivity: CSV Read Node
- FileWriteActivity: File Write Node
Update History
| Date | Version | Description |
|---|---|---|
| 2025-11-28 | 1.0 | Initial version |
Last updated: 2025-11-28