Take the 2-minute tour ×
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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