Click or drag to resize

ICaseManagerOpenCaseById Method

Retrieves a specific case by its unique identifier

Namespace:  EdaIntegrationContract
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
ICase OpenCaseById(
	Guid caseId,
	bool runMigrations = false
)

Parameters

caseId
Type: SystemGuid
The unique identifier of the case
runMigrations (Optional)
Type: SystemBoolean
Indicates whether to run any schema/data migrations that are needed when opening the case.

Return Value

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

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();

        string caseId = "0504c9ad-bb89-445a-a2f4-045cfb459db2";
        ICase 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