Click or drag to resize

IExportDocumentManagerMarkAsNotReceived 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:  EdaIntegrationContract.Exports
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 7.6
Syntax
C#
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 EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Exports;

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

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

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

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

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