Click or drag to resize

Updating case information

Demonstrates

How to update the descriptive information of a case.

Note Note
Not all properties of a case can be updated after the case has been created. Please refer to the Case reference page to identify those properties that can be modified.
Example

This example retrieves a case, modifies a few of its properties and displays the updated information to the system console.

C#
using Law.EdaIntegration;
using Law.EdaIntegration.Case;

class Sample
{
    public static void Main()
    {
        // Initialize the environment
        EdaIntegration edaIntegration = EdaIntegration.ConnectToExplore();

        // Open the case that needs to be modified.
        Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 2");

        // Update the information on the case that needs to be changed. 
        // After the new values have been set, tell the CaseManager to save the information.
        edaCase.Description = "An updated description for case 2";
        edaCase.Client = "Client 54";
        edaIntegration.Cases.Update(edaCase);

        // Display the updated values.
        Console.WriteLine("Name: " + edaCase.Name);
        Console.WriteLine("Client: " + edaCase.Client);
        Console.WriteLine("Description: " + edaCase.Description);
    }
}
Example Output
Name: Case 2
Client: Client 54
Description: An updated description for case 2
See Also

Reference

CaseManager