cancel
Showing results for 
Search instead for 
Did you mean: 

NXQL automation cross repository

Lorenzol_
Champ on-the-rise
Champ on-the-rise

Hi, I'm using NXQL to read data from the default repository using a simple operation chain created on the fly:

CoreSession cs = CoreInstance.openCoreSession(null);
String lookbookQuery = "SELECT * from Document WHERE ecm:primaryType='Lookbook'";
OperationContext ctx = new OperationContext();
OperationChain chain = new OperationChain("fetch lookbook chain");
chain.add("Document.Query").set("language","NXQL").set("query",lookbookQuery);
AutomationService service = Framework.getService(AutomationService.class);
Object res = service.run(ctx, chain);
out.print("<pre>"+res+"</pre>");

how can I run this query across all repositories in a multiple repository environment?

0 REPLIES 0