Method CheckForDuplicateDocuments
CheckForDuplicateDocuments(String, String)
Checks for duplicate documents with a file id
Declaration
DuplicateCheckResultContract CheckForDuplicateDocuments(string connectionId, string fileId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | fileId | File id to use. See also UploadFileBytes(String, String, Byte[], Int32) |
Returns
Type | Description |
---|---|
DuplicateCheckResultContract | Returns an instance of DuplicateCheckResultContract that contains a list of document ids and a list of DocumentContract |
Examples
POST http://YourServerName/InfoShare/Json/Document/CheckForDuplicateDocuments
An example that returns a list of duplicate document ids and a list of duplicate documents.{
"connectionId": "d5bcc857-6524-440d-a7b8-db4657462f55",
"fileId": "8526a2a1-dcbb-4f63-923b-2480aa2c8a54"
}
Response:
{
"CheckForDuplicateDocumentsWithHashResult": {
"DocumentIds": ["f9d6cc55-b7be-4448-a4d6-98addd847015", "70f2cbd8-c67b-48ed-96a5-cc8ec50b4e3d", "fa4db34c-946e-4737-9564-f5de92da294f" ],
"Documents": [{
"Abonnements": [],
"AccessRightsEnumList": ["View", "Send", "SendAsFax", "Print"],
"AnnotationManager": {
"PostItAnnotations": [],
"RectangleAnnotations": [],
"StampAnnotations": [],
"TextAnnotations": [] },
"Blogs": [],
"CheckOutStateEnum": "NotCheckedOut",
"CheckOutUserId": "00000000-0000-0000-0000-000000000000",
"CurrentVersionId": "e8b952e4-c481-41fb-989d-4fd4399b9a28",
"DocumentData": [{
"Id": "5a7a62d4-a606-48fc-8bd6-a8a0f655c2e1",
"Name": "test1.pdf",
"Renditions": [{
"ContentProtections": [],
"Extension": "pdf",
"Files": [{
"BlobPath": "2024\\07\\10\\001\\000\\004;f9d6cc55-b7be-4448-a4d6-98addd847015;C8-FE-F6-FD-98-23-05-22-25-C0-7D-64-32-E1-5A-01.pdf",
"BlobStoreId": "b9d5813f-06db-4d37-838e-7befe5db8e62" }],
"HashValue": [147, 207, 127, 196, 109, 189, 253, 213, 142, 23, 39, 57, 174, 87, 72, 246, 19, 140, 5, 206,
179, 22, 148, 197, 120, 161, 123, 183, 30, 107, 157, 117, 157, 37, 41, 83, 242, 238, 192, 193, 208, 10,
162, 80, 220, 181, 51, 234, 113, 179, 157, 82, 238, 197, 176, 151, 83, 132, 221, 95, 95, 226, 235, 215],
"Id": "4a7501e3-563c-471c-89c1-2423b82d076e",
"PageCount": 0,
"Size": 28293 }]
}],
"HasAbonnement": false,
"HasAnnotation": false,
"HasBlog": false,
"HasLinks": false,
"HasOverlay": false,
"HasReminders": false,
"HasSignature": false,
"HasTempAccess": false,
"Id": "f9d6cc55-b7be-4448-a4d6-98addd847015",
"ImportTemplateId": null,
"InfoStoreId": "4da07a67-3c37-4351-9062-8c4b74f20416",
"LifeCycleManager": {
"CheckOutLifeCycleStateId": null,
"LifeCycleEndDate": null,
"LifeCycleId": null,
"LifeCycleProtections": null,
"LifeCycleStartDate": null,
"LifeCycleStateId": null,
"NextAutomaticLifeCycleStateId": null,
"NextLifeCycleStates": [] },
"MainFileLength": 28293,
"Name": "test1.pdf",
"PageCount": 0,
"Properties": [{
"GlobalValues": [],
"PropertyTypeId": "010000a0-38a7-11d8-a902-0050bf427e8f",
"Values": ["2024-07-10T13:31:47"] }, {
"GlobalValues": [{
"Values": [{
"Culture": "en-US", "Text": "DCI administrator" }, {
"Culture": "en", "Text": "DCI administrator" }]} ],
"PropertyTypeId": "010000a2-38a7-11d8-a902-0050bf427e8f",
"Values": ["0100a003-38a7-11d8-a902-0050bf427e8f"] }, {
"GlobalValues": [],
"PropertyTypeId": "01000008-38a7-11d8-a902-0050bf427e8f",
"Values": ["1"] }, {
"GlobalValues": [],
"PropertyTypeId": "01000007-38a7-11d8-a902-0050bf427e8f",
"Values": ["1"] }, {
... }, {
"GlobalValues": [],
"PropertyTypeId": "0100000d-38a7-11d8-a902-0050bf427e8f",
"Values": ["k89/xG29/dWOFyc5rldI9hOMBc6zFpTFeKF7tx5rnXWdJSlT8u7AwdAKolDctTPqcbOdUu7FsJdThN1fX+Lr1w=="] }, {
... }
],
"ProtectionDomainId": "2e2148d1-3583-4a2f-a522-d4a39a5d25b3",
"Reminders": [],
"SessionCount": 0,
"SigningProfileId": null,
"VersionId": "f9d6cc55-b7be-4448-a4d6-98addd847015"
}, {
"Abonnements": [],
"AccessRightsEnumList": ["View", "Send", "SendAsFax", "Print" ],
"AnnotationManager": {
"PostItAnnotations": [],
"RectangleAnnotations": [],
"StampAnnotations": [],
"TextAnnotations": [] },
"Blogs": [],
"CheckOutStateEnum": "NotCheckedOut",
"CheckOutUserId": "00000000-0000-0000-0000-000000000000",
"CurrentVersionId": "01cb16b2-cd84-4b87-bb24-f19c6913621e",
"DocumentData": [{
"Id": "f39e0d75-1568-414a-81ec-ab3c05aab7a6",
"Name": "test2.pdf",
"Renditions": [{
"ContentProtections": [],
"Extension": "pdf",
"Files": [{
"BlobPath": "2024\\07\\10\\001\\000\\002;70f2cbd8-c67b-48ed-96a5-cc8ec50b4e3d;C8-FE-F6-FD-98-23-05-22-25-C0-7D-64-32-E1-5A-01.pdf",
"BlobStoreId": "b9d5813f-06db-4d37-838e-7befe5db8e62" }],
"HashValue": [147, 207, 127, 196, 109, 189, 253, 213, 142, 23, 39, 57, 174, 87, 72, 246, 19, 140, 5, 206,
179, 22, 148, 197, 120, 161, 123, 183, 30, 107, 157, 117, 157, 37, 41, 83, 242, 238, 192, 193, 208, 10,
162, 80, 220, 181, 51, 234, 113, 179, 157, 82, 238, 197, 176, 151, 83, 132, 221, 95, 95, 226, 235, 215],
"Id": "d7f25613-6a4c-4b9b-a8a2-58855fba3de7",
"PageCount": 0,
"Size": 28293 }]
}],
"HasAbonnement": false,
"HasAnnotation": false,
"HasBlog": false,
"HasLinks": false,
"HasOverlay": false,
"HasReminders": false,
"HasSignature": false,
"HasTempAccess": false,
"Id": "70f2cbd8-c67b-48ed-96a5-cc8ec50b4e3d",
"ImportTemplateId": null,
"InfoStoreId": "4da07a67-3c37-4351-9062-8c4b74f20416",
"LifeCycleManager": {
"CheckOutLifeCycleStateId": null,
"LifeCycleEndDate": null,
"LifeCycleId": null,
"LifeCycleProtections": null,
"LifeCycleStartDate": null,
"LifeCycleStateId": null,
"NextAutomaticLifeCycleStateId": null,
"NextLifeCycleStates": [] },
"MainFileLength": 28293,
"Name": "test2.pdf",
"PageCount": 0,
"Properties": [{
"GlobalValues": [],
"PropertyTypeId": "010000a0-38a7-11d8-a902-0050bf427e8f",
"Values": ["2024-07-10T12:23:25"] }, {
"GlobalValues": [{
"Values": [{
"Culture": "en-US", "Text": "DCI administrator" }, {
"Culture": "en", "Text": "DCI administrator" }]} ],
"PropertyTypeId": "010000a2-38a7-11d8-a902-0050bf427e8f",
"Values": ["0100a003-38a7-11d8-a902-0050bf427e8f"] }, {
"GlobalValues": [],
"PropertyTypeId": "01000008-38a7-11d8-a902-0050bf427e8f",
"Values": ["1"] }, {
"GlobalValues": [],
"PropertyTypeId": "01000007-38a7-11d8-a902-0050bf427e8f",
"Values": ["1"] }, {
... }, {
"GlobalValues": [],
"PropertyTypeId": "0100000d-38a7-11d8-a902-0050bf427e8f",
"Values": ["k89/xG29/dWOFyc5rldI9hOMBc6zFpTFeKF7tx5rnXWdJSlT8u7AwdAKolDctTPqcbOdUu7FsJdThN1fX+Lr1w=="] }, {
... }
],
"ProtectionDomainId": "2e2148d1-3583-4a2f-a522-d4a39a5d25b3",
"Reminders": [],
"SessionCount": 0,
"SigningProfileId": null,
"VersionId": "70f2cbd8-c67b-48ed-96a5-cc8ec50b4e3d"
}]
}
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Search store not found {infoStore} (10033) |
ServiceException | Property type not found {propertyTypeId} (10034) |
ServiceException | String was not recognized as a valid DateTime: {dateTimeValue}. Expected format {expectedFormat} (10059) |
ServiceException | Comparison operator {comparisonOperator} is not allowed for property type {propertyTypeId} (10087) |
ServiceException | Unknown comparison operator {comparisonOperator} (10088) |
ServiceException | Property type {propertyTypeId} is deleted (10090) |
ServiceException | Property type {propertyTypeId} is deactivated (10091) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |