I am trying to open a file directory path where a variable is embedded in the path.
e.g Using variable PriorReportMonth with variable value as September 2018
File directory: Directory.GetFiles("H:\Documents\UiPath\RD_Web_Access",“470000 - Income Received in Advance- +PriorReportMonth.xlsm”)
With UiPath the intention is to pick up the file 470000 - Income Received in Advance- September 2018 given that I have specified I am looking for September 2018 from my variable value.
I don’t think I’ve quite got it right as yet. Any assistance would be greatly appreciated.
I tried to specify the file path without using directory.getfile and I get an error: “Value of type string cannot be converted to '1-dimensional array of string”. What am I doing wrong here?