| ICaseManagerOpenCaseById Method |
Retrieves a specific case by its unique identifier
Namespace:
EdaIntegrationContract
Assembly:
EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax 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:
ICaseA case object
Exceptions Examples
This example demonstrates retrieving a specific case by its id and printing
its details to the system console.
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);
}
}
See Also