GetTransactionalDataImportProgress

Gets the import status of a previously started transactional data import

This method gets the progress of a transactional data import.

It will return a status indicating where the import is currently at, which will be either 'NotStarted', 'NotFinished', 'Finished' or 'Failed'.

SOAP action: http://apiconnector.com/v2/ApiService/GetTransactionalDataImportProgress

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Import ID - required; GUID

Output parameters

  • GetTransactionalDataImportProgressResult
    • ID - GUID
    • Status - string (NotStarted', 'NotFinished', 'Finished', 'Failed')

Example

using (var client = new ApiServiceClient())
{
    client.ClientCredentials.UserName.UserName = "username";
    client.ClientCredentials.UserName.Password = "password";

    var importId = new Guid("00000000-0000-0000-0000-000000000000");
    var import = client.GetTransactionalDataImportProgress(importId);
    while (import.Status != ApiTransactionalDataImportStatuses.NotStarted && import.Status != ApiTransactionalDataImportStatuses.NotFinished)
    {
        Thread.Sleep(60000);
        import = client.GetTransactionalDataImportProgress(importId);
    }
}