I am trying to get all the promotions created for a page. I am using the below code:
QueryBuilder querybuilder = new QueryBuilder("catalog01", "en-US", puburi, regions);
querybuilder.addCriteria(new PageCriteria("1-1-64"));
ResultSet results = querybuilder.execute();
Above code is returning empty value for results.getPromotions(). Perhaps I can assume promotions are created based on some trigger, so to get the promotions I am required to pass the Triggers as a claim. Can anyone suggest if it a correct assumption. If yes, Is there a way to get all the promotions created for a particular page. I can get Items with results.getItems(), but that is all the items published in the fredhopper.