Insights Automation: List functions like size, max etc. do not work when used for attributes returned by "Lookup objects" action

XMLWordPrintable

    • 1
    • 7

      Issue Summary

      When using "Lookup objects" action in an automation rule, the list functions like size, max do not work when used for attributes of the objects returned by the action

      Steps to Reproduce

      1. Add a "Lookup Objects action". Lets say it returns an object
      2. You want to find the size of one of its attributes(lets say it has 3 values). You use the below smart-value:
      {{lookupObjects.attributeName.size}}
      

      Expected Results

      It will return 3

      Actual Results

      It will return the size of the lookupObjects  i.e. 1 and not the size of the attributes

      Workaround

      If your use-case returns only a single object for "Lookup Objects" action, create a global automation rule and use Branch on IQL. Then you can use the below smart-value which will give you the size of the attribute:

      {{object.attributeName.size}}

      However, if the "Lookup objects" action return multiple objects, no workaround is available at the moment

            Assignee:
            Justin King
            Reporter:
            Simran G
            Votes:
            8 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: