<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Move Contacts to Correct Accounts Based on Domain in DemandTools</title>
    <link>https://mycommunity.validity.com/t5/demandtools/move-contacts-to-correct-accounts-based-on-domain/m-p/1271#M697</link>
    <description>&lt;P&gt;Thanks so much Anthony, workign though a few aspects of this, but intial tests seem to be promising!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 22:16:57 GMT</pubDate>
    <dc:creator>klabisje</dc:creator>
    <dc:date>2023-09-01T22:16:57Z</dc:date>
    <item>
      <title>Move Contacts to Correct Accounts Based on Domain</title>
      <link>https://mycommunity.validity.com/t5/demandtools/move-contacts-to-correct-accounts-based-on-domain/m-p/1216#M668</link>
      <description>&lt;P&gt;Like most of us I am working to clean up chaos in our SFDC. We have finally removed all duplicate Leads &amp;amp; Contacts, but now I am left with Contacts that are not currently sitting on the correct Account record.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to determine if there is any way to leverage DemandTools to move Contacts, via logic, to their correct Account by looking for the Email Domain fields on our Acocunt &amp;amp; Contact object to match.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Account 1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Email Domain: mydomain.com&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;Contact 1 [Email Domain:yourdomain.com]&lt;/FONT&gt;&lt;BR /&gt;Contact 2 [Email Domain: mydomain.com]&lt;BR /&gt;Contact 3 [Email Domain: mydomain.com]&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;Account 2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;Email Domain: yourdomain.com&lt;/FONT&gt;&lt;BR /&gt;Contact 4 [Email Domain: yourdomain.com]&lt;BR /&gt;Contact 5 [Email Domain: yourdomain.com]&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Contact 6 [Email Domain: mydomain.com]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;With the end goal to have only the Contacts on each Account where they belong. I am&amp;nbsp; open to the idea of needing to run a series of Modules to achive the end goal. Any insights for this community would be greatly appracited, thanks in advanced.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 22:10:52 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/move-contacts-to-correct-accounts-based-on-domain/m-p/1216#M668</guid>
      <dc:creator>klabisje</dc:creator>
      <dc:date>2023-08-18T22:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Move Contacts to Correct Accounts Based on Domain</title>
      <link>https://mycommunity.validity.com/t5/demandtools/move-contacts-to-correct-accounts-based-on-domain/m-p/1217#M669</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/194"&gt;@klabisje&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for the detailed request and examples.&amp;nbsp; I think I have a solution that will work for you.&amp;nbsp; I'm assuming that you're going to be using the website domain on the account record, but if not you could just modify what I provide to use a main account email if that's the case.&amp;nbsp; This is a two step process - we're using two steps because if we don't flag the contacts that don't align with the account domain, the system would process all contacts (aligned or not).&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run a Modify scenario where we flag a custom field.&lt;/LI&gt;
&lt;LI&gt;We're using the Formula action on step 2.&amp;nbsp; It will look like something like this:&amp;nbsp;&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;IF(RelaxedDomain(${Email})=RelaxedDomain (${Account.Website}), "True", "False")&lt;/LI&gt;
&lt;LI&gt;The field we're changing is the custom field we created.&lt;/LI&gt;
&lt;LI&gt;True means the domains align.&lt;/LI&gt;
&lt;LI&gt;False means that they do not.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Process the scenario.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Now we're going to use this as a flag to know which records we need to process.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open Import.&lt;/LI&gt;
&lt;LI&gt;Source is going to be the same Salesforce you're logged into in the top right corner.&lt;/LI&gt;
&lt;LI&gt;The first Salesforce Object is going to be Account (I don't think you'll be able to filter those).&lt;/LI&gt;
&lt;LI&gt;The Operations is going to be Update and Method is going to be Match Conditions&lt;/LI&gt;
&lt;LI&gt;The next Salesforce Object is going to be Contact.&lt;/LI&gt;
&lt;LI&gt;You only have to map two fields:&amp;nbsp; ID to Account ID (Always Update) and Website to Email (Do not Update)&lt;/LI&gt;
&lt;LI&gt;Next step add a condition where that custom fields = False so that we only look at those contacts that don't align with their account's domain.&lt;/LI&gt;
&lt;LI&gt;For Match steps, you're going to choose Email from the drop down and use the "Domain" comparison type.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Review the matches to make sure that it is matching as you'd like - essentially you're comparing the Contact's email domain against all accounts and seeing if it matches.&amp;nbsp; If it matches, you're going to have the account ID on the contact be updated with the matched account.&lt;/P&gt;
&lt;P&gt;Here's a video showing what I did:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.loom.com/share/ade1f39158e74e0b8cff9813fcd12ba5?sid=95903c4a-426f-40b7-8128-9c7acc8d885a" target="_blank"&gt;https://www.loom.com/share/ade1f39158e74e0b8cff9813fcd12ba5?sid=95903c4a-426f-40b7-8128-9c7acc8d885a&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 11:56:00 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/move-contacts-to-correct-accounts-based-on-domain/m-p/1217#M669</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2023-08-21T11:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Move Contacts to Correct Accounts Based on Domain</title>
      <link>https://mycommunity.validity.com/t5/demandtools/move-contacts-to-correct-accounts-based-on-domain/m-p/1271#M697</link>
      <description>&lt;P&gt;Thanks so much Anthony, workign though a few aspects of this, but intial tests seem to be promising!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 22:16:57 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/move-contacts-to-correct-accounts-based-on-domain/m-p/1271#M697</guid>
      <dc:creator>klabisje</dc:creator>
      <dc:date>2023-09-01T22:16:57Z</dc:date>
    </item>
  </channel>
</rss>

