Click or drag to resize

ExportDocumentManagerMarkAsNotReceived Method (IEnumerableInt32)

Clears the received/processed state for a set of documents within an export. After calling this, the documents will appear again in the list returned from All(Boolean)

Namespace:  Law.EdaIntegration.Exports
Assembly:  Law.EdaIntegration (in Law.EdaIntegration.dll) Version: 7.3
Syntax
C#
public void MarkAsNotReceived(
	IEnumerable<int> documentIds
)

Parameters

documentIds
Type: System.Collections.GenericIEnumerableInt32
The list of documents ids to update
Remarks
This method supports updating up to 1000 documents at a time. Any list longer than 1000 will cause an exception to be thrown.
Remarks
This method exists to aid in prototyping or testing using the EdaIntegration Library.
Examples
The following example demonstrates retrieving the first 500 documents from an export and clearing their received/processed state.
C#
using Law.EdaIntegration;

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

        // Get the export
        Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        Export export = edaCase.Exports.ByName("Export-001"); 

        // Retrieve the list of documents that were exported
        ExportDocumentManager mgr = export.Documents;

        // Retrieve the identifiers of the first 500 documents
        List<int> docIds = mgr.All(true).Take(500).Select(x => x.Id).ToList();

        // Clear their received state
        mgr.MarkAsNotReceived(docIds);
    }
}
See Also