I am trying to fetch trigger type using Smart Target API. Code I have used is as below

ClaimStore claimStore = AmbientDataContext.CurrentClaimStore;
if (claimStore != null)
     string query = AmbientDataHelper.GetTriggers(claimStore);

Everytime it is returning claimstore as null. Can anyone suggest if I am missing anything..

1 Answer 1


You haven't mentioned what context the code is running in. If it is always null, the only conclusion I can make is that the Ambient Data Framework isn't running in that context (e.g. maybe you are running this code outside of a web server that has the ADF filter/module configured).

Check the log files to troubleshoot the issue and follow the steps in the documentation if you need to set up the ADF.

  • 1
    Thanks Peter. Root cause of the issue was Ambient data framework was not configured in my website. Sep 4, 2014 at 14:59
  • which version are you using?
    – Jan H
    Sep 4, 2014 at 14:59
  • It is Tridion 2013 SP1. Smart Target I was using 2014. Sep 5, 2014 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.