I need for a robot to get jobs that are only low priority.
To check the priority I need first to GetQueueItem (output = TransactionItem) and then I can check the priority like lcase(TransactionItem.Priority.ToString) = “low”
The problem is that by using GetQueueItem the status of this queue item changes to ‘InProgress’, what ever the priority. If the robot only does the low priority, the other ones remain as ‘InProgress’
Can I check the priority before the GetQueueItem? or can I change the status back to new?
Would it work as per the attached example? When I get the transaction item afterwards, will it take the specific queue item in the for each loop or do I need to specify it somehow?
I’ve tested it mixing items with different priorities and when I call to GetQueueItem inside the For Each it will get the items with higher priority in the queue. How do I make the robot get the specific item in the For Each with priority = low?
An example of it’s usage is in the ‘Postponing a Transaction Item’ section of this page: Managing Queues in Studio
Based on this, you could get transaction items in a loop, check if their priority is ‘Low’ by accessing the queueitem attributes. If ‘Low’, then continue processing; if not, postpone transaction.