Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Code Block
languagec#
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);