Description:
This step updates a given database row and column with a new value.
Inputs
- connectionString – connection string to the database
- tableName – the name of the database table
- changeDatabase – connect to different database
- fieldName – the name of the field to update
- fieldValue – value to update
- whereFieldName – name of the where clause field
- whereFieldValue – the value of the where clause field
Returns
- True – step executed successfully
- False – step failed to execute
Usage:

Example:
Let’s build and execute the “updateDBFieldValueDef” example.
- Create a new definition called “updateDBFieldValueDef”
- Select the definition and click the “design” button
- Drag an “updateDBFieldValue” step to the canvas
- Connect the dots between the Start and “updateDBFieldValue” steps as shown above
- Click the “updateDBFieldValue” step to configure its “Required” properties. Provide a name to the step. Select the connection string from the drop-down list. Provide a table name. Provide the field name and the new value. Define the SQL search condition referring to the field name and the criteria.

- Click on the “updateDBFieldValue” step to configure its “Advanced” properties. Provide a different DB name (other than FlowWright) that exists on the same connection string, if required. By default, the step will connect to the FlowWright database.

- 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.

- Save the process definition, create a new instance, and execute. Render the process instance. Click on the process step to view the properties. The step should update the DB field.

For reference, the DB field value (External User Email) before the change.

For reference, the DB field value (External User Email) after the change.

Definition Sample:
You may download the ZIP file and extract the sample definition(s) from the link here. Then, you can 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.