Creation of config variable dynamically

Hi All

I’m trying to build the config variable dynamically and use that variable to get values from config file.

Scenario: currency converter
inner html of these currency is held as key value pair in excel, like as below and held as a config dictionary


  • user gives input for source and final currency as USD or EUR or AUD - keys in the above excel
  • based on the user input a config variable is created as below
    now the question is how can I unpack the value from
    ConfigDictionary("""+SourceCurrency+""").ToString that will point to value in excel




In this case we can re use inti All settings xaml from RE frame work. Copy the InitAllSettings.xaml from framework folder and paste into new folder or rename the file.

Input parameters for this initAllsettings.xaml would be

in_ConfigFile - in direction - your Currency excel Path.

in_ConfigSheets - in direction - {“YourSheetName”}

out_Config - out direction - CurrencyConfig

this CurrencyConfig - Dictionary type variable key is string values should be object.

whenver you call config(“USD”).tostring it wpuld give you the excepted value result. thanks.

@kirankumar.mahanthi1 thanks for quick reply !!

my bad, I missed to mention I already implemented reading excel and holding that in dictionary.
when I ever call “Config_Source” which holds the ConfigDictionary(“EUR”).ToString as value comes as output but not EUR [Euro] and this is the value held in the excel

attached the xaml for more idea

Main.xaml (22.8 KB)


Good POC @AdityaVN .

We have to use the dynamic variables in inside config like below to get the values for the keys we have provided.

eg: ConfigDictionary(SourceCurrency).ToString

I have modified your work flow. please refer the attached work flow and let me know that is what you are looking for. thanks.

CurrencyConfig.xaml (25.4 KB)

1 Like

@kirankumar.mahanthi1 thanks. How did i miss that :smiley: !!!

Your welcome @AdityaVN . anyway good idea.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.