I copied the .js (with that function call) and .desc files into /Data Directory/Web Scripts/org/alfresco/sample, but when I go to alfresco:8080/alfresco/services/createFolder I see a message saying:
ReferenceError: "userhome" is not defined.
Looks like I can't access any Root Object and I honestly don't know what's going wrong here.
<shortname>Ejemplo para crear directorio</shortname>
<description>se crea directorio</description>
Am I missing something? Any help would be much appreciated.