2

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..

3

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. – Mukesh Kumar Sep 4 '14 at 14:59
  • which version are you using? – Jan H Sep 4 '14 at 14:59
  • It is Tridion 2013 SP1. Smart Target I was using 2014. – Mukesh Kumar Sep 5 '14 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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