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
   Configuring and Packaging secured actions in Saleslogix 8.0
Using Secured Actions, you can restrict access to user interface elements in the Saleslogix web client.
Posted on Aug 12, 2014 by Jason Buss to Jason Buss' Blog
 
   How do you add a parameter for File Attachment Size and Timeout in Saleslogix 8.1?
Question: Is it possible to set a parameter for file attachment size and timeout in Salelogix? If
Posted on Aug 07, 2014 by Dale Richter to SalesLogix Questions & Answers
 
   Saleslogix XBar Installation
When installing the new XBar application I found the instructions a little vague so I thought I would pas
Posted on Jul 18, 2014 by Mark Duthoy to SalesLogix Support
 
   Finding the Current Parent Record ID in SalesLogix Web
Sometimes it's the easiest things that can be a big barrier to entry for getting started with somet
Posted on Jun 27, 2014 by Ryan Farley to Ryan Farley's Blog
 
   SalesLogix 8.1 Job Service Scheduling Executions Error Resolution
Often times a web implementation will have an application server that is used to deploy the web portals t
Posted on Jun 20, 2014 by Mark Duthoy to SalesLogix Support
 
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