I want to open a pre-defined folder location and to iterate through all xml files within the folder. Double click them to open them in excel so that I can make changes and then save the files as csv file with same file name.
Anyone kknow how to do this. The community UiPAth I have does not have a readXML activity.
What about “For Each File in Folder” found in Studio in Library / Snippets / Loops?
You could update it to get only .xml files by adding file mask: Directory.GetFiles(selectFolder,“*.xml”)
Instead of “Wrilte line” you could perform your own action with the file…
Check my Existing post where you will get the logic to use ReadXml .
The above post contains a workflow which reads and xml file and create a datatable then you can do some operations on datatable and can write back where you want.
for files reading from directory search on the forum you find a lot of posts .
Mate check parameters section invoke method activitily properties. There mentioned filename. If you are using for each with directory.getfiles then pass that file name string here.