Hello team, How to write the condition for getting the last 24 hrs executed Jobs details using get job activity.
TRY THIS
CreationTime ge (DateTime.UtcNow.AddHours(-24))
Try to mention like this
StartDate gt (datetime'{{currentDateTime}}' - 24:00:00)
This expression will filter the results to only include jobs that were started in the last 24 hours.
Cheers @Akhil_Raveendran
you can check this
I think query is fine
It’s about the access I believe
Let’s check in that direction as well
Make sure that the user has permission to access the jobs.
Make sure that the Orchestrator server is up and running.
Cheers @Akhil_Raveendran
- Add the “Get Jobs” activity to your workflow.
- Configure it with the Orchestrator folder and desired job state.
- Set the “Start Date” to
Now.AddDays(-1)
(24 hours ago) and the “End Date” toNow
. - Use the output of the “Get Jobs” activity to access job details executed within the last 24 hours.
Does this work?
"StartTime gt " + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.ffZ")
Try this it should work as expected
"StartTime gt " + Now.adddays(-1).ToString("yyyy-MM-ddTHH:mm:ss.fffZ")
just now tested…Hope this solves
cheers
getting same error ,not sure what is the root cause.
Can you please recheck…or delete the activity and rea dd
just used same and no issue
cheers
Thank you all for your help .
After updating the UiPath.system.activites package to latest version i am able to update the filter conditions in GUI itself .
Thank you very much
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.