Formula: Get email to adresse from an email

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stefan
    Member
    • Jul 2021
    • 58

    Formula: Get email to adresse from an email

    Hi!

    Is there a way to get the "to" email adresse from an email in formula?

    What I'v tried so far:

    Code:
    toEmailAddressesIds
    gives my ids from emailAdresse. But I don't know how to access emailAdresses in formula. It seems like they are not accessable this way.

    Code:
    toEmailAddressesNames
    is empty (null)

    Code:
    entity\attribute('emailAddressData')
    is also empty (null)
  • victor
    Active Community Member
    • Aug 2022
    • 751

    #2
    In Administration > Formula Sandbox select the desired Target Type -> Email, in Target select the email from which you want to take "to".
    Code:
    $toEmailAddressesIds = toEmailAddressesIds;
    $toEmailAddressesNames = toEmailAddressesNames;
    
    output\printLine($toEmailAddressesIds);
    output\printLine($toEmailAddressesNames);
    Attached Files

    Comment

    Working...