Customer Settings
When developing custom workflows and applications, developers can define their own configuration files and control when they are loaded. This is controlled using the IConfigurationDataService class, which includes two APIs to load these types of files from the Configuration folder.
ApplyConfigurationFromFile(string fileName, bool deleteAfterLoading)
This API loads a file into the specified repositories where:
- fileName: the name of the file to load
- deleteAfterLoading: determines if the file is deleted after loading
LoadConfigurationObject<[Object]>(string fileName)
This API loads a JSON file into the specified object type and returns an instance of the object or null if the file did not exists.
- Object: This is the object type that matches the structure of data defined in the JSON file
- fileName: Name of the file to load