Save dictionaries to List

ShekharRPAShekhar GuptaRobot Master

10h

Hi Everyone

I have a case,

For multiple cases in one switch, the output is saved in Dictionary as,

First switch case,
Dic(“Remark”)= ABCD XYZ

and After some actions,
Dic(“Remark”)=PQRS EFGH

2nd switch,
Dic(“Remark”)= LMNO XYZ

And So on,

So, One switch case can more than 1 Dic(“Remark”),

Problem: When we have one Dic(“Remark”),
we can easily pass it to update remark,

But when we have more than 1 Dic(“Remark”), One Dic overlap another Dic, Because the key names are same,

So, I am thinking to save the Dic(“Remark”) in list everytime in so that it save remark in newline, like

Remark
XYZ
ABC
PGQ

So that, I can use new line as separator to set remark every time in loop.

Hi @ShekharRPA

You can create a Dictionary of String as Key and List(Of String) as Value.

image

To add the values to the list use the invoke method activity

image

image

Hope it helps

Add if is like this

Dic(“Remark”)
ABCD
PQRS

And want to add some data in it in list

ABCD XYZ
PQR

Same we do in string

??