Click or drag to resize

ExportManagerCreate Method

Creates a new export for a case and set it as the active export

Namespace:  Law.EdaIntegration.Exports
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public Export Create(
	string exportName,
	ExportType exportType,
	string baseDirectory = null
)

Parameters

exportName
Type: SystemString
The name of the new export
exportType
Type: Law.EdaIntegration.ExportsExportType
The type of the new export
baseDirectory (Optional)
Type: SystemString
Optional base directory to use for staging LAW Direct export files

Return Value

Type: Export
The export object added to the case
Examples
This example demonstrates how to create a new export for a case.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Exports;

class Sample
{
    public static void Main()
    {
        string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword";
        EdaIntegration edaIntegration = new EdaIntegration();
        edaIntegration.InitializeEnvironment(connectionString);

        Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        Export export = edaCase.Exports.Create("Export-001");

        Console.WriteLine("Id: {0}", export.Id);
        Console.WriteLine("Name: {0}", export.Name);
        Console.WriteLine("Type: {0}", export.Type);
        Console.WriteLine("Scope: {0}", export.Config.Scope);
        Console.WriteLine("Last Run: {0}", export.LastRun);
        Console.WriteLine("Total Documents: {0}", export.TotalDocuments);
        Console.WriteLine("Error Count: {0}", export.NumErrors);
    }
}
/*
This example produces the following results:

Id: 3
Name: Export-001
Type: Native
Scope: Filtered
Last Run: 
Total Documents: 0
Error Count: 0
 */
See Also