What are some unique ways/ideas for creating a Unique Key for Blue prism work queues which would have unique value always and ensure no duplicates generated?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-04-21 06:11 PM
What are some unique ways/ideas for creating a Unique Key for Blue prism work queues which would have unique value always and ensure no duplicates generated?
------------------------------
Thanks & Regards,
Tejaskumar Darji
------------------------------
------------------------------
Thanks & Regards,
Tejaskumar Darji
------------------------------
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-04-21 12:58 AM
Hi @Tejaskumar_Darji,
There's some really good training available on the Blue Prism University site regarding working with queues.
In a nutshell, when you add an item to a work queue, BP will generate a unique Item ID for each item for you. This is not the same as the Item Key which you can define yourself. When you add items to the queue the Item ID will be returned to you (ex. as a output collection in the Add to Queue action). These Item ID's are essentially GUIDs which you can pretty much bank on being unique across space and time. Well, that's a little bit of an exaggeration, but duplicates are HIGHLY unlikely if you look into the statistics around UUID/GUID.
Cheers,
------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------
There's some really good training available on the Blue Prism University site regarding working with queues.
In a nutshell, when you add an item to a work queue, BP will generate a unique Item ID for each item for you. This is not the same as the Item Key which you can define yourself. When you add items to the queue the Item ID will be returned to you (ex. as a output collection in the Add to Queue action). These Item ID's are essentially GUIDs which you can pretty much bank on being unique across space and time. Well, that's a little bit of an exaggeration, but duplicates are HIGHLY unlikely if you look into the statistics around UUID/GUID.
Cheers,
------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-04-21 03:37 PM
If you need a unique ID outside of the work queues, you can also use Generate New GUID in the Utility - Strings object.
------------------------------
Nicholas Zejdlik
RPA Developer
------------------------------
------------------------------
Nicholas Zejdlik
RPA Developer
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-04-21 10:26 AM
Hi Tejaskumar,
Eric has pointed out correctly.
To add my thoughts around duplicate check, we can always use the "Is Item in Queue" action to avoid adding duplicate items in BP queue.
Cheers,
Alok Singh,
Senior RPA Developer
------------------------------
Aloknath Singh
Senior RPA Developer
Jaguar Land Rover
Asia/Kolkata
917021429197
------------------------------
Eric has pointed out correctly.
To add my thoughts around duplicate check, we can always use the "Is Item in Queue" action to avoid adding duplicate items in BP queue.
Cheers,
Alok Singh,
Senior RPA Developer
------------------------------
Aloknath Singh
Senior RPA Developer
Jaguar Land Rover
Asia/Kolkata
917021429197
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-04-21 06:49 PM
I agree with Nicholas, GUID is your best bet
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-04-21 10:23 AM
Yes, that is a good idea to generate a GUID and use it as a Unique Item Key for work queue.
Also, can we use the below alternative where I'm creating a unique key combining date and time values.

------------------------------
Thanks & Regards,
Tejaskumar Darji
------------------------------
Also, can we use the below alternative where I'm creating a unique key combining date and time values.
------------------------------
Thanks & Regards,
Tejaskumar Darji
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-04-21 10:30 AM
Sure, but GUID is gauranteed to be unique even if you create multiple of them within one second or from different bots. Datetime is not, but might work if you are sure there wont be such cases. This is up to a developer to decide.
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------
