Dear All,
I’m working on the activity where I create new folder for every queue and store the downloaded files in the new folder I created. So, for every queue transaction, I’m planning to send outlook email with downloaded files from the folders that I’m creating for every queue. However, for sending files from these new folder, when I try to use the ‘Directory.GetFiles’, we need to put the fixed folder path. But in my case, folder path is changing for every queue. So, is it possible to use variable inside ‘Directory.getFiles’ so that i can use the variable inside it? (variable will be assigned with folder path for every queue item). Or is it possible to use in_TransactionItem.SpecificContent(“folderpath”).ToString through which i could provide unique folder path for every queue? Kindly support
You can always use variables in place of static text anywhere you can use static text. Just needs to be a string variable. Not sure what your question is.
Directory.GetFiles(VarFilePath,“extension you need to pull”)
Yes and store folder path inside queue if you need some specific naming convention,
Or you could also make timestamps folder, you could also concatenate with a queue info so later you can recognize them ( Would be easy for backtracking)
My issue is , I’m not familiar with using variables or in_transactionitem inside of Directory.getFiles.
Directory.GetFiles(in_transactionItem.SpecificContent("Folde path).tostring)
When I use or type Directory.GetFiles, then inside the folder, i can bring the variable where the folder path is stored.
or Inside Directory.GetFiles, the command In_transactionItem.SpeciicContent doesnt work.
The issue is
Directory.GetFiles(in_transactionItem.SpecificContent("Folde path).tostring)
When I use or type Directory.GetFiles, then inside the folder, i can bring the variable where the folder path is stored.
or Inside Directory.GetFiles, the command In_transactionItem.SpeciicContent doesnt work.
Hey,
When you say it doesnt work, can you provide more details what error do you get, cause your expression looks good, its just missing a double quote.
strFolderPath=in_transactionitem.SpecificContent(“FolderPath”).ToString
Directorty.GetFiles(strFolderPath) store this in a string array