Shared Workflows

List Shared Workflows

SDK Method

SharedWorkflow.List();

Return Object

FilesList<SharedWorkflow>

Authorization Requirement

Available to all authenticated keys or sessions.

Additional Arguments

Example Request

using FilesCom.Models;

try
{
    var sharedWorkflowIterator = SharedWorkflow.List();
    await foreach (SharedWorkflow sharedWorkflow in sharedWorkflowIterator.ListAutoPagingAsync()) {
        // Operate on sharedWorkflow
    }
}
catch (FilesCom.NotAuthenticatedException e)
{
    Console.WriteLine($"Authentication Error Occurred ({e.GetType().Name}): " + e.Message);
}
catch (FilesCom.SdkException e)
{
    Console.WriteLine($"Unknown Error Occurred ({e.GetType().Name}): " + e.Message);
}

Show Shared Workflow

SDK Method

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

using FilesCom.Models;

try
{
    var sharedWorkflow = await SharedWorkflow.Find(1L);
    // Operate on sharedWorkflow
}
catch (FilesCom.NotAuthenticatedException e)
{
    Console.WriteLine($"Authentication Error Occurred ({e.GetType().Name}): " + e.Message);
}
catch (FilesCom.SdkException e)
{
    Console.WriteLine($"Unknown Error Occurred ({e.GetType().Name}): " + e.Message);
}

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.