GenericRepositoryTMassCreate Method

Relativity Services API
Creates RDO instances for each ArtifactRequest in artifacts based on the Field values provided by a 'template' ArtifactRequest.

Namespace:  kCura.Relativity.Client.Repositories
Assembly:  kCura.Relativity.Client (in kCura.Relativity.Client.dll) Version: 17.0.1.1 588f15fd7550dbf54835f3417a0142d4ea37dbb5
Syntax

public WriteResultSet<T> MassCreate(
	T templateArtifact,
	List<T> artifacts
)

Parameters

templateArtifact
Type: T
An Artifact with a set of fields providing default values
artifacts
Type: System.Collections.GenericListT
A list of Artifacts to be created. An RDO will be created for each Artifact in the list.

Return Value

Type: WriteResultSetT
WriteResultSet indicating the status of the MassCreate operation

Implements

IGenericRepositoryTMassCreate(T, ListT)
Remarks

The template provides the default values. Any field values provided in an ArtifactRequest will override the defaults provided by the template ArtifactRequest.

Only the Fields defined in the template will be populated in the created RDO instances. Any Field defined in an Artifact which is not also in the template will be ignored. All RDO instances must be of the same ArtifactType.

See Also

Reference