As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
–User Homes–Clientes–000123Quijano Sanchez, Alonso–000877López Romero, Bernardo–001380Muñoz Quintero, Miguel··–pendientes
var documento = document.name; var nombre = documento.substr(0,6); var pendientes = space.childByNamePath("pendientes"); var query = "/cm:User Homes/cm:Clientes/*"; query += ' +TYPE:"cm:folder"+@cm\:description:"\+ nombre + "\ '; var carpetacliente = search.luceneSearch(query); var ruta = space.childByNamePath(carpetacliente); if (ruta != null && ruta.hasPermission("CreateChildren")) { var copy = document.move(ruta); if (copy != null) { document.name = carpetacliente; document.save(); } } else { var copy = document.move(pendientes); if (copy != null) { document.name = carpetacliente; document.save(); } }
A system error happened during the operation: Failed to execute script 'workspace://SpacesStore/dc818d72-ce10-11de-a65d-43cb83d5086a': Failed to execute script 'workspace://SpacesStore/dc818d72-ce10-11de-a65d-43cb83d5086a': Wrapped java.lang.IllegalArgumentException: Local name cannot be null or empty. (AlfrescoScript#34)