Dynamics Online

Microsoft Business Apps and Microsoft Cloud

How to cache records on run-time in AX?

The simple answer is RecordViewCache class. This class is used to implement set-based caching in your code at run-time. 1.    First declare the variables. CustTrans                    custTrans; RecordViewCache      recordViewCache; 2 .  Call a nofetch query to create a record buffer. It will define the set of records that you want to cache. //Define records to cache select