As part of the Relativity Services API (RSAPI) Deprecation, content on this page referring to the RSAPI and the Patient Tracker application is in the process of being deprecated and will no longer be supported. For more information and alternative APIs, see RSAPI deprecation process.

Relativity artifact identifiers

Most of the Relativity data are stored in the database as artifacts. You can use several key values, including artifact IDs, artifact types, and GUIDs, to interact with the artifacts through the Relativity APIs.

This page contains the following information:

See these related pages:

Artifact ID

Relativity artifacts are identified by unique Artifact IDs, corresponding to the primary database table identifier. The following is an example of querying the Documents table workspace database with the Artifact ID.

You can also find the artifact ID from the Relativity user interface. The following is an example of the Documents view displaying the Artifact ID field.

The following is an example of the Workspaces view displaying the Case Artifact ID field.

Artifact ID is widely used when interacting with objects through the Relativity Services API. ArtifactID is a property of the generic Artifact class. The property is also available on all strongly-typed data transfer objects (DTOs). For more information, see Relativity class libraries reference.

The artifact ID is also used when interacting with the data through the REST API. It is returned as a JSON property of all Relativity objects.

Artifact type

Artifact type designates the type of Relativity artifact, for example, users, layouts, views, field, and choices.

Artifact type values are stored in the workspace database table.

The artifact type ID is also used when interacting with the data through the REST API. It is returned as a JSON property of all Relativity objects, and it is a required JSON property when creating most Relativity objects using the REST API.

Note that in the Services API, objects are created as strongly-typed DTOs (with the type already build-in). In cases when you need to reference common artifact types, use the ArtifactType enumeration.

Member name Value Description
Batch 27 ArtifactType of Batch
BatchSet 24 ArtifactType of BatchSet
Case 8 ArtifactType of Workspace or Case
Client 5 ArtifactType of Client
Code 7 ArtifactType of Code or Choice
Document 10 ArtifactType of Document
Error 18 ArtifactType of Error
Field 14 ArtifactType of Field
Folder 9 ArtifactType of Folder
Group 3 ArtifactType of Group
Layout 16 ArtifactType of Layout
Matter 6 ArtifactType of ResourceServer
MarkupSet 22 ArtifactType of MarkupSet
ObjectType 25 ArtifactType of ObjectType
RelativityScript 28 ArtifactType of RelativityScript
ResourcePool 31 ArtifactType of ResourcePool
ResourceServer 32 ArtifactType of ResourceServer
SearchIndex 29 ArtifactType of SearchIndex
Search 15 ArtifactType of Search
Tab 23 ArtifactType of Tab
User 2 ArtifactType of User
View 4 ArtifactType of View

For more information, see Relativity class library reference.

GUID

Relativity objects are identified by the GUIDs as well as Artifact ID. You can find object GUIDS by using the application in Developer Mode. For more information, see View component GUIDs.

You can also query Relativity database to find object GUIDs. The following example illustrates how to find workspace GUIDs by joining edds.Case and edds.ArtifactGuid tables on ArtifactID:

Unique GUIDs enable application portability across Relativity instances and databases. When developing custom Relativity applications, it is strongly recommended that you use GUIDs when referring to Fields, object types, and Choices. This approach offers significant advantages over programming against artifact name or artifact IDs (that may not be unique) when using the Application Deployment System (ADS). For more information, see Best practices for building applications and Best practices for the Services API.