How do i change a variable from system.string to a string variable

I am currently having issues to convert a system.string variable(fileList) to a variable(fileList) from a for each loop to an add data row.

Attaching the screenshot for easy reference.

appreciate the assistance in advance!

HI @Justine

If you need to add the item one by one in next next rows you need to use the add datarow inside the for each activity and then pass item.ToString

If you want to add the all lists items in a seperate column values use



I tried to amend it to fileList.ToString and it is still showing as System.String, instead of the filename.

Attaching the workflow for easy reference.
Main.xaml (18.1 KB)


To get the file name in your workflow

Inside For each file in folder



thanks and appreciate the assistance!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.