How to get whole data from queue to get transaction item then print writeline?

Hi experts,
how to get whole data from queue to get transaction item then print writeline?

1 Like

Hi
We can use get queue item activity to get all the transactions in a queue
For more info

Cheers @Abubakkar

1 Like

Thanks @Palaniyappan.
Yeah, I get it but I want to print in writeline .
i used get transaction item then print to message box.

Main.xaml (21.1 KB)

for your references
New01_Frame.xlsx (8.6 KB)

1 Like

How to print output in writeline ?
Please help me to solve this @Palaniyappan

1 Like

we can mention with this expression
item.SpecificContent(“argumentname”).tostring

Cheers @Abubakkar

3 Likes

yes I used this code but I get the output only one row .
I need whole date in writeline ?
how can i do this ?
please let me know
Thanks

1 Like

May i know how many Transaction Items we have in the queue
i hope you have only one Transaction Items in queue
can i have a screenshot of the queue item with its transaction item

Cheers @Abubakkar

1 Like

please find the screenshot

1 Like

buddy
for example i have a queue named firstqueue which has only one transaction it like ths

but that transaction has many arguments like this

so like wise do you have only one transaction or many transaction
if only one transaction then fine you are good but if you have many Transaction you need to use FOR EACH loop activity as suggested with writeline mentioned like this
item.SpecificContent(“argumentname”).ToString

Coming to the point if each transaction has many arguments they cant be iterated rather we need to mention the argument name in the specific content explicitly as they are like key value pair (argument name is the key and its value)

so in your case inside the for each loop mention like this
item.SpecificContent(“Name”).ToString
another writeline with
item.SpecificContent(“PhoneNumber”).ToString
another writeline with
item.SpecificContent(“Age”).ToString

so if we have two or more transaction in your queue you will getting these argument key’s value in all TRANSACTION ITEMs of your queue

hope this would help you
Cheers @Abubakkar

1 Like

Kindly let know for any queries or clarification
Cheers @Abubakkar

1 Like

Thanks @Palaniyappan.


I get this error

1 Like

Make sure that for each loop is with type argument as Uipath.Core.QueueItem and inside the for each loop along the assign activity mention like this in the value part
item.SpecificContent(“argumentname”).Tostring
In each assign activity

Cheers @Abubakkar

Is this correct one ?

1 Like

Fine
In the property panel of for each loop activity we will be having a property called TYPE ARGUMENT
There we need to mention as Uipath.Core.QueueItem and in the input mention the output variable from get queue item activity
—this is done in the property panel of for each loop
—now inside the for each loop we have three assign activities right
—there in the right side of assign activity mention like this in all the assign activity
item.SpecificContent(“argumentname”).Tostring

Cheers @Abubakkar

1 Like

I get this error .

Thanks in Advance

1 Like

Remove the output in the property panel of for each loop
@Abubakkar

1 Like

what should I mension for each in ?

1 Like

No worries
Can I have your xaml if possible
@Abubakkar

Main.xaml (23.1 KB) Process.xaml (4.8 KB)

for your reference

Here you go
a sample xaml
select.zip (10.6 KB)

hope this would help you

1 Like