Inserting Multiple Database Records into a Database Table

To insert multiple new database records into a database table, do the following.

Navigation

  1. In AgilePoint Envision, open a process template.
  2. Navigate to the Database stencil.
  3. On the Database stencil, drag the Batch Insert AgileShape, and drop it on the process template.
  4. To view the entire list of properties, in the Design Tasks pane, click Show Properties.
  5. On the InsertXMLRepeatingDescriptor field, click the Ellipses button.

Instructions

  1. To set up your database connection, on the Configuration for Inserting Database Record window, complete the following field as required.
    Field Name Value

    Connection String

    Definition:
    Specifies the connection string that is used to connect to the database.
    • Click Choose to select a connection string from the list of shared custom attributes (defined and managed in Enterprise Manager.)
    • Click Create to create a new connection string.
    Allowed Values:
    A valid SQL connection string.
    Default Value:
    server=myserver;database=pubs;trusted_Connection=yes
    Custom Attributes:
    Yes
    Example:
    server=DataServer;database=StoreDb;trusted_Connection=yes
  2. To insert the data in a database table, do one of the following.
    • To insert the data into a table:
      1. Select Specific Table.
      2. On the Table Name field, click Browse.
      3. Select the database table name as required.
      4. In the Column & Data section, click Add.
      5. Complete the following fields as required.
        Field Name Value

        Column Name

        Definition:
        Specifies the name of the column in the database.
        Allowed Values:
        A valid column name from the particular table in the database.
        Default Value:
        None
        Custom Attributes:
        No
        Example:
        CustomerName

        Value

        Definition:
        Specifies an XPath to a single node inside the given repeating Xpath.
        Allowed Values:
        A valid XPath.
        Default Value:
        None
        Custom Attributes:
        Yes
        Example:
        ${/pd:AgilePoint/pd:Products/pd:ComponentName}
    • To use a stored procedure:
      1. Select Stored Procedure.
      2. Complete the following field as required.
        Field Name Value

        Stored Procedure

        Definition:
        Specifies the stored procedure name and parameters to execute at runtime.
        Allowed Values:
        A valid SQL stored procedure execute statement.
        Default Value:
        None
        Custom Attributes:
        Yes
        Example:
        EXECUTE [dbo].[InsertBillItem] @ItemName
  3. Complete any additional configuration for this AgileShape according to your requirements: