Click or drag to resize

Retrieving a list of Turbo Import cases

Demonstrates

How to retrieve a list of cases using Integration Library

Example

This example iterates through all the active cases and prints their information to the system console.

C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;

class Sample
{
    public static void Main()
    {
        // Initialize the environment
        EdaIntegration edaIntegration = EdaIntegration.ConnectToLawTurboImport();

        // Retrieve the list of cases and display them on the system console
        const string outputFormat = "{0, -30} {1, -30} {2, -30}";
        Console.WriteLine(outputFormat, "Name", "Client", "Description");
        Console.WriteLine(outputFormat, "------------------------------", "-------------------------", "-------------------------");
        foreach (CaseListing tiCase in edaIntegration.Cases.All())
        {
            Console.WriteLine(outputFormat, tiCase.Name, tiCase.Client, tiCase.Description);
        }
    }
}
Example Output
Output
Name                           Client                    Description
------------------------------ ------------------------- -------------------------
Case 1                         Client 123                Sample case #1
Case 2                         Client 45                 Sample case #2
See Also

Reference

CaseManager