Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Create group of accounts with no contacts
SLX_Novice
Posts: 246
 
Create group of accounts with no contactsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Mar 11 2:49 PM

Hi all.


We have SLX LAN v7.2.1.


I want to be able to create a group that lists all accounts without any contacts.


Any ideas how I can do this? Can it be done via query builder?


Thank you in advance!

[Reply][Quote]
Brian Segers
Posts: 69
 
Re: Create group of accounts with no contactsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Mar 11 4:51 PM
fiogf49gjkf0d

Add a condition for the Table Account on AccountID


Set Operator = In


Value = (select accountid from contact)


Use value as literal = Checked


Back on the conditions Tab Right Click the line just added and select "Not".


I can send you screenshots if this is not clear.


Best, Brian


 

[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Create group of accounts with no contactsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Mar 11 8:03 AM
fiogf49gjkf0d

Thanks for the reply Brian.


I did your suggestion but it did not show any results (I know for a fact there are accounts with no contacts). Below is a copy of the SQL taken from the query builder.


<p>SELECT A1.ACCOUNTID, A1.USERFIELD9, A1.ACCOUNT, A1.STATUS FROM ACCOUNT A1 INNER JOIN CONTACT A2 ON (A1.ACCOUNTID=A2.ACCOUNTID) WHERE NOT (A2.ACCOUNTID IN (select accountid from contact))

 

[Reply][Quote]
Adam Travers
Posts: 113
 
Re: Create group of accounts with no contactsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Mar 11 8:32 AM
fiogf49gjkf0d

Hi,


Bryans thread is correct and works fine.


It looks like you have used the Accountid column from the Contact table instead of the Account. Your query should show A1.Accountid instead of A2.Accountid after the NOT(


Also, you have an inner join to the Contact table which will only return Accounts with Contacts (the complete opposite to what you want)


Regards, Adam

[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Create group of accounts with no contactsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Mar 11 8:41 AM
fiogf49gjkf0d

Thanks Adam. That was it, I was using the Accountid from the Contact table and not the ACCOUNTs table.


Thank you to both you and Bryan!

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/5/2025 8:51:45 AM