Shared Workflows

List Shared Workflows

SDK Function

SharedWorkflow.list()

Return Object

ListIterator<SharedWorkflow>

Authorization Requirement

Available to all authenticated keys or sessions.

Additional Arguments

Example Request

import com.files.ListIterator;
import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.SharedWorkflow;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  ListIterator<SharedWorkflow> sharedWorkflows = SharedWorkflow.list(parameters);
  for (SharedWorkflow sharedWorkflow : sharedWorkflows.listAutoPaging()) {
    // Operate on sharedWorkflow
  }
} 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());
}

Show Shared Workflow

SDK Function

SharedWorkflow.find()

Return Object

SharedWorkflow

Authorization Requirement

Available to all authenticated keys or sessions.

Function Arguments

ArgumentDescription
id
int64
Required
Shared Workflow ID.

Example Request

import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.SharedWorkflow;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  SharedWorkflow sharedWorkflow = SharedWorkflow.find(id, parameters);
  // Operate on sharedWorkflow
} 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 SharedWorkflow Object

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

AttributeDescription
id
int64
Shared Workflow ID.
name
string
Name displayed to recipients.
description
string
Description displayed to recipients.
submission_revision
string
Revision required when submitting a Shared Workflow run.
form_fields
array(object)
Current custom questions in display order.