If a datatable already exists because I already created it, I will add a row to it. If it does not exist yet, I will create it and then add a row to it.
The datatable name is a variable, which comes from another datatable. Let’s say it’s like this
strTableName = “dt” + row.Item(“int column”).toString
So it would result in this
strTableName = “dt12345”
Now I want to test if dt12345 already exists or not. I have the name, but it is inside the string variable strTableName
Thanks for the replies, I’m attempting to implement a solution.
I’m trying to go with the dictionary version. I run into the issue you can see in the screenshot but I will explain.
I created a dictionary variable of type <string, datatable>. I initialize it using a dummy datatable.
But I seem to not get how to add items to the dictionary using the Invoke Method activity. What should I be doing?