I already have certain names in queue. But, my bot has to add more names from excel sheet, but if the names are already present in the queue . The bot should not add the same. How to implement the same. I tried putting : row.Item(“Name”).ToString.Trim in the Reference property.
When you create the Queue initially, you can set it to use “Unique” items. This will cause it to throw an error any time you try to add the same queue item. So, you can set the ContinueOnError to True, so the Add Queue Item activity will be skipped if an error occurs.
If you want to be more sophisticated, then you can use GetQueueItems activity and check that the reference does not exist before adding it. I do this so I can increment the number of items which were actually added to the queue. Here is an example: