AnsweredAssumed Answered

Call a repo webscript from a js file through scheduled action

Question asked by kavilash23 on Aug 22, 2014
Latest reply on Aug 22, 2014 by kavilash23
Hi Guys,

I have written a javascript file which calls a webscript and have configured a scheduled action to run that script.

I have enable the 'remote' object for alfresco (its enabled only for share OOTB)and my script runs fine when run from the javascript console in Share but fails when run through the schedule action complaining that 'remote' is not defined.

var url = "http://localhost:8080/alfresco/service/api/audit/query/AuditExampleLogin
var theUrl = "/api/audit/query/AuditExampleLogin2?verbose=true";
var json =;
//var connector = remote.connect("http");
//var json =;

Can someone please advice?

Kind Regards,