Automation Applications

List applications available in the Automation builder

SDK Method

Automation.listApplications()

Return Object

AutomationApplication[]

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator or a Workspace Administrator for the relevant workspace.

Additional Arguments

Example Request

import Automation from 'files.com/lib/models/Automation.js';
import * as FilesErrors from 'files.com/lib/Errors.js';

try {
  const automationApplications = await Automation.listApplications();
  for (const automationApplication of automationApplications) {
    // Operate on automationApplication
  }
} catch (err) {
  if (err instanceof FilesErrors.NotAuthenticatedError) {
    console.error(`Authentication Error Occurred (${err.constructor.name}): ${err.error}`);
  } else if (err instanceof FilesErrors.FilesError) {
    console.error(`Unknown Error Occurred (${err.constructor.name}): ${err.error}`);
  } else {
    throw err;
  }
}

The AutomationApplication Object

Some of the methods above return a AutomationApplication object. The attributes of this object are listed below.

AttributeDescription
key
string
Stable application key.
name
string
Application display name.
brand
string
Application branding key.
logo_url
string
URL of the application's square logo image.