{"id":1886,"date":"2022-07-08T13:16:40","date_gmt":"2022-07-08T13:16:40","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=1886"},"modified":"2022-07-08T15:24:08","modified_gmt":"2022-07-08T15:24:08","slug":"email-addresses","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/email-addresses\/","title":{"rendered":"Email Addresses"},"content":{"rendered":"\n<p><span style=\"font-size:17px;\">Release date: 2021-11-06<\/span><\/p>\n\n\n\n<p><span style=\"font-size:17px\"><b>Cast to Entity<\/b><\/span><\/p>\n\n\n\n<p>Introducing a new operator <strong><span style=\"color:#ec8f45;\">Cast to Entity<\/span><\/strong> which allows you to create an Entity from the JSON or make your flowchart even more readable by putting Entity to the Variables and then reading it with <strong><span style=\"color:#ec8f45;\">Cast to Entity<\/span><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-1-1024x278.png\" alt=\"\" class=\"wp-image-1894\" width=\"652\" height=\"177\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-1-1024x278.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-1-300x81.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-1-768x209.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-1.png 1116w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/figure>\n\n\n\n<p><strong>Example of usage:&nbsp;<\/strong><\/p>\n\n\n\n<p>1. Creating Entity from the JSON&nbsp;<\/p>\n\n\n\n<p>For example, there is a JSON that describes an object in a similar way as Sugar Entity structure. Instead of operators <strong><span style=\"color:#ec8f45;\">Create Entity<\/span><\/strong> and <strong><span style=\"color:#ec8f45;\">Set Entity Attributes<\/span><\/strong> following with mapping fields from JSON to Sugar Entity, there is a possibility to use <strong><span style=\"color:#ec8f45;\">Cast To Entity<\/span><\/strong>. Let\u2019s say there is a JSON like this:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"first_name\": \"Clark\",\n  \"last_name\": \"Kent\"\n}<\/code><\/pre>\n\n\n\n<p>With the following flowchart, it is possible to create a new Contact record from this JSON:&nbsp;<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-2.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-2-1024x323.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n\n\n<p>As a result, new Contact is added:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-3.png\" alt=\"\" class=\"wp-image-1896\" width=\"753\" height=\"289\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-3.png 790w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-3-300x115.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-3-768x295.png 768w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/figure>\n\n\n\n<p>2. Get Entity from the Variable&nbsp;<\/p>\n\n\n\n<p>If you have dozens of links from <em><span style=\"color:#6888c9;\">entity<\/span><\/em> port:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-4.png\" alt=\"\" class=\"wp-image-1897\" width=\"486\" height=\"228\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-4.png 653w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-4-300x141.png 300w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/figure>\n\n\n\n<p>\u2026 and have ever thought of how to remove them to make flowchart even more readable \u2013 now it is possible to put Entity in a Variable and then simply use this Variable through <strong><span style=\"color:#ec8f45;\">Cast To Entity<\/span><\/strong>. Put entity into variable:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-5-1024x293.png\" alt=\"\" class=\"wp-image-1898\" width=\"887\" height=\"254\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-5-1024x293.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-5-300x86.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-5-768x220.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-5.png 1161w\" sizes=\"auto, (max-width: 887px) 100vw, 887px\" \/><\/figure>\n\n\n\n<p>And then through <strong><span style=\"color:#ec8f45;\">Get Variable<\/span><\/strong> and <strong><span style=\"color:#ec8f45;\">Cast To Entity<\/span><\/strong> use the entity whenever it is needed:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-6-1024x230.png\" alt=\"\" class=\"wp-image-1899\" width=\"889\" height=\"200\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-6-1024x230.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-6-300x67.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-6-768x172.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-6.png 1150w\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" \/><\/figure>\n\n\n\n<p><span style=\"font-size:17px\"><b>New Operators to work with Email Addresses<\/b><\/span><\/p>\n\n\n\n<p>Out-of-the-box field Email Address is a special type of the field, which allows setting several Email Addresses for one record and marking Email Address as Primary, Invalid, or Opt Out. New Logic Builder Release enables you to work with values in this field &#8211; to add new email addresses, remove them, update email addresses attributes, and get all Email Addresses related to the Entity:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-7.png\" alt=\"\" class=\"wp-image-1900\" width=\"342\" height=\"124\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-7.png 408w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-7-300x109.png 300w\" sizes=\"auto, (max-width: 342px) 100vw, 342px\" \/><\/figure>\n\n\n\n<p><strong>1. Add Email Address&nbsp;<\/strong><\/p>\n\n\n\n<p>Operator <strong><span style=\"color:#ec8f45;\">Add Email Address<\/span><\/strong> allows adding new Email Address to a Record like Lead, Contact, Account, Target (out-of-the-box entities with Email Address type field or Custom Entities with email type field).&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-8-1024x360.png\" alt=\"\" class=\"wp-image-1901\" width=\"862\" height=\"303\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-8-1024x360.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-8-300x105.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-8-768x270.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-8.png 1284w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/figure>\n\n\n\n<p><em>Example of usage:<\/em>&nbsp;<\/p>\n\n\n\n<p>Let\u2019s say that there are Contact details retrieved via REST and you would like to update email address based on the response. The flowchart which implements this may be like this:&nbsp;<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-9.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-9-1024x312.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n\n\n<p>In the example above, Email Attributes primary\/reply to\/invalid\/opt out will be set to false. In case there is a need to set address as opted out just put <strong><span style=\"color:#ec8f45;\">Boolean<\/span><\/strong> true in the input port:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-10.png\" alt=\"\" class=\"wp-image-1903\" width=\"503\" height=\"268\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-10.png 836w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-10-300x160.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-10-768x409.png 768w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/figure>\n\n\n\n<p><strong>2. Remove Email Address<\/strong>&nbsp;<\/p>\n\n\n\n<p>Operator <strong><span style=\"color:#ec8f45;\">Remove Email Address<\/span><\/strong> allows removing Email Address from a Record like Lead, Contact, Account, Target (out-of-the-box entities with Email Address type field or Custom Entities with email type field).&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-11-1024x301.png\" alt=\"\" class=\"wp-image-1904\" width=\"857\" height=\"252\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-11-1024x301.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-11-300x88.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-11-768x226.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-11.png 1295w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/figure>\n\n\n\n<p><em>Example of usage:&nbsp;<\/em><\/p>\n\n\n\n<p>Let\u2019s say that you would like to remove the email address and set it to the value that was received from the 3rd party system. The flowchart that implements email address change may be like this:&nbsp;<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-12.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-12-1024x317.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n\n\n<p><strong>3. Get Email Addresses<\/strong>&nbsp;<\/p>\n\n\n\n<p>Operator <strong><span style=\"color:#ec8f45;\">Get Email Addresses<\/span><\/strong> allows you to get a primary email address and an array of emails arrays (each of which consists of email address and all its attributes) related to the Entity.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"306\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-13-1024x306.png\" alt=\"\" class=\"wp-image-1906\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-13-1024x306.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-13-300x90.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-13-768x229.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-13.png 1142w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Output Example:&nbsp;<\/strong><\/p>\n\n\n\n<p>Let\u2019s say there is a Lead Record with the following Email Addresses:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-14.png\" alt=\"\" class=\"wp-image-1907\" width=\"676\" height=\"160\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-14.png 970w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-14-300x71.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-14-768x181.png 768w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<p>If you use <strong><span style=\"color:#ec8f45;\">Get Email Addresses<\/span><\/strong> from this Lead:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-15.png\" alt=\"\" class=\"wp-image-1908\" width=\"618\" height=\"166\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-15.png 936w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-15-300x81.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-15-768x207.png 768w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/figure>\n\n\n\n<p>Output port <em><span style=\"color:#6888c9;\">Email addresses<\/span><\/em> contains the following data:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Array\n(\n    &#091;0] =&gt; Array\n        (\n            &#091;email_address] =&gt; anastasiia.gubanovych@integroscrm.com\n            &#091;email_address_caps] =&gt; ANASTASIIA.GUBANOVYCH@INTEGROSCRM.COM\n            &#091;invalid_email] =&gt; 0\n            &#091;opt_out] =&gt; 0\n            &#091;date_created] =&gt; 2021-10-27 11:32:34\n            &#091;date_modified] =&gt; 2021-10-27 11:32:34\n            &#091;id] =&gt; 945e040c-3719-11ec-b821-000c29791bd4\n            &#091;email_address_id] =&gt; 94316e1a-3719-11ec-8e57-000c29791bd4\n            &#091;bean_id] =&gt; 945da0a2-3719-11ec-97aa-000c29791bd4\n            &#091;bean_module] =&gt; Leads\n            &#091;primary_address] =&gt; 1\n            &#091;reply_to_address] =&gt; 0\n            &#091;deleted] =&gt; 0\n        )\n\n    &#091;1] =&gt; Array\n        (\n            &#091;email_address] =&gt; lbsupport@integroscrm.com\n            &#091;email_address_caps] =&gt; LBSUPPORT@INTEGROSCRM.COM\n            &#091;invalid_email] =&gt; 0\n            &#091;opt_out] =&gt; 1\n            &#091;date_created] =&gt; 2021-10-27 11:32:34\n            &#091;date_modified] =&gt; 2021-10-27 11:32:34\n            &#091;id] =&gt; 945e4534-3719-11ec-bd31-000c29791bd4\n            &#091;email_address_id] =&gt; 9431a448-3719-11ec-94a3-000c29791bd4\n            &#091;bean_id] =&gt; 945da0a2-3719-11ec-97aa-000c29791bd4\n            &#091;bean_module] =&gt; Leads\n            &#091;primary_address] =&gt; 0\n            &#091;reply_to_address] =&gt; 0\n            &#091;deleted] =&gt; 0\n        )\n\n    &#091;2] =&gt; Array\n        (\n            &#091;email_address] =&gt; nastya@integroscrm.com\n            &#091;email_address_caps] =&gt; NASTYA@INTEGROSCRM.COM\n            &#091;invalid_email] =&gt; 1\n            &#091;opt_out] =&gt; 0\n            &#091;date_created] =&gt; 2021-10-27 11:32:34\n            &#091;date_modified] =&gt; 2021-10-27 11:32:34\n            &#091;id] =&gt; 945e6dfc-3719-11ec-b53f-000c29791bd4\n            &#091;email_address_id] =&gt; 9431c536-3719-11ec-ab68-000c29791bd4\n            &#091;bean_id] =&gt; 945da0a2-3719-11ec-97aa-000c29791bd4\n            &#091;bean_module] =&gt; Leads\n            &#091;primary_address] =&gt; 0\n            &#091;reply_to_address] =&gt; 0\n            &#091;deleted] =&gt; 0\n        )\n\n)\n<\/code><\/pre>\n\n\n\n<p>Output port <em><span style=\"color:#6888c9;\">primary email address<\/span><\/em> contains only one primary address without attributes:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>anastasiia.gubanovych@integroscrm.com<\/code><\/pre>\n\n\n\n<p><em>Following Processing of Outputs<\/em><strong><em>&nbsp;<\/em><\/strong><\/p>\n\n\n\n<p>There are two options how to process results from email addresses output:&nbsp;<\/p>\n\n\n\n<p>Option 1: Use <strong><span style=\"color:#ec8f45;\">For Each Element<\/span><\/strong> to get each Email Address and then <strong><span style=\"color:#ec8f45;\">Get Array Element<\/span><\/strong> or <strong><span style=\"color:#ec8f45;\">Get Array Elements by Path<\/span><\/strong> to get needed Email Address Attribute:&nbsp;<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-16.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-16-1024x164.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n\n\n<p>Option 2: Use <strong><span style=\"color:#ec8f45;\">For Each Element<\/span><\/strong> to get each Email Address and then newly added <strong><span style=\"color:#ec8f45;\">Cast To Entity<\/span><\/strong> to treat Email Address as usual Entity:&nbsp;<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-17.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-17-1024x164.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n\n\n<p><strong>Change Primary Email Address&nbsp;<\/strong><\/p>\n\n\n\n<p><em>Scenario 1: Set Email Address for the new record&nbsp;<\/em><\/p>\n\n\n\n<p>For the new record, you may use a field email1 to set a primary email address:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-18.png\" alt=\"\" class=\"wp-image-1911\" width=\"657\" height=\"282\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-18.png 1003w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-18-300x129.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-18-768x329.png 768w\" sizes=\"auto, (max-width: 657px) 100vw, 657px\" \/><\/figure>\n\n\n\n<p>Or new operator <strong><span style=\"color:#ec8f45;\">Add Email<\/span><\/strong>:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-19.png\" alt=\"\" class=\"wp-image-1912\" width=\"591\" height=\"332\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-19.png 809w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-19-300x169.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-19-768x432.png 768w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/figure>\n\n\n\n<p><em>Scenario 2: changing Email address if there is an email address<\/em>&nbsp;<\/p>\n\n\n\n<p>To completely override a Primary Email Address, first remove the current Primary Email Address and then set the new one:&nbsp;<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-20.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-20-1024x284.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n\n\n<p><em>N.B. If there is more than one email address for the Record, removing only the Primary address as in the example above may end up with two primary addresses for the record.&nbsp;<\/em><\/p>\n\n\n\n<p>To save all email addresses and change only the primary email address (along with preserving the old primary email address), it\u2019s needed to remove all addresses, add a new one, and then return all removed emails, like this:&nbsp;<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-21.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/07\/email-addresses-21-1024x339.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n\n\n<p><span style=\"font-size:17px\"><b>Other Changes<\/b><\/span><\/p>\n\n\n\n<p>\u00b7 Removed deprecated Operators (Flex Docs, User Actions, Behavior)&nbsp;<\/p>\n\n\n\n<p>\u00b7 Removed non-numeric symbols from packages version number<\/p>\n<div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_1886' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-1886\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-094f23eef690f' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-094f23eef690f'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='1886' \n                                      data-rating='0'\n                                      data-rater-starsize='24'\n                                      data-rater-readonly='false'\n                                      data-rater-nonce='fa81b01ba5' \n                                      data-issingular='false'\n                                    ><\/div><div class=\"yasr-vv-stats-text-container\" id=\"yasr-vv-stats-text-container-094f23eef690f\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"1886\" \n                               id=\"yasr-stats-dashicon-094f23eef690f\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-094f23eef690f\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-094f23eef690f\">0<\/span>  Average: <span id=\"yasr-vv-average-container-094f23eef690f\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-094f23eef690f' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-094f23eef690f' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Release date: 2021-11-06 Cast to Entity Introducing a new operator Cast to Entity which allows you to create an Entity from the JSON or make your flowchart even more readable by putting Entity to the Variables and then reading it with Cast to Entity Example of usage:&nbsp; 1. Creating Entity from the JSON&nbsp; For example, &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/email-addresses\/\"> <span class=\"screen-reader-text\">Email Addresses<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"tags":[],"class_list":["post-1886","page","type-page","status-publish","hentry"],"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/comments?post=1886"}],"version-history":[{"count":10,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1886\/revisions"}],"predecessor-version":[{"id":1963,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1886\/revisions\/1963"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=1886"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=1886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}