Class which communicates with Veeva to manage document relationships on the platform.
Rest API instance
Add a relationship to a document
// Add a shared resource to a document
const service = new VeevaService(credentials)
await service.document.relationship.create(2000, 0, 1, 2001, 'related_shared_resource__v')
Response from Veeva
The id of the document to add the relationship too
The major version number of the document
The minor version number of the document
The id of the target document of the relationship
The value of the relationship to add
Get an array of relationships for a specific document.
const service = new VeevaService(credentials)
await service.document.relationship.get(2000, 0, 1)
An array of relationships
The id of the document
The major version number of the document
The minor version number of the document
Generated using TypeDoc
The RelationshipAPI manages relationships between documents.