Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, April 26, 2024 
 
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: How to find out if an Account is a parent of other Accounts using the Slx API
NG
Posts: 5
 
How to find out if an Account is a parent of other Accounts using the Slx APIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 15 8:46 AM

I have compiled all my customizations into a dll.


I have a situation where when the user deletes an Account, I need to check if the Account is a parent to other Accounts . If yes, then I should inform the user and stop the deletion.


I looked at Sage.SalesLogix.Entities.Account class and could not find any property or method that could give me this information.


Is there a way to find this information using the SLX API without having to access the db directly?


 


Any help is highly appreciated


 


Thanks


Neema


 

[Reply][Quote]
Brian Segers
Posts: 69
 
Re: How to find out if an Account is a parent of other Accounts using the Slx APIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 15 4:15 PM

The property you need to search for is ParentID.


The sql version of this could be:


select * from sysdba.account where parentId = {the deleted accountid}


if you get a result then you know the deleted is a parent.

[Reply][Quote]
NG
Posts: 5
 
Re: How to find out if an Account is a parent of other Accounts using the Slx APIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 15 4:33 PM

I want to obtain the same information by using the SLX api without having to run sql. I was wondering if there is a way to do that.

[Reply][Quote]
Brian Segers
Posts: 69
 
Re: How to find out if an Account is a parent of other Accounts using the Slx APIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 15 9:25 PM

There are  many ways to do it but you will need some basic education on nHibernate and SalesLogix and the answer will vary depppending on the version you have.

[Reply][Quote]
NG
Posts: 5
 
Re: How to find out if an Account is a parent of other Accounts using the Slx APIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 15 9:52 PM

The version we currently have is Sales Logix 8.1

[Reply][Quote]
NG
Posts: 5
 
Re: How to find out if an Account is a parent of other Accounts using the Slx APIYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Aug 15 10:26 AM

Hi Brian,


Could you please let me know if there is a way with Sales Logix version 8.1 to figure out if an Account is a parent to  other accounts via the API

[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 © 2024 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): 4/26/2024 3:37:17 PM