Query Entity (Dynamics CRM) activity

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


Query Entity activity

Configure the Query Entity activity

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

Examples

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, in the Activity Library, open the Dynamics CRM Dynamics CRM icon tab.
      2. On the Dynamics CRM Dynamics CRM icon tab, drag the Query Entity (Dynamics CRM) Query Entity icon activity onto your process.
    • Change an activity:
      1. In your process, double-click your activity.

General Configuration

Specifies the basic settings for the Query Entity activity.

Figure: General Configuration screen

General Configuration screen

Fields

Field Name Definition

Display Name

Function:
Specifies the activity name that shows in your process.
Accepted Values:
One line of text that can have spaces.
Default Value:
None
Accepts Process Data 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

Function:
Specifies an optional text description for your activity.
Accepted Values:
More than one line of text.
Default Value:
None
Accepts Process Data Variables:
No

Connection Timeout (Seconds)

Function:
Specifies the number of seconds permitted to complete an action before the connection stops.
Accepted Values:
An integer, representing a number of seconds.
Default Value:
600
Accepts Process Data Variables:
No

Query Entity Configuration > Columns tab

Specifies the entity columns to query.

Figure: Query Entity Configuration > Column tab

Query Entity Configuration Column tab

Fields

Field Name Definition

Dynamics CRM

Function:
Specifies the access token that connects to your Dynamics CRM application.
Accepted Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Add Token Add Token icon

Opens this Screen:
Access Token for Microsoft Dynamics CRM
Function of this Screen:
Configure an access token to connect to Dynamics CRM.
Example:
Refer to:

Entity Name

Function:
Specifies the name for your entity.
Accepted Values:
One line of text that can have spaces.
Default Value:
None

When you select the Dynamics CRM access token, the name of the entity shows in the Entity Name field.

Accepts Process Data Variables:
No

Entity Column Fields

Function:
Shows all the columns for the entity specified in the Entity Name field.
Accepted 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, 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?

Configured Column Field

Function:
Specifies the columns from the entity to use in your query.
Accepted 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, 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?

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.

Query Entity Configuration > Where tab

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

Figure: Query Entity Configuration > Where tab

Query Entity Configuration Where tab

Fields

Field Name Definition

Dynamics CRM

Function:
Specifies the access token that connects to your Dynamics CRM application.
Accepted Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Add Token Add Token icon

Opens this Screen:
Access Token for Microsoft Dynamics CRM
Function of this Screen:
Configure an access token to connect to Dynamics CRM.
Example:
Refer to:

Entity Name

Function:
Specifies the name for your entity.
Accepted Values:
One line of text that can have spaces.
Default Value:
None

When you select the Dynamics CRM access token, the name of the entity shows in the Entity Name field.

Accepts Process Data Variables:
No

Where Clause Code Snippet Box

Function:
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.
Accepted 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

Function:
Specifies an entity column to use in your query.
Accepted Values:
A valid entity column shown in the list.
Default Value:
None.

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

Comparer

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

Value

Function:
Specifies the value for the column.
Accepted Values:
A valid column value.
Default Value:
None
Accepts Process Data Variables:
Yes
Limitations:

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?

Save Query

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

Query Entity Configuration > Output Mapping tab

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

Figure: Query Entity Configuration > Output Mapping tab

Query Entity Configuration Output Mapping tab

Fields

Field Name Definition

Dynamics CRM

Function:
Specifies the access token that connects to your Dynamics CRM application.
Accepted Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Add Token Add Token icon

Opens this Screen:
Access Token for Microsoft Dynamics CRM
Function of this Screen:
Configure an access token to connect to Dynamics CRM.
Example:
Refer to:

Entity Name

Function:
Specifies the name for your entity.
Accepted Values:
One line of text that can have spaces.
Default Value:
None

When you select the Dynamics CRM access token, the name of the entity shows in the Entity Name field.

Accepts Process Data Variables:
No

Map Response to AgilePoint Schema

Function:
Specifies the connection from the Dynamics CRM API response parameter to your schema.
Accepted Values:
Click the Schema Mapping Schema Mapping icon button to open the Schema Mapper.

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

Default Value:
None
Limitations:

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?

Query Entity Configuration > Test tab

Makes sure your query is valid for Dynamics CRM.

Figure: Query Entity Configuration > Test tab

Query Entity Configuration Test tab

Fields

Field Name Definition

Dynamics CRM

Function:
Specifies the access token that connects to your Dynamics CRM application.
Accepted Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Add Token Add Token icon

Opens this Screen:
Access Token for Microsoft Dynamics CRM
Function of this Screen:
Configure an access token to connect to Dynamics CRM.
Example:
Refer to:

Entity Name

Function:
Specifies the name for your entity.
Accepted Values:
One line of text that can have spaces.
Default Value:
None

When you select the Dynamics CRM access token, the name of the entity shows in the Entity Name field.

Accepts Process Data Variables:
No

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.