Beispiel #1
0
        public void UpdateDocumentIntegrationStatus(Guid documentId)
        {
            var document          = _documentRepository.GetCrmEntityById(documentId);
            var documentForUpdate = new dot_documents()
            {
                Id = document.Id,
                dot_IntegrationStatus = error != string.Empty ? new OptionSetValue(180000002) : new OptionSetValue(180000001),
                dot_IntegrationError  = error,
            };

            _documentRepository.Update(documentForUpdate);
        }
Beispiel #2
0
 public void DmsServiceUploadAnntotations(JsonMetadataMapping jsonMapping, Entity fetchResult)
 {
     foreach (var annotation in annotations)
     {
         var documentId = DMSServicePostRequest(XmlRequestForUploadOrUpdateDocuments("UploadDocument", annotation, string.Empty, jsonMapping, fetchResult), "UploadDocument");
         if (documentId != string.Empty)
         {
             var        uploadDocumentIdBytes = Encoding.UTF8.GetBytes(documentId);
             Annotation annotationForApdate   = new Annotation()
             {
                 Id           = annotation.Id,
                 DocumentBody = Convert.ToBase64String(uploadDocumentIdBytes),
             };
             _annotationRepository.Update(annotationForApdate);
         }
     }
 }