I am working on Smart target implementation with DD4T. I have created a promotion for a particular page in CME through Targeting tab. When I was trying to get promotions through resultset it is showing empty value. When I remove page trigger from promotion it is returning in the promotion resultset. Below are the code snippet used to get promotions:
QueryBuilder querybuilder = new QueryBuilder("catalog01", "en-US", puburi, regions); querybuilder.addCriteria(new PageCriteria("10-100-64")); ClaimStore claimStore = AmbientDataContext.getCurrentClaimStore(); String triggers = AmbientDataHelper.getTriggers(claimStore); querybuilder.parseQueryString(triggers); ResultSet results = querybuilder.execute();
Here results.getPromotions() is returning empty value if I have promotion with page tcm id 10-100-64. If I remove the page from promotion it is returning in the resultset. Can anyone point to the probable issue. Thanks in advance..