Get a document
Description
Gets an existing document.
Package Details
Interface
IDocumentManager
Syntax
Task<T> Get<T>(int serviceRequestId);
Returns
Task<T>
API Endpoint
Not applicable.
Example
public class MyServiceRequestData { public string DisplayNameEn { get; set; } public string DisplayNameFr { get; set; } public string DataFieldA { get; set; } } // Retrieve the service request document. //This function accepets a generic parameter, it's not limited to MyServiceRequestData const int serviceRequestId = 100; var serviceRequest = await documentManager.Get<MyServiceRequestData>(serviceRequestId);