Export Workflows

Export an existing Workflow from your Catalytic team, optionally secured with a password. This method produces a File that can be downloaded and used to import the Workflow into another team.

πŸ‘

Permissions Required

You must have Find permissions to the Workflow in order to for this request to succeed.

Method Signature

File Export(string id, string password = null);
async Task<File> ExportAsync(string id, string password = null);

Parameters

ParameterTypeDescription
idstringThe string Id of the Workflow to export
passwordstringOptional Password used to secure the exported file
returnsFileThe exported file, ready for download

Example

/*
 * This example demonstrates exporting a Workflow from a Catalytic
 * team and downloading the export file.
 */
using System.IO;
using Catalytic.Sdk.Entities;
using System.Collections.Generic;

namespace Catalytic.Sdk.Examples
{
    class Program
    {
        static void Main(string[] args)
        {
            var catalytic = new Catalytic.Sdk.CatalyticClient(Credentials.Default);
            var workflowId = "10000000-0000-0000-0000-000000000001";
            File export = catalytic.Workflows.Export(workflow);
            FileInfo file = catalytic.Files.Download(export.Id);
        }
    }
}