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
   Can I Bind an Attachment to a Specific Activity in Infor CRM version 7.54?
Recently I had a user ask if they could bind an attachment to a specific Activity within Infor CRM??
Posted on Jul 07, 2015 by Dale Richter to Infor CRM Questions & Answers
 
   Infor CRM (Formerly Saleslogix) Iterating through all tabs on a Page
 Using the TabWorskpace you can iterate through all the tabs on a page and do something with them, l
Posted on Jun 19, 2015 by Kris Halsrud to Kris Halsrud's Blog
 
   Infor CRM (Formerly Saleslogix) Hiding Tabs at Runtime Without Using Modules
 As Ryan wrote a long time ago, you can create a module and add it to a page in the Infor CRM web cl
Posted on Jun 10, 2015 by Kris Halsrud to Kris Halsrud's Blog
 
   How I assign ownership to a group of Leads in Infor CRM?
There is a tool within Infor CRM to align Accounts to different Account Owners. It is called Territory Re
Posted on Jun 05, 2015 by Dale Richter to Infor CRM Questions & Answers
 
   Infor CRM (Formerly Saleslogix) Adding a Client Side Confirmation on a Dependency Lookup in the Web Client
 We recently had a client who wanted to have a user confirmation prompt before a user was allowed to
Posted on May 28, 2015 by Kris Halsrud to Kris Halsrud's 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 © 2015 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