I am working on pdf automation and face some issues.
My requirement is:-
Bot should go Main Folder-then there will be sub folders by person names- then open 1st folder then open Outbond folder then there is pdf’s which bot have to move in completed folder and save all pdf names in excel which have moved in completed folder.
This is the process which bot should do for all folders.
In initialize state → first run if condition use arrdirectories = directory.GetDirectories("MainFolder")
Change the transactionitem to string
In get transaction data instead of queue …use if condition with in_TransactionNumber <= arrdirectories.Count on then side use out_transactionitem = arrdirectories(in_transactionnumber) on else side use out_transactionitem = Nothing
Now in process.xaml use Path.Combine(in_Transactionitem,"outbound") in for each file in folder …which will get all pdf and use move file inside with currentitem.FullName as input and destination folder as Path.Combine(in_Transactionitem,"outbound","Completed")
then build datatable should be there in initialize and then you need to pass the datatable in and out of process xaml then can use write range in end process