Defining Data
Learn how to work with data in Kognitos.
Overview
In Kognitos, data is defined similarly to variables in software development. In a Kognitos automation, data is defined using the following syntax:
Each data element consists of a name and a value. In the example below, the customer
is the data's name. It is assigned the value John Smith
:
Data Names
Data names define how information is labeled and referenced. The following rules apply:
1. Begin with "the"
All data names must be prefaced with the. For example:
the email
the phone number
the primary user email
2. Choose Simple or Descriptive Names
Names can be simple or descriptive, with adjectives used optionally to provide additional clarity or context.
Simple Name:
the message
Descriptive Name:
the special user greeting message
Follow Naming Rules
Following proper naming rules is essential. Incorrectly named or referenced data can cause a process to become stuck in a "processing" state.
Data Values
Data values can be numbers, text, tables, or objects like documents. Values can also be singular or plural.
Numeric Values
Numeric values can be defined for data like age, balance, rates, etc.
Text and Date Values
When assigning text or date values, enclose them within double quotes (""
).
Text
Date
Plural Values
To define plural values for a data element, list the values together, separated by commas. For example:
Assigning Data Values
You can assign data values using as
, is
, or are
.
Example 1
In this example, the registration date is assigned the value 11-05-2024.
Example 2
In this example, the order name is assigned the value of the customer's last name.
Example 3
In this example, the meeting date is assigned the value of tomorrow.
Example 4
In this example, the promo codes is assigned a plural value using the are
keyword.
Last updated
Was this helpful?