<?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: Delete Accounts without Opportunities in DemandTools</title>
    <link>https://mycommunity.validity.com/t5/demandtools/delete-accounts-without-opportunities/m-p/1584#M866</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/1216"&gt;@tandersontph&lt;/a&gt;, this a great use case - If you don't already have a field with the number of Opportunities listed on the Account or a process in place to do so, you will first want to create a scenario using the Record Count action in the &lt;A href="https://knowledge.validity.com/hc/en-us/articles/7989583934875-Modify" target="_self"&gt;Modify module&lt;/A&gt;. You can choose which child object you would like to count &amp;amp; where you want that total to be placed on the Account object as shown below, keeping in mind that you will need a field created to hold that value:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonG_Validity_0-1703862988825.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/440i220BC5971A2DD636/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonG_Validity_0-1703862988825.png" alt="JonG_Validity_0-1703862988825.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Once you've totalled the amount of Opportunites on the Account, you can then use the &lt;A href="https://knowledge.validity.com/hc/en-us/articles/7989584085915-Delete" target="_self"&gt;Delete module&lt;/A&gt; to query and delete any Accounts you see fit. Once the Delete module is opened, you can click the Source dropdown and actually choose your Salesforce environment as a source. Just be sure to use the Select Subset/Filter Records button to query&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/EM&gt; those records with 0 opportunities or you might have a mess on your hands. Luckily the Delete module lets you preview first! Additionally I recommend using Soft Delete in case you need to Undelete any records from your recycle bin after the fact.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonG_Validity_1-1703863120269.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/441i3CE8291681EC8ADD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonG_Validity_1-1703863120269.png" alt="JonG_Validity_1-1703863120269.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Let me know what you think!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Dec 2023 15:20:36 GMT</pubDate>
    <dc:creator>JonG_Validity</dc:creator>
    <dc:date>2023-12-29T15:20:36Z</dc:date>
    <item>
      <title>Delete Accounts without Opportunities</title>
      <link>https://mycommunity.validity.com/t5/demandtools/delete-accounts-without-opportunities/m-p/1581#M865</link>
      <description>&lt;P&gt;Hello all, is there a way to query the number of Opportunities an Account has and then delete the Account if the number is 0 (among other criteria)? We are wanting to automatically delete dormant Accounts using dtv.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 18:04:27 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/delete-accounts-without-opportunities/m-p/1581#M865</guid>
      <dc:creator>tandersontph</dc:creator>
      <dc:date>2023-12-28T18:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Accounts without Opportunities</title>
      <link>https://mycommunity.validity.com/t5/demandtools/delete-accounts-without-opportunities/m-p/1584#M866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/1216"&gt;@tandersontph&lt;/a&gt;, this a great use case - If you don't already have a field with the number of Opportunities listed on the Account or a process in place to do so, you will first want to create a scenario using the Record Count action in the &lt;A href="https://knowledge.validity.com/hc/en-us/articles/7989583934875-Modify" target="_self"&gt;Modify module&lt;/A&gt;. You can choose which child object you would like to count &amp;amp; where you want that total to be placed on the Account object as shown below, keeping in mind that you will need a field created to hold that value:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonG_Validity_0-1703862988825.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/440i220BC5971A2DD636/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonG_Validity_0-1703862988825.png" alt="JonG_Validity_0-1703862988825.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Once you've totalled the amount of Opportunites on the Account, you can then use the &lt;A href="https://knowledge.validity.com/hc/en-us/articles/7989584085915-Delete" target="_self"&gt;Delete module&lt;/A&gt; to query and delete any Accounts you see fit. Once the Delete module is opened, you can click the Source dropdown and actually choose your Salesforce environment as a source. Just be sure to use the Select Subset/Filter Records button to query&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/EM&gt; those records with 0 opportunities or you might have a mess on your hands. Luckily the Delete module lets you preview first! Additionally I recommend using Soft Delete in case you need to Undelete any records from your recycle bin after the fact.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonG_Validity_1-1703863120269.png" style="width: 400px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/441i3CE8291681EC8ADD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonG_Validity_1-1703863120269.png" alt="JonG_Validity_1-1703863120269.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Let me know what you think!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 15:20:36 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/delete-accounts-without-opportunities/m-p/1584#M866</guid>
      <dc:creator>JonG_Validity</dc:creator>
      <dc:date>2023-12-29T15:20:36Z</dc:date>
    </item>
  </channel>
</rss>

