OData Query Entity activity

An activity that queries an OData entity to retrieve an entity set.


OData Query Entity activity

Configure the OData Query Entity activity

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

Prerequisites

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?

  • Documentation for Integrations with Third-Party, External, or Open Source Technologies

    The highest priority for AgilePoint NX Product Documentation is accuracy. Whenever feasible, AgilePoint provides input details, business rules, or example values for third-party integrations. These can include any technology that is not native to AgilePoint NX, such as Salesforce, Active Directory, or REST. However this information is subject to change without notice to AgilePoint. Because we can not guarantee the accuracy of this information, the details provided for third-party product input values, as well as examples for third-party product integrations, are limited in the AgilePoint documentation. It is the responsibility of third-party vendors to provide documentation related to these aspects of their software and services.

    For examples of use case implementations or configuration field input values for third-party products, AgilePoint recommends these resources:

    • AgilePoint Community Forums - An AgilePoint-moderated, crowd-sourcing user forum where you can ask questions about specific techniques, the solutions to use cases, workarounds, or other topics that may not be covered in the Product Documentation.
    • Professional Services - If you can not find the information you need for your specific business problem, mentoring is available through AgilePoint Professional Services.
    • Personalized Training - AgilePoint can provide personalized training for your organization. To request personalized training, contact AgilePoint Sales.
    • Third-Party Vendor Documentation - Whenever feasible, AgilePoint provides links to third-party vendor documentation.

      This does not include technology standards or protocols, such as JavaScript, REST, or FTP. Resources for these technical standards are publicly available on the Internet.

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 Web Services Web Services icon tab.
      2. On the Web Services Web Services icon tab, drag the OData Query Entity OData Query Entity icon activity onto your process
    • Change an activity:
      1. In your process, double-click your activity.

Procedure

  1. Complete the fields on the General Configuration screen.

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

  2. Click OData Query Entity Configuration OData Query Entity Configuration icon.
  3. Complete the fields on these screens:
    1. OData Query Entity Configuration > Query String Options tab.
    2. OData Query Entity Configuration > Create Conditions.
    3. OData Query Entity Configuration > Response tab.

    For more information, refer to Get Entity Sets from OData.

  4. (Optional) Click Advanced Advanced icon > E-mail Notifications E-mail Notifications icon.

    For more information, refer to Configure E-mail Notifications for Any Activity.

General Configuration

Specifies the basic settings for the OData 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:
Refer to:

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

OData Query Entity Configuration > Query String Options tab

Configures the query to retrieve your entity sets from your OData service.

Figure: OData Query Entity Configuration > Query String Options tab

OData Query Entity Configuration Query String Options tab

Fields

Field Name Definition

OData Service

Function:
Specifies the access token that connects to your OData service.
Accepted Values:
A list of access tokens configured for your environment.
Default Value:
None

Add Token Add Token icon

Opens this Screen:
Access Token for OData
Function of this Screen:
Configure an access token to connect to an OData service.

Entity

Function:
Specifies the entity to query.

When you select the access token, for your OData service, the name of entities show in this field.

Accepted Values:
An entity name from the list.
Default Value:
None

Configuration

Function:
Specifies the type of configuration.
Accepted Values:
  • Quick Config - Uses the activity configuration UI to create the query to retrieve your entity sets.
  • Manual Setup - Lets you specify an OData query string.
Default Value:
Quick Config
Accepts Process Data Variables:
No

Filter Filter icon

Opens this Screen:
OData Entity Sets Configuration > Create Conditions
Function of this Screen:
Configures the condition to use in your query to filter entity sets in OData.
To Open this Field:
  1. Click Quick Config.

Order By

Function:
Specifies the name of the entity property to make a sequence for the query results.
To Open this Field:
  1. Click Quick Config.
Accepted Values:
An entity property from the list.
Default Value:
None
Accepts Process Data Variables:
Yes

Sort Order

Function:
Specifies the sort order for the result set.
To Open this Field:
  1. Click Quick Config.
Accepted Values:
  • Ascending
  • Descending
Default Value:
None

Top

Function:
Specifies how many records to retrieve from the top of the entity result list.
To Open this Field:
  1. Click Quick Config.
Accepted Values:
A positive integer.
Default Value:
None

Skip

Function:
Specifies how many records to ignore from the top of the entity results.
To Open this Field:
  1. Click Quick Config.
Accepted Values:
A positive integer.
Default Value:
None

Query String Parameter

Function:
Specifies the query string to retrieve entity sets from OData.
To Open this Field:
  1. Click Manual Setup.
Accepted Values:
A text string that can have special charaters with no spaces.
Default Value:
None
Accepts Process Data Variables:
Yes

OData Query Entity Configuration > Create Conditions

Configures the condition to use in your query to filter entity sets in OData.

Figure: OData Query Entity Configuration > Create Conditions screen

OData Query Entity Configuration Create Conditions screen

Fields

Field Name Definition

Column

Function:
Specifies the name of the entity property to use in your query.
Accepted Values:
A property from the list.
Default Value:
None.

When you select the name of the entity from the Entity field, the list of properties shows in the Column field.

Comparer

Function:
Specifies the operator to use in your query.
Accepted Values:
  • =
  • !=
  • >=
  • >
  • <
  • <=
Default Value:
=

Value

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

Select Nest Type

Function:
Specifies the use of operators to nest conditions to filter the entity sets.

You must set the condition first, before you specify the nest type.

To Open this Field:
  1. Click Add Row Add Row icon.
Accepted Values:
  • And - Specifies the logical AND operator.
  • Or - Specifies the logical OR operator.
  • Add - Addition.
  • Sub - Subtraction.
  • Mul - Multiplication.
  • Div - Division.
  • Mod - Modulo operation.
Default Value:
Or

Add Row Add Row icon

Function:
Creates a condition row.

Subcondition Subcondition icon

Function:
Creates the statement that is a condition of a parent statement.

Delete Delete icon

Function:
Deletes the condition row.

Back Back icon

Function:
Saves your rule and goes back to the activity configuration screen.

OData Query Entity Configuration > Response tab

Specifies how to store the information about entity sets in process data variables.

Figure: OData Query Entity Configuration > Response tab

OData Query Entity Configuration Response tab

Fields

Field Name Definition

OData Service

Function:
Specifies the access token that connects to your OData service.
Accepted Values:
A list of access tokens configured for your environment.
Default Value:
None

Add Token Add Token icon

Opens this Screen:
Access Token for OData
Function of this Screen:
Configure an access token to connect to an OData service.

Entity

Function:
Specifies the entity to query.

When you select the access token, for your OData service, the name of entities show in this field.

Accepted Values:
An entity name from the list.
Default Value:
None

Map Response to AgilePoint Schema

Function:
Maps information about entity sets from the OData data model 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

Store the Response in this Variable

Function:
Specifies the process data variable that stores information about an entity set from the OData service.
Accepted Values:
A process data variable that accepts an alphanumeric string in JSON format.
Default Value:
None
Accepts Process Data Variables:
Yes