Business Connector Cache/Store Data In Memory
During development in Dynamics AX 2009 and using business connector to get data from Dynamics AX i faced a problem that result were stored in cache and not reflecting the changes, to resolve this issue when i made changes on Dynamics AX i restart the AX service but after some time it stops working and it again not reflecting the changes, so i add following line of code in business connector code after logging in and it start working.
Axapta ax = new Axapta();
ax.LogonAs(credentials.UserName, credentials.Domain, new System.Net.NetworkCredential(credentials.UserName, credentials.Password), null, null, null, null);
ax.CallStaticClassMethod("SysFlushAOD","doFlush");
ax.CallStaticClassMethod(“SysFlushAOD”, “doFlush”);
thanks a lot i was strugglin on that
ReplyDeleteThanks a lot. You're a life saver. I was stuck and tried all I could which I knew about. Then I tried your method and it worked like a charm
ReplyDeleteThanks