5 Replies Latest reply on Aug 30, 2017 4:33 AM by Lyuba

    AF SDK: How to get the AFAnalysis object for a particular AFNotificationRule

    Lyuba

      Hi,

       

       

      I am trying to get the analysis associated with a particular notification rule using the sdk, but I cannot find a straightforward way..

       

      Let's say I have an AFElement el. I can get hold of its notification rules using el.NotificationRules, and its analyses using el.Analyses, but is there a way from el.NotificationRules[0] to get its AFAnalysis?

       

      I saw that I can do something like el.Analyses[el.NotificationRules[0].Criteria.Replace("AnalysisName:", "").Replace("\"", "")], which would give me what I am looking for, but I don't feel like this is the best way....

       

      What is your advice?

       

       

      Thanks,

       

      Lyuba