Query Records (NetSuite) activity

An activity that uses a SQL WHERE clause to query one or more entity records in NetSuite.


Query Records activity

Configure the Query Records activity

To configure the Query Records activity, do the procedure in this topic.

Examples

Prerequisites

Good to Know

How to Start

  1. Open Process Builder.

    For information about how to open this screen, refer to Process Builder.


    Open Process Builder
  2. In Process Builder, in the Activity Library, open the NetSuite tab.

    Open NetSuite tab
  3. On the NetSuite tab, drag the Query Records activity onto your process.

    Drag Query Records activity

Procedure

  1. Complete the fields on the General Configuration screen.

    For more information, refer to Configure General Options for a CRM Activity.

  2. Click Query Records Query Records icon.
  3. Complete the fields on these screens.
    1. Query Record Configuration > Column tab.
    2. Query Record Configuration > Where tab.
    3. Query Record Configuration > Output Mapping tab.
    4. Query Record Configuration > Test tab.
  4. (Optional) Click Advanced Advanced icon > Email Notifications E-mail Notifications icon.

    For more information, refer to Email Notifications screen (Process Activities).

General Configuration

Specifies the basic settings for the Query Records activity.

Figure: General Configuration screen

General Configuration screen

Fields

Field NameDefinition

Display Name

Description:
Specifies the activity name that shows in your process.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None
Accepts Variables:
No
Example:
This is a common configuration field that is used in many examples. Refer to:
  • Examples - Step-by-step use case examples, information about what types of examples are provided in the AgilePoint NX Product Documentation, and other resources where you can find more examples.

Description

Description:
Specifies an optional text description for your activity.
Allowed Values:
More than one line of text.
Default Value:
None
Accepts Variables:
No

Connection Timeout (Seconds)

Description:
Specifies the number of seconds permitted to complete an action before the connection stops.
Allowed Values:
An integer.

Represents

  • A number of seconds
Default Value:
600
Accepts Variables:
No

Query Records Configuration > Column tab

Specifies the entity columns to query.

Figure: Query Records Configuration > Column tab

Query Records Configuration Column tab

Fields

Field NameDefinition

NetSuite

Description:
Specifies the access token that connects to your NetSuite application.
Allowed Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Create Add Token icon

Opens this Screen:
Access Tokens for NetSuite
Function of this Screen:
Configure an access token to connect to NetSuite.
Example:
Refer to:

Entities / Custom Record Types

Description:
Specifies whether to query a record for a standard NetSuite entity, or a record for a custom record type.
Allowed Values:
  • Entities - Lets you select a standard NetSuite entity from which to query the records.
  • Custom Record Types - Lets you select a custom record type from which to query the records.
Default Value:
Entities

Entity Name

Description:
Specifies the name of an entity from which to retrieve records.
To Open this Field:
  1. On the Query Records Configuration screen, select Entities.
Allowed Values:
An entity name from the list.
Default Value:
None.

When you select the NetSuite access token, the name of entities show in the Entity Name field.

Record Type

Description:
Specifies the name of a custom record type from which to get records.
To Open this Field:
  1. On the Query Records Configuration screen, click Custom Record Types.
Allowed Values:
A custom record type from the list.
Default Value:
None.

When you select the NetSuite access token, the name of custom record types show in the Record Type field.

Entity Column Fields

Description:
Shows all the columns for the entity specified in the Entity Name field.
Allowed Values:
The list of columns for your entity.
Default Value:
None
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use 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, or 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?

Configured Column Field

Description:
Specifies the columns from the entity to use in your query.
Allowed Values:
A list of columns moved from the Entity Column Fields list.

Use the left and right arrow buttons to add and remove columns in this list.

Default Value:
None
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use 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, or 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?

Left Arrow Left Arrow icon

Function:
Moves the selected fields from the Configured Column Fields box to the Entity Column Fields box.

Right Arrow Right Arrow icon

Function:
Moves the selected fields from the Entity Column Fields box to the Configured Column Fields box.

Select All

Description:
Selects all the fields.

Query Records Configuration > Where tab

Configures a SQL where clause to filter the results of a query in NetSuite. It gets only the records that obey the rules in the WHERE clause.

Figure: Query Records Configuration > Where tab

Query Records Configuration Where tab

Fields

Field NameDefinition

NetSuite

Description:
Specifies the access token that connects to your NetSuite application.
Allowed Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Create Add Token icon

Opens this Screen:
Access Tokens for NetSuite
Function of this Screen:
Configure an access token to connect to NetSuite.
Example:
Refer to:

Entities / Custom Record Types

Description:
Specifies whether to query a record for a standard NetSuite entity, or a record for a custom record type.
Allowed Values:
  • Entities - Lets you select a standard NetSuite entity from which to query the records.
  • Custom Record Types - Lets you select a custom record type from which to query the records.
Default Value:
Entities

Entity Name

Description:
Specifies the name of an entity from which to retrieve records.
To Open this Field:
  1. On the Query Records Configuration screen, select Entities.
Allowed Values:
An entity name from the list.
Default Value:
None.

When you select the NetSuite access token, the name of entities show in the Entity Name field.

Record Type

Description:
Specifies the name of a custom record type from which to get records.
To Open this Field:
  1. On the Query Records Configuration screen, click Custom Record Types.
Allowed Values:
A custom record type from the list.
Default Value:
None.

When you select the NetSuite access token, the name of custom record types show in the Record Type field.

Where Clause Code Snippet Box

Description:
Shows the code snippet for the Where clause AgilePoint creates when you click Save Query. The WHERE clause is specified using the conditions and logical operators.
Allowed Values:
A valid SQL code snippet.

You can change the code in the code snippet box.

Default Value:
The SQL code AgilePoint creates for the WHERE clause.

Column

Description:
Specifies an entity column to use in your query.
Allowed Values:
An entity column name from the list.
Default Value:
None.

When you select the name of the entity, the list of columns shows in Column field.

Comparer

Description:
Specifies the operator to use in your WHERE clause.
Allowed Values:
  • Like
  • Contains
  • DoesNotContain
  • Equal
  • NotEqual
  • BeginsWith
  • DoesNotBeginWith
  • EndsWith
  • DoesNotEndWith
Default Value:
Like

Value

Description:
Specifies the value for the column.
Allowed Values:
A valid column value.
Default Value:
None
Accepts Variables:
Yes
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use 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, or 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?

Save Query

Function:
Saves the code snippet for the Where clause, and shows the code snippet in box.

Query Records Configuration > Output Mapping tab

Maps the columns of the query response to the schema for your process.

Figure: Query Records Configuration > Output Mapping tab

Query Records Configuration Output Mapping tab

Fields

Field NameDefinition

NetSuite

Description:
Specifies the access token that connects to your NetSuite application.
Allowed Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Create Add Token icon

Opens this Screen:
Access Tokens for NetSuite
Function of this Screen:
Configure an access token to connect to NetSuite.
Example:
Refer to:

Entities / Custom Record Types

Description:
Specifies whether to query a record for a standard NetSuite entity, or a record for a custom record type.
Allowed Values:
  • Entities - Lets you select a standard NetSuite entity from which to query the records.
  • Custom Record Types - Lets you select a custom record type from which to query the records.
Default Value:
Entities

Entity Name

Description:
Specifies the name of an entity from which to retrieve records.
To Open this Field:
  1. On the Query Records Configuration screen, select Entities.
Allowed Values:
An entity name from the list.
Default Value:
None.

When you select the NetSuite access token, the name of entities show in the Entity Name field.

Record Type

Description:
Specifies the name of a custom record type from which to get records.
To Open this Field:
  1. On the Query Records Configuration screen, click Custom Record Types.
Allowed Values:
A custom record type from the list.
Default Value:
None.

When you select the NetSuite access token, the name of custom record types show in the Record Type field.

Map Response to AgilePoint Schema

Description:
Specifies the connection from the NetSuite API response parameter to your process schema.
Allowed Values:
Click the Schema Mapping Schema Mapping icon button to open the Schema Mapper screen.

Use this screen to connect the response to the data model for your process.

Default Value:
None
Example:
Refer to:

Query Records Configuration > Test tab

Makes sure your query is valid for NetSuite.

Figure: Query Records Configuration > Test tab

Query Records Configuration Test tab

Fields

Field NameDefinition

NetSuite

Description:
Specifies the access token that connects to your NetSuite application.
Allowed Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Create Add Token icon

Opens this Screen:
Access Tokens for NetSuite
Function of this Screen:
Configure an access token to connect to NetSuite.
Example:
Refer to:

Entities / Custom Record Types

Description:
Specifies whether to query a record for a standard NetSuite entity, or a record for a custom record type.
Allowed Values:
  • Entities - Lets you select a standard NetSuite entity from which to query the records.
  • Custom Record Types - Lets you select a custom record type from which to query the records.
Default Value:
Entities

Entity Name

Description:
Specifies the name of an entity from which to retrieve records.
To Open this Field:
  1. On the Query Records Configuration screen, select Entities.
Allowed Values:
An entity name from the list.
Default Value:
None.

When you select the NetSuite access token, the name of entities show in the Entity Name field.

Record Type

Description:
Specifies the name of a custom record type from which to get records.
To Open this Field:
  1. On the Query Records Configuration screen, click Custom Record Types.
Allowed Values:
A custom record type from the list.
Default Value:
None.

When you select the NetSuite access token, the name of custom record types show in the Record Type field.

Execute Query

Function:
Makes sure the query is correct, and shows the necessary error message if an error occurs.

If the query runs successfully, the result shows in the box.