Wednesday, 9 October 2019

CLEAR D365 CACHE URL

CLEAR D365 CACHE URL

Below URL can be used to directly flush the cache in D365.

https://[AOS NAME].cloudax.dynamics.com/?mi=action:SysFlushAOD

Apart from this there are some methods which can be written to clear the caches

private static server void clearServerGlobalObjectCaches()
{
    SysGlobalObjectCache::clearAllCaches();

}

Below table holds the usage data
SysLastValue syslastValue;
    userId  userId = curUserId();

    ttsbegin;
    delete_from syslastValue where syslastValue.UserId == userId;

    ttscommit;

Thanks,
Vikas Mehta.

No comments:

Post a Comment

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++  Introduction In our previous posts, we explored what Copilot can do o...