Accessing Current AccountID When on the Opportunity Details Screen in SalesLogix

Question: I am able to access the current OpportunityID using string OppID = this.EntityContext.EntityID.ToString();
when I’m on the Opportunity details screen in SalesLogix.  I would like
to access the current AccountID when I’m on this form but I’m not sure
how.  Can you point me in the right direction?

Answer: Try using the following to access the current Opportunity entity and then traverse to Account: Sage.Entity.Interfaces.IOpportunity opp = (Sage.Entity.Interfaces.IOpportunity)this.BindingSource.Current; string accId = opp.Account.Id.ToString();


Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!