Check if the current month is the same as yesterday. How you can perform this check on StudioX?
When generating a report, you need to check that the current day is not a new day of a new month
Well, you can check:
if now.month = now.adddays(-1).month
Of maybe a lot easier… if today is a new month compared to yesterday, then the ‘day’ by default = … 1
So if now.day = 1 then ‘new month’
2 Likes
robot may work on 2 day of month.
How can I memorize the last date in the report and then use it the next time I run the robot?
You can save it in a txt.file, config.xlsx or save it as an asset in orchestrator that u update everytime the robot run. It’s up to preference. I would probably use an asset myself.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.