Upgrading the SalesLogix Opportunity Snapshot from 7.5.x to 8.0

If you are upgrading to SalesLogix v8 and want to migrate your Opportunity Snapshot component forward you will need to make some adjustments to handle a breaking change in v8.

The first thing is you should add a using statement:

using Sage.SalesLogix.Services;

Next you will need to replace the obsolete GetSystemInfo calls.  These should be something like:

FormHelper.GetSystemInfoOption(“LockOpportunityRate”);

Where “LockOpportunityRate” is the name of the System Option to retrieve.

What you should do to replace these is to add a new line in the OnFormBoundEvent() method.  At the very beginning add the line:

var systemInfo = Sage.Platform.Application.ApplicationContext.Current.Services.Get<Sage.SalesLogix.Services.ISystemOptionsService>(true);

Now that we have a reference to the new SystemOptionsService we can use that in place of the old call of  FormHelper.GetSystemInfoOption(string).

So for instance this line:

chkLockRate.Enabled = FormHelper.GetSystemInfoOption(“LockOpportunityRate”);

Now becomes

chkLockRate.Enabled = systemInfo.LockOpportunityRate;

ABOUT THE AUTHOR

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!