String変数を直接CSVファイルに書き込めませんか

UiPath Studio 2023.6.1 Community Editionを利用中の初心者です。

稼働中のProcess一覧をCSVファイルに書き込むWFを添付画像のとおり作成しましたが、

str_ProcessName ->dt_ProcessName->ProcessName.csv

と途中で DataTableに一度変換しています。UiPathではString変数を直接CSVファイルに書き込めませんか?

@gorby

The Write from property of the Write CSV activity only takes a DataTable as a value. This means that you cannot use a string variable as the source of data for the Write CSV activity.

If you want to write a string variable to a CSV file, you can use the following workaround:

  1. Create a DataTable with a single column called “String”.
  2. Add the string variable to the DataTable.
  3. Use the Write CSV activity to write the DataTable to a CSV file.

Hi @gorby

テキスト ファイルの書き込みアクティビティを使用して、文字列変数を CSV ファイルに書き込みます。 [テキスト] フィールドに文字列変数を指定し、[ファイル名への書き込み] フィールドに CSV ファイルのパスを指定します。

理解を深めるために、以下のビデオをチェックしてください。ビデオの時間は 50 秒から 1 分 40 秒までです。

それが役に立てば幸い!!

【テキスト ファイルに書き込み】を使用して、書き込むファイル名の拡張子を .csv にすれば良いかと思います。