Skip to main content
Version: Next

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 NameTypeRequiredDefaultDescription
CsvFilePathContextstringYes-Write file directory
CsvFileNamestringNoGUID.csvFilename
CsvSeperatorstringNo,CSV data separator
OverWriteFileboolNotrueWhether to overwrite
IsBackgroundJobboolNotrueWhether to process asynchronously
CsvDataContextstringNoCsvData_ValueProcess context key for reading data

Process Context​

Input Parameters​

Parameter NameTypeDescription
{CsvDataContext}objectData 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.

Update History​

DateVersionDescription
2025-11-281.0Initial version

Last updated: 2025-11-28