Import Workflows
Import a Workflow into your Catalytic team using a .catalytic
file, created by the Export Workflows method or via the Catalytic WebApp. This method returns the newly created Workflow.
Method Signature
Workflow Import(FileInfo importFile, string password = null);
async Task<Workflow> ImportAsync(FileInfo importFile, string password = null);
Parameters
Parameter | Type | Description |
---|---|---|
importFile | FileInfo | The Workflow export file to use to create the Workflow |
password | string | Optional Password used to secure the export file |
returns | Workflow | The imported Workflow |
Example
/*
* This example demonstrates importing a Workflow from a password-secured
* `.catalytic` Workflow export file.
*/
using Catalytic.Sdk.Entities;
using System.IO;
namespace Catalytic.Sdk.Examples
{
class Program
{
static void Main(string[] args)
{
var catalytic = new Catalytic.Sdk.CatalyticClient(Credentials.Default);
var importFile = new FileInfo("/path/to/export/file.catalytic");
var password = "my-export-password";
var workflow = catalytic.Workflows.Import(importFile, password);
}
}
}
Updated almost 4 years ago