Get a Workflow
Gets a Workflow by ID. The Workflow ID can be read off of the Workflow object, or copied from the URL of the Workflow.
Permissions Required
You must have Find permissions to the Workflow in order to for this request to succeed.
Method Signature
Workflow Get(Guid id);
async Task<Workflow> GetAsync(Guid id);
Parameters
Parameter | Type | Description |
---|---|---|
id | Guid | The id of the Workflow to get |
returns | Workflow | The requested Workflow |
Workflow Get(string id);
async Task<Workflow> GetAsync(string id);
Parameter | Type | Description |
---|---|---|
id | string | The id of the Workflow to get |
returns | Workflow | The requested Workflow |
Example
/*
* This example demonstrates getting a Workflow by ID
*/
using Catalytic.Sdk.Entities;
namespace Catalytic.Sdk.Examples
{
class Program
{
static void Main(string[] args)
{
var catalytic = new Catalytic.Sdk.CatalyticClient(Credentials.Default);
var workflow = catalytic.Workflows.Get("c9f2beec-10c0-4f2f-b4e0-1d884c7e053c");
}
}
}
Updated about 3 years ago