cancel
Showing results for 
Search instead for 
Did you mean: 

Key Item in a Collection

GeneKerls
Level 3

Is there a way to identify in a Collection object which field is the Key Item to enter into a Queue?

 

In Section 9 of the Foundation Training, the first activity is to process data that is in a Queue.  The first problem is that there is no data available in the queue.  So going back through the videos I found where it was demonstrated how to Generate the Queue records.  My problem is when I run the procedure, the records load but there is no Key Item identified.  Where in the Collection Object do I define the Key Item?

 15687.jpg
15688.jpg

15689.jpg


Results

15690.jpg



Thanks!!



------------------------------
Gene Kerls
------------------------------
4 REPLIES 4

John__Carter
Staff
Staff
Hi Gene and welcome. You specify the key field name when you create the queue. Then whenever you add items to that queue, you need to make sure the collection input contains a field with that name. If you don't the queue items will still be created, and will still be accessible from a process, but in control room the Item Key column will be blank.

------------------------------
John Carter
Professional Services
Blue Prism
------------------------------

And item key has nothing to do with 'primary key' in a database table, it does not need to be a unique value. If you want to be sure it is unique then prior to adding you need to check if the key value already exists in the queue (by using Is Item in Queue)

------------------------------
John Carter
Professional Services
Blue Prism
------------------------------

Thanks John!!  That fixed my problem.

I think someone should look at the information presented in Section 9 of the Foundation Training to allow the student to build the collection before the activity of working with the queues begins.  There was no data defined to allow the proper execution of the first steps in the training module.

------------------------------
Gene Kerls
------------------------------

Hi Gene,

Thanks for raising this concern.

The activity to load items into Queue1 ready for section 9 is completed at the start of training in Section 1 - Introduction. The setup guide walks you through a few setup steps, including running a process to push items into the Work Queue.

Here is a snippet from the relevant section in the setup guide:
15682.png

When we next review Section 9 videos, we will look to add some signposting to refer back to the setup guide - load queue activity.

Best regards,

------------------------------
Carl Carter
Developer Program Manager
Blue Prism
Europe/London
------------------------------