cancel
Showing results for 
Search instead for 
Did you mean: 

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?

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
------------------------------
6 REPLIES 6

ewilson
Staff
Staff
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
------------------------------

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
------------------------------

AloknathSingh
Level 4
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
------------------------------

AndreyKudinov
Level 10
I agree with Nicholas, GUID is your best bet

------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------

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.
14117.png


------------------------------
Thanks & Regards,
Tejaskumar Darji
------------------------------

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
------------------------------