Automation Application Actions

List actions available for an Automation application

SDK Function

Automation.listApplicationActions()

Return Object

ListIterator<AutomationApplicationAction>

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.

Function Arguments

ArgumentDescription
application_key
string
Required
Application key returned by the Automation applications list.

Additional Arguments

Example Request

import com.files.ListIterator;
import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.Automation;
import com.files.models.AutomationApplicationAction;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  parameters.put("application_key", "application_key");
  
  ListIterator<AutomationApplicationAction> automationApplicationActions = Automation.listApplicationActions(parameters);
  for (AutomationApplicationAction automationApplicationAction : automationApplicationActions.listAutoPaging()) {
    // Operate on automationApplicationAction
  }
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

The AutomationApplicationAction Object

Some of the functions above return a AutomationApplicationAction object. The attributes of this object are listed below.

AttributeDescription
application
AutomationApplication
Application that provides the action.
key
string
Stable action key within the application.
name
string
Action display name.
description
string
What the action does.
fingerprint
string
Fingerprint of the action contract shown to the author.
fields
array(object)
Normalized input fields.
output
object
Normalized output schema.
origins
array(string)
HTTPS origins supported by this action.
authentication
array(object)
Authentication types accepted by this action.