back to top

What Do I Need to do to Call a Function From Within a Contact Event in SalesLogix?

Question: How do I call a function from within a contact event in SalesLogix?  What I’ve done is written a string manipulation function in Visual Studio to format Contact phone numbers, and I have compiled the function into a DLL.  What I would like to happen is to have the function called in the OnBeforeUpdate event of the Contact entity.  Unfortunately, I don’t know how to reference the DLL inside the Application Architect so that it can be called within the OnBeforeUpdate event.

The function signature is like this:

public static int FormatNumber(Country country, string numberToFormat, out string countryCode, out string areaCode, out string mainNumber, out string extension)

Answer: The first suggestion would be to do the formatting in a business rule, not an event.  This is because in the future you may have other fields that you want to validate, and doing this in a business rule or a C# snippet can make it easier to maintain.  That said, to do what you are asking you will need to add the DLL to your portal’s SupportFiles/bin directory.  Next, open up the Contact entity in Application Architect, go to events, and open OnBeforeUpdate.  Most likely there is already a primary step defined that you don’t want to modify, so a good place to put it is in the Pre-Execute Steps.  Choose this tab and click Add.  Now pick the External Assembly radio button, click “Choose type and method from assembly”.  When the Class Browser opens, select the File menu and open your DLL.  Expand the namespace down to your function, highlight, and click OK.

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Infor CRM SLX 10.0: Delegate Ownership Changes for “Everyone” Records

Learn how the new EveryoneOwnerAssignment secured action in Infor CRM SLX 10.0 allows designated users to change ownership of Everyone-owned records without requiring Administrator access.

Related Articles

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Related Videos