Put More than One Record into a Database Table
To put more than one database record in a database table, do the procedure in this topic.
Examples
Good to Know
- In most text fields, you can use process data variables as an alternative to literal data values.
- You can configure whether this activity waits for other activities before it runs.
For more information, refer to How Do I Configure an Activity to Wait for Other Incoming Activities?
- Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation, and it is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business uses cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, and other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?
How to Start
- On the Application Explorer screen, do one of these:
- Do one of these:
- Add an activity:
- In the Process Builder, go to the Activity Library, and open the Database tab.
- On the Database tab, drag the Batch Insert activity onto your process.
- Change an activity:
- In your process, double-click your activity.
- Add an activity:
- Click Batch Insert .
Procedure
- To put the data in a database table,
do one of these.
- To put the data into a specified table:
- On the Batch Insert screen, in the Specific Table tab, in the Database list, select your database access token.
To create a new access token, click Add Token . For more information, refer to Access Token for Database.
- In the Repeating Node field, enter an Xpath that specifies the root of a repeating element in a schema where all the data is stored.
- (Optional) In the Schema list, select your database schema.
- In the Table Name list, select your database table.
- (Optional) Complete these fields
as necessary:
Field Name Definition Remove All Old Records
- Function:
- Removes all the old records from the database.
- Accepted Values:
- Selected - Enables the remove all old records option.
- Deselected - Removes the record that satisfy the specified condition.
- Default Value:
- Deselected
Before insert, remove records that meets following conditions
- Function:
- Removes the records from the database that satisfies the specified condition. This remove operation is performed before the insert operation.
- Accepted Values:
- A valid SQL condition after WHERE clause.
- Default Value:
- None
- Accepts Process Data Variables:
- Yes
- Example:
- InvoiceNumber < 1467
- In the Column Name field, enter the name of the column to put the data.
- In the Value field, enter your value, or drag a process data variable from the Process Data screen.
- (Optional) Click Create to add a new row to add a variable or value.
- On the Batch Insert screen, in the Specific Table tab, in the Database list, select your database access token.
- To insert the data with a stored procedure:
- On the Batch Insert screen, click Stored Procedure tab.
- On the Stored Procedure tab in the Database list, select your database access token.
To create a new access token, click Add Token . For more information, refer to Access Token for Database.
- In the Repeating Node field, enter an Xpath that specifies the root of a repeating element in a schema where all the data is stored.
- In the Stored Procedure field, select your stored procedure.
- In the Value/Attr. Name field, enter the value of the stored procedure parameter, or drag a process data variable from the Process Data screen.
- To specify the input and output options for the stored procedure, complete this field
as necessary.
Field Name Definition in/out.
- Function:
- Specifies the in/out parameters for the stored procedure.
- Accepted Values:
-
- Input - Specifies that the parameter is an input value for the stored procedure.
- Output - Specifies that the parameter is an output value for the stored procedure.
- InputOutput - Specifies that the parameter can be input/output value for the stored procedure.
- ReturnValue - Specifies that the parameter is a return value for the stored procedure.
- Default Value:
- None
- Accepts Process Data Variables:
- No
- In the Data Type list, select the data type of the stored procedure parameter.
- In the Size field, enter the size of the input parameter for the stored procedure.
- To put the data into a specified table: