To use specific data from the queue

Hello everyone!
Is it possible to use specific data in transaction from the queued item?
If yes , how to get all of them?

Regards,
Temuulen.

1 Like

@Temuulen_Buyangerel

use get transaction item activity to the get the queue item and created an output as transactionitem

transactionitem.SpecificContent(“First_Name”).ToString

output= “John”

or if you are using Reframework then use below syntax in process state

in_TransactionItem.specificContent(“Key”).tostring

cheers

1 Like

@Temuulen_Buyangerel

in_transactionItem.Specific.content(“QueueKeyName”).tostring

I can’t use transactionItem

@Temuulen_Buyangerel

please check the above steps you will get an idea

It says, Write Line: Object reference not set to an instance of an object.

@Temuulen_Buyangerel

If the queue item is in New state only then get transaction item will get the data. Check if there are any new items in the queue

Object ref error comes when the associated variable is empty

if you want to get data for processed or failed items then use get queue items activity which will give you a list of queue items can access each inside for loop

say output is quitems

then pass quitems to for loop in argument and then inside loop use

currentItem.SpecificContent("Name").ToString

cheers

1 Like

@Temuulen_Buyangerel

check the output and the values which you are passing in the key should be exact

cheers

Yes, they are exact but not working.

Hi @Temuulen_Buyangerel

In queue items it will be uploaded as dictionary, every key has a value.
We call the value by using key.

InTransactionItem.SpecificContent("Key name")

The above will give the value of the specified keyname in the queues.

Hope it helps!!

1 Like

@Temuulen_Buyangerel

can you share the screenshot or the xaml which you are using

hope i will help to resolve it

I didn’t notice that I was using Get Transaction Item, but it was Get Queue Item.
My bad
Thanks for the solution!
Cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.