Shared Workflows

List Shared Workflows

SDK Method

\Files\Model\SharedWorkflow::list;

Return Object

SharedWorkflow[]

Authorization Requirement

Available to all authenticated keys or sessions.

Additional Arguments

Example Request

try {
  $shared_workflows = \Files\Model\SharedWorkflow::list();
  foreach ($shared_workflows as $shared_workflow) {
    // Operate on $shared_workflow
  }
} catch (\Files\Exception\NotAuthenticatedException $e) {
  echo 'Authentication Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
} catch (\Files\Exception\FilesException $e) {
  echo 'Unknown Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
}

Show Shared Workflow

SDK Method

\Files\Model\SharedWorkflow::find;

Return Object

SharedWorkflow

Authorization Requirement

Available to all authenticated keys or sessions.

Method Arguments

ArgumentDescription
id
int64
Required
Shared Workflow ID.

Example Request

try {
  $shared_workflow = \Files\Model\SharedWorkflow::find($id);
  // Operate on $shared_workflow
} catch (\Files\Exception\NotAuthenticatedException $e) {
  echo 'Authentication Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
} catch (\Files\Exception\FilesException $e) {
  echo 'Unknown Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
}

The SharedWorkflow Object

Some of the methods 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.