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