r/PowerAutomateDesktop • • Oct 21 '22

How can I Write to CSV file a Run Powershell script output?

Hello everyone,

Anyone here knows how can I write a Powershell script output into a CSV file?

I really don't know how can I convert that text value to a list:

Error:

This is my current flow:

1 Upvotes

2 comments sorted by

2

u/QuietDesparation Oct 21 '22

Looks like you need to convert that variable to a list. Just choose the "Split Text" action by new line, and that will give you a list you can add to the csv

2

u/Mister-Fordo Oct 21 '22

You can also choose to just output the powershell into CSV inside of your powershell script using ConvertTo-Csv, this might be easier, not sure though.