readAppSettings Step

Last published at: May 2nd, 2023

Description:

Reads a value from the application configuration file web.config or cDevWorkflowService.exe.config

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 readappsettings step from the toolbox
  • Connect the dots between the start and readappsettings step
  • Click on the “readappsettings” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic
  • To work with this step, appSettings.Config file should have data like below code:

<configuration>

  <appSettings>

     <add key="ShowQueryTextbox" value="true"/>

   </appSettings>

</configuration>

  • Click on Multiple App Settings button

  • Can read multiple app settings values using above configuration.
  • If multiple items configured then, appsettings will read from multiple items configuration otherwise it takes single item defined.
  • Save the workflow definition, create a workflow instance, and execute. Step should read value from application configuration.