I have an Input.xlsx file being read during Get Transactions. The input file is basically the 7 report names and some parameters being brought in during Process Transactions. Some of these reports get run from Today through End of Month, and others are Today through End of Quarter.
I know I can split the reports into different workflows and call them using IF Transaction = (matching number/range) and use the arguments defined earlier in the process, but I expect there’s a cleaner way to do it by using the same Input file and mapping the value to a defined variable.
I don’t know what are you exactly saying!. But I just ask you a simple question.
Do you want to convert a cell value into DataTime variable?
Like below !
If I understand correctly, you could use Dictionary(of String, DateTime), where you can define what process has which date. But still i don’t see enough information to help you.
I’d like to get rid of the IF statements to make it easier to track/maintain. Originally there were multiple steps unique to each transaction inside the IF → Then workflows. I’ve managed to remove all of them except for the date parameters.
Transactions 2-7 could now be consolidated to 1 IF statement since the report formats have been moved to an Inputs.xlsx file. They all use the same date logic. Start Date = Today & End Date = End of Quarter.
I wanted to know if I could get rid of the IF statements completely and map a value from Inputs.xlsx to fill in the To Date based on if the report runs to the end of the month, or the end of the quarter.
Still i’m not sure if I catch up but, here are some thoughs maybe one of them will fit:
Instead of IF i would use Switch with condition of EndDate, so you could have only 2 cases,
I’m not sure if for transaction 2-7 process looks simmilar
Or in case all transactions are doing the same but for different dates, i would create one Workflow with at least 2 args: StartDate and EndDate, and then for those generate reports.
But still i’m not understand if for each of transaction robot is doing different tasks or simmilar.
Cheers
P.S.
I have one process where robot is doing almost same thing for different props, in that case i’m using case and in arguments just passing different dates and booleans.