Skip to main content
Version: Next

CsvReadActivity

Category: File Operations Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain

Overview​

CsvReadActivity (CSV Data Read) is a node used to read CSV file data in the process. It inherits from ActionActivity and supports reading CSV data from a specified file or directory, writing the result as a list of dictionaries to the process context.

Configuration Description​

Property NameTypeRequiredDefaultDescription
CsvFilePathContextstringNo-File directory from process context, takes last updated file
CsvFilePathstringNo-Specified file path (Priority)
CsvSeperatorstringNo,CSV data separator
CsvRowCountintNo1Read row count (excluding header)
CsvRowReverseboolNofalseWhether to reverse data (start from last row)
CsvReadResultContextstringNoCsvReadResult_ValueProcess context key name for result

Process Context​

Output Parameters​

Parameter NameTypeDescription
{CsvReadResultContext}List<Dictionary<string, object>>CSV read result, each row is a dictionary

Usage Examples​

{
"Type": "CsvReadActivity",
"Name": "Read Product Data",
"Alias": "ReadProductCsv",
"CsvFilePath": "C:\\Data\\products.csv",
"CsvSeperator": ",",
"CsvRowCount": 100,
"CsvReadResultContext": "ProductData_Value"
}

Notes​

  • 💡 First row is treated as header, subsequent rows as data.
  • 💡 CsvFilePath takes precedence over CsvFilePathContext.
  • 💡 When reading from a directory, the last updated CSV file is selected.
  • ⚠️ Returns empty list if file does not exist.

Update History​

DateVersionDescription
2025-11-281.0Initial version

Last updated: 2025-11-28