I want to use string variable for storing dynamic key value pair value in it. After that I’ll use this string variable in the dictionary. But I don’t know exactly that how to create that string varibale which stores dynamic key value pair.
Dynamic value to a string variable is simple enough that you can assign it with ASSIGN activity where you want in ur workflow so that it becomes dynamic to accept any key value from a dictionary
Only thing we need to ensure is that the string variable has to be a global variable
Which means the variable created in variable panel should have a scope of full workflow
I’ve used ASSIGN activity as you can see in the attach image. My requirement is to store the (counter,currentItem.ToString) in ‘FullList’ string variable. So, please tell me the correct way to do this.
The output of ‘counter’ is integer type in which I’m storing column no of excel and output of ‘currentItem’ is of int type which contains data of that particular column.
I want to store both data in one variable so that I can use that variable in Dictionary as ‘value’ because I’ve another variable for ‘key’.
dictTuple = new Dictionary(Of String,Tuple(Of String,String))
dictTuple("Key") = Tuple.Create("name","Address")
In places of the hardcoded values you can use the values from the variables, but the types should be converted to String for this particular else we can change the tuple types to the required.