Announcement

Collapse
No announcement yet.

emailaddressData formula

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • emailaddressData formula

    Hi,

    I'm trying to loop through the emailaddressData to see if one of the email addresses of the target entity has a specific domain name.

    When I use the API call for this target entity I see the emailaddressData is returns as an array of json 2 objects.

    However, when I go into the formula sandbox and run this on the same target entity:

    Code:
    output\printLine(array\length(emailAddressData));
    it returns 0

    Whereas If I do it on another attribute, it does return a count of 1

    Code:
    output\printLine(array\length(teamsIds));
    Does anyone know why this behavior is different on the emailAddressData, and moreover, how to parse it?

  • #2
    Hi,

    emailAddressData is a special field that is loaded separately on API calls. When it's used from formula sandbox it's not loaded.

    Comment


    • #3
      I'll consider adding a separate function fetching all email addresses in the future version. For now, consider finding some workaround if "emailAddressData" is not accessible from the place you run the formula.

      If it's accessible, then use object\ functions to fetch properties of email address data items.

      Comment


      • #4
        I added the ability to fetch emailAddressData the way you tried. In v7.3.

        Comment


        • #5
          yuri thanks. Any idea when 7.3 will be released?
          Last edited by Maarten; 01-09-2023, 10:11 AM.

          Comment


        • #6
          This works now, thanks!

          Comment

          Working...
          X