Skip to main content



No record found.

Microsoft Dynamics AX forum

SysGlobalCache keys existence time

Posted on by 763


I have a custom class and a method inside like this one:

Inside CheckCallFromAsterics.validateCheck() I have the following method:

And it always returns false cause globalCache doesn't contain pair (classstr(CheckCallGetFromAsterics), literalstr(run)))

When it returns false validatecheck() returns true and then globalCache is set with pair (classstr(CheckCallGetFromAsterics), literalstr(run))) in method startProcessed from above.

Method startProcessed  starts when I log in.

The question that even thoiugh I have set up pair (classstr(CheckCallGetFromAsterics), literalstr(run)))  in global cache. At next login my global cache doesn't contain this value. Does it mean global cache only exists while my user session exists and then it is eliminated?


  • dark_knight Profile Picture
    dark_knight 763 on at
    RE: SysGlobalCache keys existence time

    Thank you Martin as always.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 225,490 Super User on at
    RE: SysGlobalCache keys existence time

    That's correct. It's just a cache in memory; it's not persisted between sessions. If you want something saved for later sessions, put it into database.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans