AnsweredAssumed Answered

Using remote endpoint in repository (not share) webscript

Question asked by loftux Moderator on Feb 26, 2013
Latest reply on Feb 27, 2013 by loftux
I need to fetch external data in the repository, that is call http://example.com/fetch/some/json.
I need this both for a webscript (trigger manually) and a scheduled action.

In Share this is easy for webscripts via declaring remote endpoints. But how do I in the best way fetch external data repository side? I would prefere a way to do this with javascript.
There seem to be an older "left over" script here
http://localhost:8080/alfresco/service/sample/cmis/repo?service=servername
It uses var conn = remote.connect("alfresco"); but throws an error  org.mozilla.javascript.EcmaError - ReferenceError: "remote" is not defined.

So I guess remote object is not available, can it be enabled? If so, can it be made available to a scheduled action as well?

Outcomes