I want to fetch all the item from the Orchestrator Queue inserted before 2 hours only.
I have used the GetQueueItem activity and passed the value in to as Now.AddHours(-2) and when i execute my code it gives all items inserted before 2 hours also.
I also tried using the StartTransactionTime but since the items are in NEW so the value is Null for the start transaction item, I have tried the LastProceesedTime but that also not helped.
I have seen in queue item in History tab there is Time. Can anyone help me to fetch the created time of the transaction items.
1 Like
I have used the GetQueueItem activity and passed the value in To property of activity as Now.AddHours(-2)
1 Like
Hey @Rajiv_Awasthi,
Have you solved your problem?
Probably your Orchestrator is set to use UTC time.
Then, you will have problem if your machine/machine that runs the process is set to another time zone.
So, you have two options:
- Update time zone in general tab of Orchestrator settings
- If you don’t want to update it, just consider the difference between UTC and your machine (or the machine that will run the process).
Example considering -3 hours of difference:
DateTime.Now.AddHours(3).AddHours(-2) or DateTime.Now.AddHours(1)
Example considering +3 hours of difference:
DateTime.Now.AddHours(-3).AddHours(-2) or DateTime.Now.AddHours(-5)