These are two different excels . The Column marked in green in left i already have it i the queue after reading it as a datatable. now in the same queue i have to insert the column marked in red on the right side from another excel. How can I do this ?
Not sure what I can elaborate on, there’s nothing to it. You use Read Range to read the data from Excel into a datatable. Then you use Bulk Add Queue Items to add the datatable rows to a queue.
I hope you would have either used ADD QUEUE ITEM activity or ADD TRANSACTION ITEM activity or BUIL ADD QUEUE ITEM activity for the green marked datatable
The same way we can do for that red marked datatable as well
Read that file and get the output as datatable
Now you can pass the read value one by one by passing the dt to GOR EACH ROW activity and inside the loop use a ADD QUEUE ITEM activity and mention the Same queue name and value as CurrentRow(“yourcolumnname”).ToString
@Palaniyappan buit in this case i will have a separate queue item only with the data table marked in red. I want to have the red marked datatable just as in the same queue item as the green one
There is nothing stopping you from adding whatever you want to a queue - it’s wide open. I’ve explained more than once how to do this. You add the second set to the queue the same way you added the first set.
@Palaniyappan I read it as a datatable which i have named “var_FilteredFilialDirektionDT” and then used the following expression to upload it into the queue as a String:
Then read both into separate datatables, then combine with Merge Datatable before converting to JSON (string) and adding to the queue. You can’t add datatables to a queue, queues don’t accept complex datatypes.
You cannot add complex datatypes like datatable to a queue.
Why are you trying to combine all this into one queue item, anyway? That’s not normally how queue items are used.
But if you must do that, as I said, read both into separate datatables. Then Merge Datatable to combine them. Then convert to JSON (string) and add that as your value to the queue item.
Thinking about it more, I probably wouldn’t merge the datatables.
I would convert them individually into JSON, and add each JSON string as a separate value within the queue item. You’d create a dictionary, and in that dictionary assign the first JSON string to something like myDict(“Names”) and the second datatable’s JSON string to something like myDict(“Numbers”). That way when you Get Transaction later, you have the two datatables (JSON strings) as separate values.
You could just convert them to CSV values or something like that if you don’t want to mess with JSON. Just anything that’s a string.