|
Method and endpoint |
|
|---|
You can use the method and endpoint GET /Documents/{documentId} to retrieve the properties of a document from the destination system.
If you also want to retrieve the associated file, you must use the method and endpoint GET /Documents/{documentId}/download. For more information, see: Download a file
Example of a request
GET /Documents/762f8698-f605-4de5-89fb-6f5fff3435fd
Accept: application/json
ModuleId: sharepoint
ConnectionString: targetHost=https://test.sharepoint.com;User=MyUserName;Password=MyPassword;ListId=MyListId;
Example of a response
JSON
{
"id": "762f8698-f605-4de5-89fb-6f5fff3435fd",
"caption": "This is MyDocument",
"category": "dc4af18a-dd54-4735-bad5-92517e8653f2",
"mimeType": "text/plain",
"fileName": "2022-01-06-15-48-12-060804_MyFile.txt",
"fileSize": 85,
"version": "2.0",
"createdAt": 1641480501,
"fileUpdatedAt": 1641480501,
"propertiesUpdatedAt": 1641480502,
"properties": [
{
"id": "Title",
"name": "Title",
"value": [
"This is MyDocument"
]
},
{
"id": "TenantId",
"name": "TenantId",
"value": [
"1234"
]
},
{
"id": "Tenant_x0020_Name",
"name": "Tenant Name",
"value": [
"MyTenant"
]
},
{
"id": "Vendor_x002d_No_x002e_",
"name": "Vendor No.",
"value": [
"9876"
]
},
{
"id": "Vendor_x002d_Name",
"name": "Vendor Name",
"value": [
"MyVendor"
]
}
]
}