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.
var fName = ""; if ( document.properties["sige:Confidential"] ) fName = "DATA/Archives/Confidentiel"; else fName = "DATA/Archives/" + document.properties["sige:ArType"]; var destFolder = companyhome.childByNamePath(fName); if ( destFolder ) { // Some debug info var d = companyhome.childByNamePath("debug.log"); var c = d.content; c = c + "Ok : " + destFolder.properties.name + "\n"; d.content = c; d.save(); document.move(destFolder); // <= crash here if not admin user } else { // Some debug info var d = companyhome.childByNamePath("debug.log"); var c = d.content; d.content = c + "Cannot get object for " + fName + "\n"; d.save(); } function result() { return 1; } result();
Une erreur système s'est produite pendant l'opération : 00140010 Failed to execute script 'workspace://SpacesStore/5c121eae-5458-4af1-8a76-ba059617385e': 00140009 Access refusé. Vous n'avez pas la permission de réaliser cette opération.Translated : System error during operation : ……. : Access refused. You are not allowed to do this operation.
if ( destFolder.hasPermission("CreateChildren") ) { … move the file … }