

Public static DataTable GetProductionDataTable()
PTMC PROTRADER IMPORT IMAGE HOW TO
The GetProductionDataTable() method illustrates how to create and populate this table object, which is referenced in a previous code sample. You can create a DataTable object that includes metadata required to import images to Relativity, such as an identifier for associating images with a specific document, and a file path. Static void ImportJobOnMessage(Status status)Ĭonsole.WriteLine("Message: Create a DataTable object for a production The previous code sample uses these methods for capturing this information. You can use these methods to display messages about the status of an import job and any errors that may occur during it.

= GetProductionDataTable() Ĭonsole.WriteLine("Executing import.") Use this code for grouping images associated with a document. You can use the Bates number as an identifier for an image. Specify the ArtifactID of the document identifier field, such as a control number. ImportJob.OnFatalException += ImportJobOnFatalException ImportJob.OnComplete += ImportJobOnComplete ImportJob.OnMessage += ImportJobOnMessage Var importJob = iapi.NewProductionImportJob(desiredProduction.ArtifactID) Var desiredProduction = productionList.Single(p => p.Name.Equals(productionSetName, StringComparison.InvariantCultureIgnoreCase)) You add the production sets to this production. Var productionList = iapi.GetProductionSets(workspaceArtifactID) Pass the ArtifactID of a workspace to retrieve a collection of production sets. String relativityWebAPIUrl = " ImportAPI iapi = new ImportAPI(relativityUserName, relativityPassword, relativityWebAPIUrl) String productionSetName = "TestProduction" Note: If your environment is configured to use RSA authentication, then you can enter your Relativity account username, and RSA passcode when instantiating the ImportAPI class. This sample code illustrates how to perform these tasks, as well as references the following code samples that demonstrate how to write messages and create a DataTable object. You use a DataTable object as the data source for a production import job. When importing produced images, you pass the ArtifactID of the target production set to the NewProductionImportJob() method on the ImportAPI class. Create a DataTable object for a production.This page contains the following information:

For additional code samples, see the Import API samples repository. Note: On GitHub, you can find can comprehensive samples illustrating how to import native documents, images, objects, and productions. You can add produced images to a production set in Relativity by using the methods available on the ImportAPI class.
