Accessing system settings (settings.xml)

Last Updated: 12/09/2015 Introduced in Verision: 2.0
The system settings are stored in the settings.xml file which is found at  C:\Program Files\Decisions\Decisions Services Manager  in a default Decisions installation. Any of the values of this file can be accessed and set in code. 
Create a new Visual Studio project and after settings up your project with a reference to DecisionsFramework.dll, you can access these settings via  DecisionsFramework.ServiceLayer.Settings.GetSettings().[PropertyName].
For example, if you wanted to access the DefaultAccountEmailAddress you would write  DecisionsFramework.ServiceLayer.Settings.GetSettings().DefaultAccountEmailAddress.

You can also update and save settings. The following two lines show how to update the DefaultAccountEmailAddress:

Below is an example showing how to access and update/save selected settings from this settings file in a console application.

 The output of this settings file would look like

To download this sample code please see the attached file below.


Additional Resources