Get an Instance
Gets an Instance by ID. The Instance ID can be read off the instance object, or copied from the URL of the instance.
Permissions Required
You must have Find permissions to the Instance for this request to succeed.
Method Signature
Instance Get(Guid id);
async Task<Instance> GetAsync(Guid id);
Parameters
Parameter | Type | Description |
---|---|---|
id | Guid | The id of the Instance to get |
returns | Instance | The requested Instance |
Instance Get(string id);
async Task<Instance> GetAsync(string id);
Parameter | Type | Description |
---|---|---|
id | string | The id of the Instance to get |
returns | Instance | The requested Instance |
Example
/*
* This example demonstrates getting a Workflow Instance 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 instance = catalytic.Instances.Get("e6df431b-1041-4326-89e5-1e14caa6a08f");
}
}
}
Updated almost 3 years ago