Hi experts,
how to get whole data from queue to get transaction item then print writeline?
Hi
We can use get queue item activity to get all the transactions in a queue
For more info
Cheers @Abubakkar
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)
we can mention with this expression
item.SpecificContent(“argumentname”).tostring
Cheers @Abubakkar
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
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
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
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
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
what should I mension for each in ?