What is the best way to have once place to keep config values (email adresses, username/password, etc etc). This to make it easy to change these values.
I looked into this post (I’m not using the ReFrameWork nor Orchestrator): How to create Config File and How to Use it in UiPath?
However, in my project I would then have to do the following for everywhere a config value is needed:
- Use Invoke Workflow to make a call to InitAllSettings.xaml, this will read all the config values every time.
- Assign the Out-Config to a variable.
- Get the correct value from the variable.
To do all that every time a config value is needed (in different workflows) seems like it will make the workflow to look a bit messy. Is there a cleaner way to do this?
I would want to do step 1 and 2 only once globally for the project, and then only step 3 wherever, in the project, I need a value. Kind of like a static initiation.
So what is the best way to do this?