Click or drag to resize

ImportSetManagerStartImport Method

Starts the processing to import and analyze any new document sources added to the case

Namespace:  Law.EdaIntegration.Import
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public void StartImport(
	ImportSetBuilder builder
)

Parameters

builder
Type: Law.EdaIntegration.ImportImportSetBuilder
The ImportSetBuilder which describes the data to use for the import processing
Examples
The following example demonstrates how to start the import processing for a case
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;
using Law.EdaIntegration.Import;

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");
        var inputFiles = new List<string> ()
        {
              @"C:\Temp\SomeFolder\Data1",
              @"C:\Temp\SomeFolder\Data2",
              @"C:\Temp\AnotherFolder\Data",
        };

        ImportSetBuilder builder = _apiCase.Imports.ImportSets.GetNewBuilder();
        builder.AddSources(inputFiles, true);
        _apiCase.Imports.ImportSets.StartImport(builder);
    }
}
See Also