User manuals

Query tool


Query tool is a tool that allows to extract virtually any data from Opencell with limited aggregation abilities.

This will allow to produce data extracts without having to write SQL query, although a good knowledge of Opencell model is required.

Accessing the Query tool


Query builder is accessible in the “Finance” app’s “Reports / Query tool” menu path.

image-20211201-163640.png


Role QUERY_USER (QUERY_MANAGER) is required to access (manage) queries.






Creating a query


To create a query, go to Query builder.

This page will allow you to:

  • load an existing query,

  • write a new query

  • save query

image-20211201-171333.png

It will also allow you tu run a saved query, as we will see later.


Query filter


The filter section is where you select the data that will be returned by the query.

image-20250225-131401.png

Field

Description

1

Scope entity

Here, you select the entity that you want to query

2

Query owner

The user who created the query

3

Available fields

Select the fields that you want to extract by dragging them to “selected fields” or “filter fields” (this can be performed using action buttons on selected fields).
You also have the ability to search for a specific field, and control the depth of the fields tree.

4

Selected fields

The selected fields that will be extracted are visible here.
You can apply aggregation function (sum, count, average, …), and sort fields, here

5

Filter fields

here, you can drag fields and apply condition (equals, greater, lower, contains, …) to restrict extracted data.
Filters use the same structure as Generic API filters.


Saving a query


When you save a query:

image-20220113-090047.png

You can select a scope:

  • Private: only you can see, use and update it.

  • Protected: all can see and use, but only you can update

  • Public: everyone can see, use, and update


Running a query


A query can be executed immediately, and download result as CSV or Excel file.
If the result size is too big, you can execute it in background, a notification email will be sent when the result is ready.

image-20220113-090848.png


Scheduling a query


Another way to execute queries is to schedule them.

image-20220113-091641.png

This will schedule the query to execute on a regular basis (for example, every day or every month).
You can also list a number of user or emails that will be notified that the query has been executed and the result is available.

image-20220113-092310.png


View query result


You can access results from the result list page.

image-20220113-094020.png

Selecting a result will open the result page where you can view or download the query result.

image-20220113-093700.png