Applications

An application is any program in Losant that is designed to perform a function for the end user. Applications can encompass multiple devices and workflows, however, devices and workflows can only be part of a single application at a time. You can view application data for one application or many in Dashboards.

Creating Applications

There are two methods in which you can create an application in Losant:

  • Click the Add Application button in the top right corner of the Applications Screen.
  • Click the applications submenu on the left side of the screen and then click Add Application.

Create Application

When creating an application, you are prompted to enter the following information:

  • Application Name—Name used to identify your application. The name can be changed at any time in the Application Settings.
  • Description—Optional. More detailed description of the application.
  • Owner—Creator of the application. Your application must be scoped to your personal Sandbox or to an organization for which you have the Editor role. The owner can be changed at a later date only if you have Administrator permissions for the parent organization (or Sandbox).

Create Application Form

Deleting Applications

To delete an application:

  1. Open the application page for the application you wish to delete.
  2. Navigate to Settings > Application Info > Delete Application.

Delete Application

Cloning an Application

If you want to make a near-identical copy of an application, you can clone it. To do so:

  1. Open the Application Info screen.
  2. Select Clone.
  3. Choose an owner of the application from one of the available options in the drop-down menu. By default this is the organization or Sandbox that currently owns the source application, but this can be changed to any other organization where you have administrator access (or your own Sandbox).
  4. Optional. Choose whether to clone the following by selecting the checkbox:

    • Clone devices—Copies all of your device data to the new application. Does not include any device data or access keys tied to your devices.
    • Clone data (rows) within data tables—Copies all the data stored within your data tables. If unchecked, your new application will still include all of your tables and column configurations.
    • Clone application files—Copies all of your files to the new application. If unchecked, links to your files will stop working.
  5. Click Clone Application.

Clone Application

Cloned applications are still subject to account resource limits, and you are unable to clone an application if the result of the operation causes any of your resources to go over their allowed limits.

The following will not be cloned into the new application:

The following will be cloned but in a disabled state:

All other application resources, archive configuration settings, and global values are cloned into the new application.

Depending on the size of your cloned application, it may take some time for the process to complete, in which case you will receive an email at the address of your choosing, configured in the dialog, when your new application is ready.

Application Log

The Application Log is a real-time log that displays information about various aspects of your Losant application. It’s most used for debugging purposes.

Application Log

As a real-time tool, the Application Log always begins in an empty state. Logs appear as actions on your application take place. Logs show for the following events:

MQTT

Device

  • Device State—When devices report state.
  • Device Commands—When Losant sends a device command.
  • Device Connection Status—When devices successfully connect or disconnect from Losant via the MQTT broker or the REST API.

Webhooks

Endpoints

Integrations

  • Integration Messages—When Losant receives a message from an Integration.

To find resources quickly, you can search using one of two search bars. Your search results vary slightly depending on which search bar you choose. Clicking a result navigates you to its corresponding page.

Application Search

The application overview search can be accessed on the application overview page. Click Overview in the application subnavigation on the left of any page. On clicking in the search bar, a dropdown menu appears with your search results.

Application Search Bar

In an empty state, the dropdown displays a list of quick links. Once you enter a search term, the dropdown updates and populates a list of all items in your application that match your search.

The subnavigation search panel can be accessed from anywhere in an application on the left navigation panel.

Application Subnav Search

In an empty state, the panel displays a list of the devices and workflows in that application that you have looked at most recently, as well as a list of quick links. Once you enter a search term, the panel populates a list of all items in your application that match your search.

Tip: The subnavigation search panel can be accessed by the keyboard shortcut Option (⌥) + L (if you’re using a Mac) or Alt + L (on Windows).

Application README

Every application includes a README, which is a tool to communicate implementation details between team members. Think of an application README as a concise synopsis of how your application works. The content of every application’s README differs depending on the application, however, every new application includes a default README with tips to get your writing started. READMEs are written in Markdown, which allows you to format the appearance of your file.

Application Globals

Application globals are a set of key/value pairs that are accessible inside of any workflow in the current application. This is a place to store application-wide configuration that is used across multiple workflows, like phone numbers or API keys. To view or manage your application globals:

  1. Navigate to the Settings section of your application.
  2. Click the Globals link.

Application Globals

You can add a new global by clicking the Add Global button. This creates a new global variable for which you must enter the following properties:

  • Key—The property name under which the global can be accessed. Keys are required, and they may only contain uppercase and lowercase letters, numbers, underscores, and hyphens (-). Keys must also be unique across your other application globals.
  • Type—Type of data stored within this global: String (default), Number, or JSON.
  • Value—Value to return when this application global is invoked within a workflow. This field is required and the input must validate against the global’s chosen type.
  • Description—Optional. Description for this global that informs other collaborators how the global functions.
  • Do not send to edge workflows—By default, application global values are sent down to your edge compute devices through your edge workflows. If the global contains sensitive information that you would rather not deploy to a device in the field, check this box to disable this behavior.
  • Do not send to edge workflows - By default, application global values are sent down to your edge compute devices through your edge workflows. If the global contains sensitive information that you would rather not deploy to a device in the field, you may check this box to disable this behavior.

Any values configured here are accessible under the globals object in:

Application globals can be overridden in a workflow by defining a different value at the same key in the workflow globals for that specific workflow.