Skip to main content
Skip table of contents

Dependencies to the project

It may be useful to display data related to the project. To do that, you can reference project attributes in a Connected item query.

The $project variable is available and exposes 5 attributes:

TypeNameDescriptionExample
String
key

Returns a string which corresponds to the current project key

$project.key

> "ECC"
String
name
Returns a string which corresponds to the current project name$project.name

> "Elements Connect Cloud"
StringidReturns a unique identifier which corresponds to the current project id
$project.id

> "10001"
StringtypeReturns a string which corresponds to the current project type
$project.type

> "Software"
StringcategoryReturns a string which corresponds to the current project category
$project.category

> "Apps"

Referencing properties of the current project works the same way as referencing the value of other Connected items.
Here is an example:

SQL
SELECT role, manager, company
FROM employees
WHERE company= $project.name

is evaluated to:

SQL
SELECT role, manager, company
FROM employees
WHERE company = 'Elements'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.