Capturing History in SalesLogix

We recently had a request to capture the changes made to a grid on an Opportunity Tab in SalesLogix.  The three items requiring capture were:

  1. Any time a record was deleted
  2. Any time a record was added edited via an Add Edit Form
  3. Any time a check box in the grid was checked or unchecked

To implement this we simply created a function that would insert a record into the History table and would accept the OpportunityID, Description, Notes, and LongNotes as parameters.

 The pseudocode:
Sub InsertHistoryRecord(strOpportunityID, strDescription,strNotes, strLongNotes)
       dim Variables
       Create RecordSet
       With Recordset
           .Open "SELECT * FROM HISTORY WHERE 1=2", objSLXDB.Connection
           .Fields("HISTORYID") = strHistoryID
           .Fields("ACTIVITYID") = strHistoryID
           .Fields("TYPE") = "262156"
           .Fields("NOTES") = strNotes
           .Fields("LONGNOTES") = strLongNotes
           .Fields("ATTACHMENT") = "F"
       End With
End Sub

Then we inserted a call to this procedure on the grid's OnCheckColumnToggle, the function that deleted records, and the form that added or edited records.  We wrote this custom procedure so that the history record creation would be seemless to the user and so we could control the data as we wanted.

Justin Kuehlthau's picture
Justin Kuehlthau
Director of Services

Justin is a Customer Relationship Management, CRM, software business analyst and consultant with ten years of experience in the industry. Justin started at Technology Advisors on the support desk where he learned extensively about all facets of CRM software. He was quickly promoted to the role of consultant where he learned the entire process of software consulting from pre-sales to post production support. He now works as the senior Technical Architect with new and existing customers and as the Director of Services at Technology Advisors. 

Related Articles

May 20, 2020

Guest post by: Anastasia Stefanuk

Small business owners are extremely vulnerable to cybersecurity threats. Company managers need to protect their assets by hiring IT consultants and implementing top data protection practices. The post below is a review of the ways IT security consultants help SMB owners build infrastructures, as well as the best practices business owners should implement to protect their digital assets from third-party attacks.

May 18, 2020

Guest post by: Joe Peters

Few companies start big. If you want your startup or SME to grow, you must begin with a scalable business model and invest in the kind of technology that supports growth without adding to cost.

What Makes a Business Scalable?

Scalable businesses are those that have the infrastructure in place to manage exponential growth. It takes a laser-sharp focus and the foresight to prepare even if you're not ready for expansion today.