Click or drag to resize

ExportDocumentManagerMarkAsNotReceived Method (Int32)

Clears the received/processed state for a document within an export. After calling this, the document 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(
	int documentId
)

Parameters

documentId
Type: SystemInt32
The unique identifier of the document to update
Remarks
This method exists to aid in prototyping or testing using the EdaIntegration Library.
Examples
The following example demonstrates marking a document as not having been received and processed. Doing this ensures that subsequent calls to All(Boolean) will include this document.
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;

        // Loop through each document and clear it's received state
        foreach (IExportDocument doc in mgr.All(true))
        {
            Console.WriteLine("{0}:  {1}", doc.ExportNumber, doc.FileName);

            // Cleat the received state of the document
            mgr.MarkAsNotReceived(doc.Id);
        }
    }
}
/*
This example produces the following results:

00001160:  Unprofitable actions.msg
00001155:  Four Attributes.msg
00002241:  Technology outlook.pdf
00001163:  Load Forecasting Technology.msg
00002240:  Book1.xlsx
00001159:  Monthly data.msg
00001170:  Viewpoint from above.msg
00001168:  Scope.docx
00001166:  Key Stats YTD 2011.xlsx
00001167:  Forecast 2012.pptx
 */
See Also