Login / Register  search  syndication  about

          Kris Halsrud's Blog

Kris Halsrud on development and Integration with CRM and Development

Wiring up a SalesLogix Entity Event to an External Assembly

The SalesLogix entity model allows you to add an event/business rule action to a public method in an external assembly.  This post talks about how to do this.  I will not be talking about actually building an external assembly but just how to wire them up.

To do this:

Log into the Application Architect as Admin.

Go to the menu View…Project Explorer.  This will open the Project Explorer navigator in your current workspace.  Expand out the Entity Model…SalesLogix Application Entities… Select your entity.  For my example I will choose SalesOrderItem.

Project Explorer

Once you expand out your entity you will see Rules, and under this are the Business Rule and Event hooks.  In my sample I will be adding an OnBeforeDelete Post Execute Event.

SalesLogix already wires up some events to have Primary Steps.  You can only have one active Primary step.  Usually it is not advisable to replace the SalesLogix pre-wired event as it handles important business logic (usually).  Typically you always want to add either Pre Execute Steps or Post Execute Steps.  In my case I am adding a post execute step, which will run after the built in SalesLogix Primary Step. BTW, on a side note these pre-wired steps SalesLogix has reference external assemblies, just like what we are going to do.

 Back to the Sample, I double click on the OnBeforeEvent and the Event opens in the Application Architect.

 OnBeforeDelete-Primary Steps

 I want to add a Post Execute Step, so I will click on that tab.

OnBeforeDelete-Post Execute1

 I can see there are no Steps defined yet.  If there were I could add an additional step.  Pre and Post events can have multiple Steps.  Only the Primary Step can have one active step defined. 

Click Add to add a new Step.

 New Business Rule Step

 In the New Business Rule Step dialog that opens,

Choose the option for External Assembly.  Notice that the bottom part of the screen changes and all of the edit boxes are read only.  This is OK.  The interface doesn’t want you to type in freely and make a mistake.  Instead, click the hyperlink “Choose type and method from assembly”.

 Class Browser

The class browser window appears. 

The only choice here is to choose the menu File..Open. This will open a Browser window where you can browse out to your External Assembly file.  When you do so, Click Open on the browser window.

 Class Browser -Broswer Window


Now that you have selected your Assembly, the Class Browser dialog should show you all of the Namespaces, Classes and Methods in the assembly.  Navigate the assembly and choose the method you want to use.

 Class Browser Filled


Select OK.

OnBeforeDelete-Post Execute2

The Event has now been wired up.

What's This?
Bookmark and Share

About Kris Halsrud

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

Related Content
   Confirming Actions With an "Are you sure?" Prompt in Infor CRM (Saleslogix)
I'm not a huge fan of bugging end users. I figure, if an end user clicked something, he or she meant
Posted on Nov 18, 2014 by Ryan Farley to Ryan Farley's Blog
   Manipulating the DependencyLookup Control in the Infor CRM Web Client (Formerly Saleslogix)
 The Dependency Lookup control in the Saleslogix web client is what is used for the hierarchical Are
Posted on Nov 14, 2014 by Kris Halsrud to Kris Halsrud's Blog
   Infor CRM (formerly Saleslogix) Statement of Direction
Learn more about the future of Infor CRM. Recently I received my login information for the Infor Partn
Posted on Nov 13, 2014 by Brianna Ojard to The Inbox
   Adding a report link to the Common Tasks pane in Infor CRM (formerly Saleslogix)
When you are viewing an Entity Detail page, the Common Tasks pane on the right of the page provides a nu
Posted on Nov 12, 2014 by Jason Buss to Jason Buss' Blog
   How to Sum a Collection using Hibernate Criteria and Projections
 To sum the results of a criteria collection you can use code such as the following, which gets the
Posted on Nov 07, 2014 by Kris Halsrud to Kris Halsrud's Blog


Twitter Trackbacks for Wiring up a SalesLogix Entity Event to an External Assembly - Kris Halsrud's Blog [customerfx.com] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 Wiring up a SalesLogix Entity Event to an External Assembly - Kris Halsrud's Blog         [customerfx.com]        on Topsy.com

April 7, 2010 8:31 AM

Leave a Comment

All contents Copyright © 2014 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register