Get Email Addresses

Returns array of all Email Addresses related to the record. Each element of the collection is a set of attributes about the Email Address, like the email address itself, primary, opted-out, etc.

inputs:

entity – input an entity which Email Addresses are needed

  • Required: yes

outputs:

email addresses – the array of Email Addresses with their attributes

primary email address – primary email address of the record (e.g. test@test.example.com)Let’s say there is a Lead Record with the following Email Addresses:

If you use Get Email Addresses from this Lead:

Output port  email addresses  contains the following data:

Array

(

    [0] => Array

        (

            [email_address] => anastasiia.gubanovych@integroscrm.com

            [email_address_caps] => ANASTASIIA.GUBANOVYCH@INTEGROSCRM.COM

            [invalid_email] => 0

            [opt_out] => 0

            [date_created] => 2021-10-27 11:32:34

            [date_modified] => 2021-10-27 11:32:34

            [id] => 945e040c-3719-11ec-b821-000c29791bd4

            [email_address_id] => 94316e1a-3719-11ec-8e57-000c29791bd4

            [bean_id] => 945da0a2-3719-11ec-97aa-000c29791bd4

            [bean_module] => Leads

            [primary_address] => 1

            [reply_to_address] => 0

            [deleted] => 0

        )

    [1] => Array

        (

            [email_address] => lbsupport@integroscrm.com

            [email_address_caps] => LBSUPPORT@INTEGROSCRM.COM

            [invalid_email] => 0

            [opt_out] => 1

            [date_created] => 2021-10-27 11:32:34

            [date_modified] => 2021-10-27 11:32:34

            [id] => 945e4534-3719-11ec-bd31-000c29791bd4

            [email_address_id] => 9431a448-3719-11ec-94a3-000c29791bd4

            [bean_id] => 945da0a2-3719-11ec-97aa-000c29791bd4

            [bean_module] => Leads

            [primary_address] => 0

            [reply_to_address] => 0

            [deleted] => 0

        )

    [2] => Array

        (

            [email_address] => nastya@integroscrm.com

            [email_address_caps] => NASTYA@INTEGROSCRM.COM

            [invalid_email] => 1

            [opt_out] => 0

            [date_created] => 2021-10-27 11:32:34

            [date_modified] => 2021-10-27 11:32:34

            [id] => 945e6dfc-3719-11ec-b53f-000c29791bd4

            [email_address_id] => 9431c536-3719-11ec-ab68-000c29791bd4

            [bean_id] => 945da0a2-3719-11ec-97aa-000c29791bd4

            [bean_module] => Leads

            [primary_address] => 0

            [reply_to_address] => 0

            [deleted] => 0

        )

)

Output port primary email address contains only one primary address without attributes:

anastasiia.gubanovych@integroscrm.com

Following Processing of Outputs

There are two options how to process results from email addresses output:

Option 1: Use For Each Element to get each Email Address and then Get Array Element or Get Array Elements By Path to get needed Email Address Attribute:

Option 2: Use For Each Element to get each Email Address and then newly added Cast To Entity to treat Email Address as usual Entity:

Click to rate this post!
[Total: 0 Average: 0]

Leave a Reply

Your email address will not be published. Required fields are marked *