Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in RPA by (12.7k points)

Currently working with Blue Prism and I want my exception report to only bring back exceptions from the last 24 hours.

I have tried using 'Today()' in the 'Report From Dt' and 'Report To Dt' which works fine however there is a chance my process will run into the next day and thus makes this not viable.

Is there a calculation for the past 24 hours?

1 Answer

0 votes
by (29.5k points)

The Today() function outputs a variable of the type Date, which is then cast into the DateTime variable. When BluePrism casts a date to DateTime, then it sets a time to midnight.

The answer to your problem is that you need to supply the action "Get Reports Data" with the DateTime variable that will be a DateTime of now - 24hours

Example solution to that could be:
Now()-MakeTimeSpan(0, 24, 0, 0)

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...