Method GetDocument
GetDocument(String, String)
Returns document informations
Declaration
DocumentContract GetDocument(string connectionId, string documentId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | documentId | The document id. See also Id |
Returns
Type | Description |
---|---|
DocumentContract | Document informations |
Examples
POST http://YourServerName/InfoShare/Json/Document/GetDocument
Example for returns document informations.{
"connectionId": "b54c559d-00a1-4878-ab25-073d4fdad82b",
"documentId": "d2c01001-18d0-e911-a93a-00155d290a08"
}
Response:
{
"GetDocumentResult": {
"Abonnements": [],
"AccessRightsEnumList": ["CheckOut", "Delete", "DeleteVersion", "EditAnnotation", "EditContent",
"EditProperties", "GrantAccessToOtherUsers", "Move", "SetSecurity", "OverwriteVersion", "ViewVersionLog",
"ViewChangeLog", "ViewAccessLog", "EditMultiple", "ChangeRequiredList", "CreateBlog", "DeleteBlog", "EditBlog",
"ViewBlog", "RemoveDocumentContent", "ExecuteApplication", "Export", "SendAsFax", "Print", "Send", "View"],
"AnnotationManager": {
"PostItAnnotations": [],
"RectangleAnnotations": [],
"StampAnnotations": [],
"TextAnnotations": [] },
"Blogs": [],
"CheckOutStateEnum": "NotCheckedOut",
"CheckOutUserId": "00000000-0000-0000-0000-000000000000",
"DocumentData": [{
"Id": "d659533d-75db-e911-a946-00155d290a08",
"Name": "TestDocu.pdf",
"Renditions": [{
"ContentProtections": [],
"Extension": "pdf",
"Files": [{
"BlobPath": "2019\\09\\20\\000\\000\\001TestDocu.pdf",
"BlobStoreId": "217f2561-959e-4e3d-bbc0-99109043f1bd" }],
"HashValue": [36, 26, 152, 24, 55, 245, 42, 107, 2, 203, 231, 232, 139, 28, 245, 227, 240, 182, 71, 15,
60, 151, 44, 89, 106, 220, 125, 143, 219, 63, 228, 166, 172, 34, 106, 119, 57, 26, 146, 34, 141, 30,
158, 211, 33, 121, 116, 84, 15, 199, 232, 57, 73, 23, 175, 43, 13, 81, 71, 92, 33, 76, 255, 243],
"Id": "e459533d-75db-e911-a946-00155d290a08",
"PageCount": 1,
"Size": 166054 }]
}],
"HasOverlay": false,
"Id": "7d58533d-75db-e911-a946-00155d290a08",
"ImportTemplateId": "54bdac99-17d0-e911-a93a-00155d290a08",
"InfoStoreId": "3bb6448c-b9cf-e911-a939-00155d290a08",
"LifeCycleManager": {
"CheckOutLifeCycleStateId": null,
"LifeCycleEndDate": null,
"LifeCycleId": null,
"LifeCycleProtections": null,
"LifeCycleStartDate": null,
"LifeCycleStateId": null,
"NextAutomaticLifeCycleStateId": null,
"NextLifeCycleStates": [] },
"MainFileLength": 166054,
"Name": "Lieferschein_Test.pdf",
"PageCount": 1,
"Properties": [{
"PropertyTypeId": "f972ea44-17d0-e911-a93a-00155d290a08",
"Values": ["TestDocu"] }, {
"PropertyTypeId": "b398b135-17d0-e911-a93a-00155d290a08",
"Values": ["7858"] }, {
"PropertyTypeId": "0086153f-c1cf-e911-a939-00155d290a08",
"Values": [] }, {
"PropertyTypeId": "b76783b1-c1cf-e911-a939-00155d290a08",
"Values": ["Gelmas Stoff", "spätestens bis 2020 einzahlen"] }, {
"PropertyTypeId": "69a14957-17d0-e911-a93a-00155d290a08",
"Values": ["Test"] }, {
"PropertyTypeId": "2cdacc4e-15d0-e911-a93a-00155d290a08",
"Values": ["TestDocu"] }, {
"PropertyTypeId": "01004027-38a7-11d8-a902-0050bf427e8f",
"Values": [] }, {
"PropertyTypeId": "01000008-38a7-11d8-a902-0050bf427e8f",
"Values": ["17"] }, {
"PropertyTypeId": "0100000a-38a7-11d8-a902-0050bf427e8f",
"Values": ["00000000-0000-0000-0000-000000000000"] }],
"ProtectionDomainId": "0100a000-38a7-11d8-a902-0050bf427e8f",
"Reminders": [],
"SigningProfileId": null,
"VersionId": "7d58533d-75db-e911-a946-00155d290a08"
}
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | No document found for documentId {documentId} (10005) |
ServiceException | Unknown data type for property type (10035) |
ServiceException | Not enough rights ({accessOperationName}, {accessOperationId}) (10071) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |