Description:
This step reads a value from the appSettings.JSON file.
Inputs
- appKey – Name of the key
- variableName – Variable to store the value of the key
- appSettings - Multiple App Settings
Returns
- True – step executed successfully
- False – step failed to execute
Usage:

Example:
Let’s build and execute the “readAppsettingsDef” example.
- Create a new definition called “readAppsettingsDef”
- Select the definition and click the “design” button
- Drag a “readAppsettingsDef” step from the toolbox
- Connect the dots between the Start and “readAppsettings” steps as shown above
- Define a variable/global to store the app settings
- Click the "readAppsettings" step to configure its "Required" properties. Provide a name for the step. Click the Save button.

- Click the "readAppsettings" step to configure its "Optional" properties. Provide the application key and the variable/global to hold the setting's value. Click on the button to define multiple app settings. Click the Save button.

- Click on the button to define multiple app settings. A popup window is displayed for configuration. Click the Add Row button to insert an empty row. Provide the App Setting Key and the variable/global reference to hold the value. Click the Save button. You may add multiple app setting references by using the Add Row button. Note: Use either single or multiple app setting configurations and not both.

- The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

- To work with this step, appSettings.JSON file should have data like the below code:
<configuration>
<appSettings>
<add key="SslEnabled" value="true"/>
<add key="IsMultiTenant" value="false"/>
</appSettings>
</configuration>
- Save the process definition, create a new instance, and execute. Render the process instance. Click on the process step. The step properties should read the value from the application configuration.

Definition Sample:
You may download the sample definition(s) from the link here and later import it (drag-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.
NOTE: Please verify and complete the process steps for any missing configurations, such as file path references and database connections after import. Then, save the definition to confirm the changes.
Click here to download the sample file.