axaptadynamics-ax-2012dynamics-ax-2009business-connector

How to disable cache in Business Connector Dynamics AX 2009


When I try to get data from PriceDiscTable I get old data. In this case I need to reconnect or disable cache in table properties (CacheLookup).

How can I get correct data without disabling CacheLookup property?

I tried

priceDiscTable.disableCache(true);

but problem still exist.


Solution

  • Try priceDiscTable.reread(). This will query the database to reread the record.