Automation Applications

List applications available in the Automation builder

SDK Method

automation.ListApplications()

Return Values

Returns a *automation.Iter and an error. All() returns iter.Seq2[any, error] because this package has listings that return different resource types. This operation yields files_sdk.AutomationApplication values. Use a type assertion or type switch to access their fields. Check each loop error before using its resource. Next() and Err() remain supported.

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 (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    "github.com/Files-com/files-sdk-go/v3/automation"
)

automationApplicationIterator, err := automation.ListApplications(files_sdk.AutomationListApplicationsParams{})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for automationApplication, err := range automationApplicationIterator.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(automationApplication)
}

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.
LogoUrl
string
URL of the application's square logo image.