Shared Workflows

List Shared Workflows

SDK Method

Files::SharedWorkflow.list

Return Object

List<SharedWorkflow>

Authorization Requirement

Available to all authenticated keys or sessions.

Additional Arguments

Example Request

begin
  shared_workflows = Files::SharedWorkflow.list
  shared_workflows.auto_paging_each do |shared_workflow|
    # Operate on shared_workflow
  end
rescue Files::NotAuthenticatedError => e
  puts "Authentication Error Occurred (#{e.class.to_s}): " + e.message
rescue Files::Error => e
  puts "Unknown Error Occurred (#{e.class.to_s}): " + e.message
end

Show Shared Workflow

SDK Method

Files::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

begin
  shared_workflow = Files::SharedWorkflow.find(id)
  # Operate on shared_workflow
rescue Files::NotAuthenticatedError => e
  puts "Authentication Error Occurred (#{e.class.to_s}): " + e.message
rescue Files::Error => e
  puts "Unknown Error Occurred (#{e.class.to_s}): " + e.message
end

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.