Get More Than One Record from a Database

To get more than one record from a database, do the procedure in this topic.

Screen



Good to Know

How to Start

  1. On the Application Explorer screen, do one of these:
  2. Do one of these:
    • Add an activity:
      1. In the Process Builder, go to the Activity Library, and open the Database Database icon tab.
      2. On the Database Database icon tab, drag the Query Multiple Query Multiple icon activity onto your process.
    • Change an activity:
      1. In your process, double-click your activity.
  3. Click Query Multiple Query Multiple icon.

Procedure

  1. On the Query Multiple Record screen, in the Database list, select your database access token.

    To create a new access token, click Add Token Add Token icon. For more information, refer to Access Token for Database.

  2. (Optional) In the Schema list, select your database schema.
  3. (Optional) If you want to include the synonyms in the Table Name list that is created in the database, select Include Synonyms in the list Include Synonyms in the list icon.
  4. (Optional) If you want to include the views in the Table Name list that is created in the database, select Include Views in the list Include Views in the list icon.
  5. In the Table Name list, select the name of your database table, synonyms, or view.
  6. Complete these fields as necessary.
    Field Name Definition

    Query Mapping

    Function:
    Connects the query to your schema.
    Accepted Values:
    Click the Schema Mapping Schema Mapping icon button to open the Schema Mapper.

    Use this screen to connect the query to your process schema.

    Default Value:
    None
    Accepts Process Data Variables:
    No

    Where Condition

    Function:
    Shows the code snippet for the WHERE clause to search for the records in the database. The WHERE clause is specified using the conditions and logical operators.
    Accepted Values:
    A valid WHERE clause.

    You can add more than one condition with AND operator.

    Default Value:
    None
    Accepts Process Data Variables:
    Yes

    Order By

    Function:
    Specifies the name of the column to sequence the query results.
    Accepted Values:
    The name of your list column.
    Default Value:
    None
    Accepts Process Data Variables:
    No

    Sort By - Sort Order

    Function:
    Specifies the sort order for the result set.
    Accepted Values:
    • Ascending
    • Descending
    Default Value:
    Ascending

    Row Limit

    Function:
    Specifies the maximum number of rows to get with the WHERE clause.
    Accepted Values:
    Any integer up to 10,000.
    Default Value:
    Deselected
    Accepts Process Data Variables:
    No

Related Topics