public static ResponseStatus GetClientDocumentPath(ClientDocument clientDocument) { ResponseStatus response = new ResponseStatus(); response = ClientDocument.GetDocumentPath(clientDocument); return(response); }
/// <summary> /// This operation updates the destination folder following the /// hierarchy of the tree instead of the initial location. /// </summary> /// <param name="documentsTreeNode"></param> public static ResponseStatus UpdateDestinationFolder(int clientID, int clientDocumentSetUID) { ResponseStatus response = new ResponseStatus(); response.Contents = "Destination folder updated successfully."; var listOfDocuments = ClientDocument.ListS(clientID, clientDocumentSetUID); foreach (var doco in listOfDocuments) { // Update location // ResponseStatus destLocationDerivedClient = ClientDocument.GetDocumentPath(doco.clientDocument); string destLocationDerived = destLocationDerivedClient.Contents.ToString(); ClientDocument.UpdateFieldString(doco.clientDocument.UID, "Location", destLocationDerived); } return(new ResponseStatus()); }