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 EdaIntegrationContract; using EdaIntegrationContract.Case; class Sample { public static void Main() { // Initialize the environment var edaIntegration = new 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 (ICaseListing 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