Support > Forums > OpenBots Studio > Key value for get queue work item

Key value for get queue work item

Nisala Jayasinghe

  • Reporter
  • Calender Icon September 21,2021 at 10:59 AM

What will be the input for "Key" field in the Get dictionary value command used for consume workitems in the queue?

This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...

Nisala Jayasinghe

  • Participant
  • Calender Icon September 24,2021 at 4:18 AM

This really helps me. Thanks a lot.

Nataly Alvarado...

  • Participant
  • Calender Icon September 23,2021 at 5:00 PM

Hello Nisala,

using the Work Queue Item command will return a dictionary containing various information about the currently locked queue item. For instance, the queue item data text or json can be accessed through the key "DataJson". You can see the complete list of key value pairs, by checking the dictionary in debug mode or by logging the contents. Please, check the generated dictionary below for reference:

Count(9) [ ["Name", queueitem1], ["LockedUntilUTC", 9/23/2021 3:56:23 PM], ["Type", Text], ["JsonType", null], ["DataJson", this is my queue item text value] ["LockTransactionKey", 1635089e-0e23-4bde-9b50-720di289855d] ["Priority", 100] ["Source", null] ["Event", null] ]

You are not authorized to reply, please click here to login and add your reply to this topic.