@mironb ,
For this above mentioned purpose, as said earlier, we can use the below Steps :
-
Use Directory.GetFiles(“Your Network Path”,“*.xml”) and get the list of all the xml files present in the Folder.
-
Next, Loop through the files, and read the file using
Read Text File
activity. -
Check if the text data present has the customer ID present in it, specifically in the xml format below :
<customerID>500054627</customerID>
For this we can use a Regex IsMatch for identifying if it is present or not.
- If present within the file, then we get to know which file contains this number, we can then read that file data, or parse that file as XML document and then perform the actions required.
Check the example workflow below:
Files_GetRequiredFile_ForProcessing.zip (4.4 KB)
Output Visuals :
Maybe this part is not clear yet, However I believe when using the Directory.GetFiles()
previously you were able to get all the xml files as well.
However, try the workflow and apply it to your requirements and let us know what are your findings.