How can I convert String to a Dictionary(of String, Object())?

Hi everyone,

I want to assign value:
in_Config(“InputFilePath”).ToString

… to my dictionary(Of String, Object()) “in_File”.

How can I do that?

Thanks in advance,
Kudo Shinichi


Hi, Kudo

do you need in_File as Dictionary? If you dont need a collection of in_Files, maybe String its a better choice.

But if you need as dictionary, you can pass the value in this way:

{{“file”, in_Config(“InputFilePath”).ToString}}

Then in read range, you can use

in_File(“file”).ToString

Cheers

PS: Mark as solution if it helps solve the problem

1 Like

I got it :sweat_smile:
Thank you very much.

Hi @Tuannna1 ,

An Assign Activity should do the trick:

//Assign Activity
LHS:
in_File("InputFilePath")
RHS:
in_Config("InputFilePath")

Kind Regards,
Ashwin A.K