Reading asset from config

Hi Team,

I want to add the name and asset into the dictionary, tried this inside for each after reading the assets sheet but “get asset” throwing an error, I displayed the value prior get the asset activities it is showing but failing in the get asset activity, please find below screen shot:
image

assets in sheet:

@girish91

You have to try like this to read asset value from config file and here Config is of type dictionary.

Config(“url”).Tostring

Hi Lakshman,

It is getting the value from dictionary, I want to add the excel values into dictionary. this case it is single value but it may be multiple assets.

Thanks
Girish

below assignment statement used after the get asset to add into dictionary:
image

@girish91

Try like this in Assign Activity:

out_Config(row(“Name”).Tostring.Trim) = row(“Asset”)

Here, out_Config is of type Dictionary variable.

1 Like

Hi Lakshman,

I tried this but not working.

Thanks
Girish