Can I Retrieve the SalesLogix HistoryID From a Note That Was Recently Created?

Question: In the AXFormAfterPost routine, is it possible for me to obtain the SalesLogix HistoryID of a note just created?

Answer: When you open up the form check to see if the edit box is databound to the historyid and has a value.  If it doesn’t (like on an insert), then create your own and put it into the edit box:

SUB AXFormChange(Sender)
If txtHistoryID.TEXT = “” THEN
txtHistoryID.TEXT = application.basicfunctions.getidfor(“HISTORY”)
then add a global variable
application.GlobalInfo.ADD “CurrentHistoryID”, txtHistoryID.TEXT


Want content like this delivered to your inbox? Sign up for our newsletter!

Submit a Comment

Your email address will not be published. Required fields are marked *