Friday, September 4, 2020

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;

No comments:

Post a Comment