Click or drag to resize

CaseManagerOpenCaseById Method

Retrieves a specific case by its unique identifier

Namespace:  Law.EdaIntegration.Case
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.2
Syntax
C#
public Case OpenCaseById(
	string caseId
)

Parameters

caseId
Type: SystemString
The unique identifier of the case

Return Value

Type: Case
A case object
Exceptions
ExceptionCondition
EdaApiException
Examples
This example demonstrates retrieving a specific case by its id and printing its details to the system console.
C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;

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);

        string caseId = "0504c9ad-bb89-445a-a2f4-045cfb459db2";
        Case edaCase = edaIntegration.Cases.OpenCaseById(caseId);

        Console.WriteLine("Name: " + edaCase.Name);
        Console.WriteLine("Client: " + edaCase.Client);
        Console.WriteLine("Description: " + edaCase.Description);
        Console.WriteLine("Last Accessed: " + edaCase.LastAccessed);
    }
}
/*
This example produces the following results:

   Name: Case 1
   Client: Client 123
   Description:
   Last Accessed: 6/27/2014 10:59:30 PM
 */
See Also