Getting the Primary Office Address in the Infor CRM Web Client

To get the address defined for the primary company in the Infor CRM web client you can utilize a BusinessRuleHelp method called GetPrimaryServerBranchOptions. From this method you can then get the AddressID property of the BranchOptions object that is returned, and from there get the IAddress object.

Sage.SalesLogix.BranchOptions primaryBranch = Sage.SalesLogix.BusinessRules.BusinessRuleHelper.GetPrimaryServerBranchOptions();
string addrID = primaryBranch.AddressId;
Sage.Entity.Interfaces.IAddress branchAddress = Sage.Platform.EntityFactory.GetById<Sage.Entity.Interfaces.IAddress>(addrID);

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

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!