Update Data

This activity updates the column values of a set of rows in the data source.

To add this activity to a workflow definition 

To configure this activity

  • Activity Name

    Once added to a workflow definition, the default name of an activity can be changed. Providing a custom name for an activity helps you remember the role it plays.

    To name an activity

    1. Add an activity to your workflow by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
    2. Select the activity in the Designer Pane.
    3. Under Activity Name in the Properties Pane, replace the default name.
    4. Note: Activity names cannot be the same as any other activity name in the workflow, they cannot be the same as the workflow's name, they must be less than 100 characters, they must contain at least one alphanumeric character, they cannot be "Name," and they cannot be the same as the activity's runtime type (which is usually only an issue with custom activities).

  • Activity Description

    Use the Activity Description to provide descriptive text to help you remember the role that the activity plays in the workflow. All activities contain a default description that you can modify while constructing your workflow.

    To modify an activity description

    1. Add an activity to your workflow by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
    2. Select the activity in the Designer Pane.
    3. Under ClosedActivity Description in the Properties Pane, replace the default description.
  • Data Source

    This property box determines which data source the activity will use.

    To select a data source

    1. Add a Custom Query, Insert Data, Query Data, or Update Data activity to your workflow definition by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
    2. Select the activity in the Designer Pane.
    3. Under ClosedData Source in the Properties Pane, select a data source from the drop-down menu.
    4. Note: Because the Workflow Server performs the data-source queries, you must create all data sources on the Workflow Server. Services cannot access mapped drives when you are setting up the data source.

    5. Optional: To add, configure, remove, or test a connection to an external data source, select Manage Data Sources from the drop-down menu. More information.
    6. Optional: Click the refresh icon to update the list of data sources available in the drop-down menu.
  • Rows to Update

    This property box determines which rows the Update Data activity will update.

    Note: You must configure the Data Source property box before configuring this property box.

    To configure Rows to Update

    1. Add the Update Data activity to your workflow definition by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
    2. Select the activity in the Designer Pane.
    3. Under Rows to Update in the Properties Pane, select the table you want to update from the drop-down menu.
    4. To update a row

      1. Click Add in the Rows to Update property box to find the row(s) you want to update.
      2. In the Add Update Criteria dialog box, select the column you want use to find the rows you want to update from the drop-down menu.
      3. Type in the value a row must have in order to update that row, or click the Token button (right arrow) to use tokens.

        Tip: To replace a token that has a blank value with "DB.NULL," apply the NULL token formatting expression.To always set a column's value to "DB.NULL", insert "%(DB.NULL)".

      4. Click OK.

      To edit an added row

      1. To change the query value for a column, click an existing query.
      2. Click Edit.
      3. In the Edit Update Criteria dialog box, modify in the value a row must have in order to update that row. Click the Token button (right arrow) to use tokens.
      4. Click OK.

      To remove an added row

      • Click an existing query.
      • Click Remove.
  • Query Options

    This property box allows you to specify a custom timeout for data query activities.

    To specify a custom timeout

    1. Add a Custom Query, Insert Data, Query Data, or Update Data activity to your workflow definition by dragging it from the Toolbox Pane and dropping it in the Designer Pane.
    2. Select the activity in the Designer Pane.
    3. Under ClosedQuery Options in the Properties Pane, select the Specify a custom timeout check box and specify the desired timeout value in seconds.

    Note: The default timeout value is 30 seconds.