Retrieving a list of Turbo Import cases |
How to retrieve a list of cases using Integration Library
This example iterates through all the active cases and prints their information to the system console.
using Law.EdaIntegration; using Law.EdaIntegration.Case; class Sample { public static void Main() { // Initialize the environment string LawMgmtConnectionString = @"Data Source=localhost;Initial Catalog=LAW5_Management;Integrated Security=False;User ID=myUserId;Password=myPassword"; EdaIntegration edaIntegration = new EdaIntegration(); edaIntegration.InitializeEnvironment(LawMgmtConnectionString); // 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); } } }
Name Client Description ------------------------------ ------------------------- ------------------------- Case 1 Client 123 Sample case #1 Case 2 Client 45 Sample case #2