cancel
Showing results for 
Search instead for 
Did you mean: 

Error when executing javascript file

svetlingulev
Champ in-the-making
Champ in-the-making
Hi,

I try to load a remote content in my jsvascript file.
i get this error when i execute my javascript file:


Failed to run Actions due to error: 07020033 Failed to execute script 'workspace://SpacesStore/6425e20a-1ca6-4db8-a2b8-77003c1ad4e4': 07020032 ReferenceError: "remote" is not defined. (workspace://SpacesStore/6425e20a-1ca6-4db8-a2b8-77003c1ad4e4#52)

Can someone please explain how to fix it?

Best regards
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

the "remote" service is not available in Repository-tier scripts unless you provide it yourself.

Regards
Axel

darkredd
Star Contributor
Star Contributor
Hi Afaust,

I added the remote to the file as you suggested in another post. May you be so kind as to assist here is my post:
https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/rule-execute-rm-a...