Welcome to the community!!!
So, the assets in the orchestrator are linked with the uipath workflow is through the data we have in the config excel file.
Say you created an asset in the orchestrator named “Abc” and you want to use it in the workflow. So in REFramework we use the config file to hold the asset names and the reference. Why we use the config file is because, say you changed the asset name sometime. If you dont have a config file, you have to go and change the code which is not a good practice. If we have the config file, we just change the name there and everything will work perfect.
So, let’s say you want to use the ABC asset. So in the config file, you go to the asset page and you see two main columns. The name and the value.
The name column holds the reference name we use to refer to the asset inside the code. And the value column holds the actual asset name which is ABC.
So in our case, if we specify asset_abc in the name column and abc in the value column, in the code we use asset_abc to access the ABC asset and to get or set its value.
So, how we get to it is using the config dictionary as you know. There we specify
Config(“asset_abc”).ToString and this will give the value of the asset.
So what happens in the init all settings xaml file is, it uses this and gets all the values from the assets mentioned in the config file into a dictionary. The values are taken using the get asset and get credential activities and adds the data into the config dictionary.
So in the REFramework at anytime you want to refer to the value in the asset, you just specify the reference name of it and get it as I explained earlier…