Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, June 30, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Retrieve current AccountID
Andrew Grandin
Posts: 272
 
Retrieve current AccountIDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 May 10 4:33 AM
Hi All, im on the OpportunityDetails screen, i can access the current OpportunityID using string OppID = this.EntityContext.EntityID.ToString();

but how would i access the current AccountID while on this form?

thanks all.
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Retrieve current AccountIDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 May 10 4:50 AM
Hi,

You can access the current Opp entity (then traverse to Account to get it) by doing:

Sage.Entity.Interfaces.IOpportunity opp = (Sage.Entity.Interfaces.IOpportunity)this.BindingSource.Current;
string accId = opp.Account.Id.ToString();

Thanks,
Nick
[Reply][Quote]
Andrew Grandin
Posts: 272
 
Re: Retrieve current AccountIDYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 May 10 4:54 AM
Hi Nick,

Thanks for your reply. I was just about to tell everyone i found a way,lol. i used (which looks pretty much the same):

Sage.Entity.Interfaces.IOpportunity opportunity = this.BindingSource.Current as Sage.Entity.Interfaces.IOpportunity;
string account = opportunity.Account.Id.ToString();

Thanks very much for your reply.
[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): 6/30/2025 1:37:29 PM