back to top

Adding a Email link to a datagrid in Infor CRM SLX for Windows

Adding an email link to a datagrid in Infor CRM SLX for Windows can be a useful feature to allow users to quickly send emails to a specific recipient without having to manually enter the email address. In this article, I will outline how to create an email link in a datagrid using VBScript in Infor CRM SLX for Windows.

First, you need to add the Email column to the datagrid.  From the SQL property of the datagrid, open the query builder and add Email to the items in the Layout tab.

Close the query builder, and go to the datagrid columns collection property.  On the Properties view, right click the Email column and select “Change Column Type…”.  From the Available options, select “Hyperlink”.

Once the column type is set, right click the Email column again and view the properties.  On the HyperlinkProperties view, check the “Single link to Launch” option and close the properties view.

Finally, the “Row Select” property for the grid must be unchecked.  When the grid is set to RowSelect, it doesn’t utilize click events for each column, making it impossible to run any code when the link is selected.

 

That’s all we need to do to add the column to the datagrid.  The only thing left to do is write the code to be launched when the new column is clicked.

The datagrid should have an OnHyperlinkStart event.  Double-click the empty event to add a new method for that event.

     Sub grdContactsHyperlinkStart(Sender, PrimaryKeyValue, FieldName, Value, ByRef LaunchBrowser)
          If (Not (Value = "")) Then
               Dim objShell

               Set objShell = CreateObject("Shell.Application")
               objShell.Open "mailto:" & Value

               Set objShell = Nothing

          End If
     End Sub

That should be all that needs to be done.  This is a pretty simple implementation, but you may have other considerations.  This assumes there is only one Hyperlink in the datagrid, since the event where we added our code runs for any hyperlink column.  If that were the case, the Field Name is part of the event parameters, so conditional statements could be included to handle different columns.  This is a simple mailto link that is being passed to the Shell, which can easily be expanded to add default information to the new email.

 

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
Jason Buss
Jason Buss
Jason is a senior application developer with Customer FX.

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