AnsweredAssumed Answered

Find max value from group of attributes - AF SDK

Question asked by Todd.McQuiston on May 15, 2020
Latest reply on May 18, 2020 by David Hearn



So, I am writing a minor to find the maximum value from a group of element attributes.  Here's what I am doing so far:


  • Using an AFElementSearch to find all elements based on a specific element template
  • Specifying the attribute in question that I want to look at ["TxRate"]


Now, I could push those into an array and sieve it out, figuring which is the largest (I suppose), but I have a nagging feeling that there is a way to do that with calls in the SDK that I just haven't messed with yet.  If there is, it is bound to be more efficient than the brute force method I was considering, especially when considering the number of elements that some of the element templates have.