Hello Readers !! In this blog we will see how we can use the CSV action and list variable in Power Automate Desktop (PAD). Most of the time we need to read data from the CSV file. In my today’s example, we will see how to read columns in CSV. This example will help in understanding the CSV action of Power Automate Desktop.
Read from CSV File
Before we proceed to read from CSV under Power Automate Desktop, need to create a CSV file. As you can see from the below screenshot, I have created an Empfile.csv. This is very simple with Name, StaffID, and MobileNO as column headers.
After creating the CSV file, use Read from CSV file action of Power Automate Desktop. Use the default configurations as it is given. Provide the File path and enable the First line contains column names option. You can refer to this link on how to start with Power Automate Desktop (PAD).
Read from CSV
Retrieve Data Table
Now in this step, we will retrieve the data table column into the list. Basically, this action of Power Automate Desktop converts the contents of a data table column into a list.
Retrieve data table
Set the Data table value is equal to the CSV Table variable. And column name or index is equal to 0 because here I want to show the first column. You can provide the index value as per your requirement.
Display Message
Now in next step, I will display the column as list data into a message box. As you can see in below screenshot, message to display value is equal to column as list variable.
Display Message
After completing the above steps, hit on the Run and you will see result like below screenshot.
Result
Hope you all will like this small demonstration on CSV and list variable in Power Automate Desktop. If you like this post, please share and subscribe to our site for more articles. Also, you can post your suggestion for the next article in the comment box. Thanks !!
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
Connect with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
Use %ColumnAsList[0]% instead of %ColumnAsList% if you want to show the first item from the array. You can use %ColumnAsList[1]%,%ColumnAsList[2]%,…..,%ColumnAsList[n]% to show the Nth item. Please let us know whether it helped or not and also subscribe to our YouTube channel for more videos on PAD. link: https://www.youtube.com/c/Flexmind
Please let me how to retrieve only one Name
let me know how to retrieve only one Name
Use %ColumnAsList[0]% instead of %ColumnAsList% if you want to show the first item from the array. You can use %ColumnAsList[1]%,%ColumnAsList[2]%,…..,%ColumnAsList[n]% to show the Nth item. Please let us know whether it helped or not and also subscribe to our YouTube channel for more videos on PAD. link: https://www.youtube.com/c/Flexmind
If you want to pull entire CSV or Excel tables into cloud flows from PAD, and avoid in-data comma issues, then watch this video: https://www.youtube.com/watch?v=xNyvEYi7nY4&t