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
   Editing Filters in Saleslogix Web Client 8.0
Is it possible to add or remove Saleslogix filters from the List view in Accounts?
Posted on Apr 08, 2014 by SalesLogix Support to SalesLogix Questions & Answers
 
   Bug in the Saleslogix Web LiveGrid Lookup dialog
I recently ran into an issue with the Opportunity Products grid in the Saleslogix web client.  I cli
Posted on Apr 04, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Saleslogix Web Client Controls are Missing
Every so often we hear that a user can no longer add products to an opportunity whether it is a new oppor
Posted on Mar 24, 2014 by Mark Duthoy to SalesLogix Support
 
   Major Problem in Saleslogix v8.1 Cloud Instances
I have been working with a new client who is on the hosted cloud solution for Saleslogix version 8.1.&nbs
Posted on Mar 19, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Setting the Defaults on the Insert Account/Contact Duplicate Record View
When creating a new Account/Contact record in Saleslogix web, you have the ability to check for duplicat
Posted on Mar 10, 2014 by Jason Buss to Jason Buss' Blog
 
Comments

 

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

(required)  
(optional)
(required)  
Add
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