What are Variables?
  • 13 Jun 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

What are Variables?

  • Dark
    Light
  • PDF

Article summary

Description

To borrow from a classical definition of a variable in the Software Programming realm, variables are essentially containers that hold pieces of data. The variables have names or handles through which the actual data can be referenced. They are called 'variables' because the data that they are referring to can change. A variable, when created for the first time, also has a 'data type' associated with it.

Data Types

The 'data-type' of the variable defines what kind of data it can hold.  For example, there can be a variable of type 'text' which can hold textual information comprising alphanumeric characters including any symbols, etc.  A variable of type 'numeric' can hold only numeric characters 0 through 9.
Refer to the table below for a list of variable types that are available on the Ushur platform.

Data type

Description

Text

Accept any text

Fixed Length Alphanumeric

Accept only numbers and letters of fixed length

Phone Number

Accept phone number

Fixed Length Numeric

Accept only numbers of fixed-length

Decimal Range

Accept a decimal number within a number range

uid_triggersend

A string boolean if this is a trigger or not

uid_ushurname

Name of the Ushur

Numeric Range

Accept a whole number within a number range

uid_senddate

The date and time to schedule the Ushur as part of the trigger. The format is: mm/dd/yyyy hh:mm am/pm

uid_sendPhoneNo

The phone number to which the trigger is scheduling the Ushur

uid_sendPrimaryKeyId

The primary key identifier for the remote enterprise

Credit Card

Accept credit card information

Date

Accept dates

Email

Accept email addresses

Address

Accept physical addresses

Alphanumeric

Accept a continuous combination of numbers and letters

Timestamp

Accept formatted time and timestamp

Fixed Length Text

Accept any text of fixed length

uid_location

Location Info with latitude and longitude

Asset Data

Asset data

List

Accept a comma-separated list of text

Numeric

Accept numbers only

Date Range

Accept a date within a range of dates

Access Variables 

In the builder, typing the “@“ sign brings a dropdown with the list of variables. The drop-down list first displays System variables, Enterprise variables, and Ushur variables. Scroll to the intended variable then click the variable to select it.

In the builder, Enterprise variables are color-coded GREEN, Ushur variables are color coded BLUE, and System variables are color-coded BLACK

Variable Categories

There are three main categories of variables that allow access to different areas of the Ushur system. Follow the documents linked below for a deeper understanding of each of these categories.


Was this article helpful?