US English (US)
FR French
DE German
PL Polish
SE Swedish
FI Finnish

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

English (US)
US English (US)
FR French
DE German
PL Polish
SE Swedish
FI Finnish
  • Log in
  • Home
  • Platform
  • ESM
  • Other Technical ESM Documentation
  • WebAPI

Efecte Query Language Description

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Service Management
    Matrix42 Professional Solution Matrix42 Core Solution Enterprise Service Management Matrix42 Intelligence
  • Identity Governance and Administration (IGA)
    IGA overview IGA solution library
  • Platform
    ESM ESS2 ESS Efecte Chat for Service Management Integrations Add-ons
  • Release Notes for M42 Professional, IGA, Conversational AI
    2026.1 2025.3 2025.2 2025.1 2024.2 2024.1 2023.4 2023.3 2023.2 2023.1 2022.4 2022.3 Release Information and Policies
  • Other Material
    Terms & Documentation Guidelines Accessibility Statements
  • Services
+ More
    • Service Management

    • Identity Governance and Administration (IGA)

    • Platform

    • Release Notes for M42 Professional, IGA, Conversational AI

    • Other Material

    • Services

Efecte Query Language Description

Efecte Query Language (EQL) is used to query data from Efecte. Web API can be used to integrating Efecte with other systems and this document aims to offer examples for web API services.

Efecte Query Language

Efecte Query Language (EQL) is an SQL-like structured language for querying Efecte through the Web API. It enables performing powerful, flexible searches against the Efecte data model. 

In order to use EQL effectively, one needs to know some basic concepts about the underlying data model. The elements of the data model most commonly used with EQL are "entity", "entitydata", "template" and "folder". 

Below are simple examples to illustrate the use of EQL. The tables provide reference information about the most important classes and properties of the Efecte data model.

Searchable classes:

Class

Alias

com.efecte.datamodel.Entity

entity

com.efecte.datamodel.Folder

folder

com.efecte.datamodel.Template

template

Properties of class entity (com.efecte.datamodel.Entity):

Property

Description

id

entity

template

Reference of class template (com.efecte.datamodel.Template)

templateId

 

folder

Reference of class folder (com.efecte.datamodel.Folder)

name

 

hidden

Data cards that has hidden value for visibility, value 0 or 1

deleted

Data cards that have been deleted, i.e. moved to trash bin, value 0 or 1

metaData

A group of objects of type com.efecte.datamode.Metadata

stringData

A group of objects of type com.bitmount.equipment.BSSStringEntityData

integerData

Collection of integer data of an entity

floatData

Collection of float data of an entity

dateData

Collection of date data of an entity

referenceData

Collection of reference data of an entity

* targetName

 

* target

Target data card

externalReferenceData

Collection of external reference data of an entity

* targetName

 

* targetLocation

 

textData

Collection of text data of an entity

staticStringData

Collection of static string data of an entity

staticIntegerData

Collection of static integer data of an entity

staticFloatData

Collection of static float data of an entity

staticDateData

Collection of static date data of an entity

Properties of Class Template

Properties of class Template (com.efecte.datamodel.Template):

Property

Description

id

 

name

 

code

 

systemCode

 

primaryGroupAttributeID

 

description

 

metadata

A group of objects of type com.efecte.datamode.Metadata

referringAttributes

A group of objects of type com.bitmount.equipment.BSSAttribute

permissions

A group of objects of type BSSTemplatePermission

Properties of Class Folder

Properties of class Folder (com.efecte.datamodel.Folder):

Property

Description

id

Database id

name

 

code

Module code, describes in what module the folder belongs to

parentId

 

parentType

 

idCode

A code given by administrator

newTemplatesAllowed

 

metadata

A group of objects of type com.efecte.equipment.Metadata

allowedTemplates

A group of objects of type com.bitmount.equipment.BSSTemplate

roles

A group of objects of type com.bitmount.boas.AdminRoles

Permissions

A group of objects of type BSSEntityGroupPermission

Date Macros and Time Expressions


EQL queries allows use of date macros and time expressions with date macros. These two can be combined like now+6h or start_month-1M.

Date Macros:
 

Macro

Description

now

Current date time

start_day

Start of current day

start_week

Start of current week

start_month

Start of current month

start_quarter

Start of current quarter

start_half

Start of current half

start_year

Start of current year

end_day

End of current day

end_week

End of current week

end_month

End of current month

end_quarter

End of current quarter

end_half

End of current half

end_year

End of current year

Time Expressions:

Expression

Description

y

Year

M

Month

d

Day

h

Hour

m

Minute

s

Second

w

Week

EQL Examples

Get count of All Data Cards of the Whole Efecte System

Get count of All Data Cards of the Whole Efecte System. This is good way to test that web API is working properly.

SELECT count(id) FROM entity

Search Specific Data from a Data Card

Search the name of the data card, name of the template and the name of the folder for entities that have specific host_name and are in template ‘workstation’ 

SELECT name, template.name, folder.name FROM entity WHERE $host_name$= 'falco' AND template.code = ‘workstation’

Search All Data Cards of a Single Module

Search all data cards of a single module: 

SELECT entity FROM entity WHERE template.systemCode = 'beq'

or using subquery

SELECT entity FROM entity WHERE templateId IN (SELECT id FROM template WHERE systemCode = 'beq')

or using exists query: 

SELECT entity FROM entity WHERE EXISTS (SELECT id FROM template WHERE id = entity.templateId AND template.systemCode = 'beq') 

Search All incident Data Cards that are not in Deleted or Hidden

Search all data cards that are not hidden or deleted:

SELECT entity FROM entity WHERE template.code='incident' AND entity.deleted=0 AND entity.hidden=0

Search Data Cards and Select Given Attributes in Folder

Select given attributes of data cards in template. Returns attributes efecte_id, subject and status:

SELECT $efecte_id$, $subject$, $status$ FROM entity WHERE entity.template.code = 'incident'

Search Data Cards Which Have Been Created Between Dates

It is possible to use date macros in EQL. Below is example that fetches all incidents that have been created between two months ago and current date time (now):

SELECT entity FROM entity WHERE template.code='incident' AND $created$>'start_month-2M' AND $created$<'NOW'

Search Distinct Data Cards

Finding distinct data cards

SELECT DISTINCT entity.referenceData.target FROM entity WHERE template.code = 'invoice_row'


Search Data Cards Using Reference Value

Find workstation that is owned by user with full name

SELECT entity FROM entity WHERE template.code='workstation' AND $user:full_name$='user test'
 

api web services efecte query language eql webapi admin esm

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

Related Articles

  • Efecte Web API Description
  • Web API Troubleshooting and Testing Examples
  • Web API Errors

Copyright 2026 – Matrix42 Professional.

Matrix42 homepage


Knowledge Base Software powered by Helpjuice

0
0
Expand