AnsweredAssumed Answered

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

Question asked by Lyuba on Aug 29, 2017
Latest reply on Aug 30, 2017 by 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

Outcomes