public static ContentPropertyResponse CreateContentlessDocumentLinkToFolder(string repo, string folderId) { DocumentumServiceUtils.ConfigureApiClient(repo); ContentProperty contentProperty = new ContentProperty(); contentProperty.properties = new PropertiesType(); contentProperty.properties.r_object_type = "dwr_gen_doc"; contentProperty.properties.object_name = "readme6"; contentProperty.properties.author_creator = "Pedro Barroso"; contentProperty.properties.author_date = "2017-09-26"; contentProperty.properties.topic_subject = "The subject"; IDocumentumApi documentumApi = new DocumentumApi(); ContentPropertyResponse response = null; try { response = documentumApi.CreateContentlessDocument(repo, folderId, contentProperty); } catch (ApiException ex) { Log.Error(ex); } return(response); }
public static DataObject uploadDocument(IDictionary <string, string> ecf, byte[] documentBytes) { var documentumApi = new DocumentumApi(); try { documentumApi.UploadDocsWithProperties(ecf, documentBytes); } catch (ApiException ex) { Log.Error(ex.ErrorContent); throw ex; } return(null); }