I’m trying to load a queue with some items, and I am trying to store the reference as the ID number of the transaction so that I can use that reference in the future, to know if the Queue already has that item. How do I store the ID Number as the reference. I am totally confused overall about the Queue reference, so any explanations would be appreciated.
A nice picture, explaining in detail how the queue reference works would be awesome. I already have my Queue set up for Unique references in Orchestrator.
Reference - The reference of the added QueueItem. The reference can be used to link your transactions to other applications used within an automation project. Additionally, this feature enables you to search for certain transactions, in Orchestrator, according to the provided string.
This property is available starting with v2017.1.
Additionally, references are not compatible with the 2016.2 or lower versions of Orchestrator or Robot.
Now.ToShortTimeString will return the date such as 08/30/2018 or something similar depending on your Windows settings. So in combination of the CustomerID, it will prevent it to be added more than once a day to the queue.
I have added a unique reference to my queue transactions, so they are now going in as “filename.ext\date and time”. However I’m now facing the issue that the first step of the process opens the file with the name of the reference, filename.ext, but I seem unable to manipulate the string to get back to just that, any help would be great!
QueueItem.ToString.Split(“\”) - says it can’t convert String to Character?
I have changed to split(QueueItem,“\”).ToString, but this gives me “system.string” rather than “filename.ext”, any ideas why as QueueItem is a string, not an array?
Adding to that, if your reference change from DateTime to something else or the total length just change. You’d have to change this substring manually.