Refresh master data cache in D365FO

Refresh master data cache in D365FO

Having imported deeply cached master data into the D365FO Production environment (such as ‘entire table’-cached project groups, absence groups etc.), you may find the target form seemingly empty. An attempt to create the records manually with the same IDs fails with a “Record already exists…” error message. I.e. the data has been imported by the Data management framework, successfully loaded into the Azure SQL Database but not visible to this application server instance.

Solution: execute the below command in the browser, then reload the form:
https://xxxprod.operations.dynamics.com/?mi=SysClassRunner&cls=SysFlushData

This launches the SysFlushData class known from previous AX versions with the help of the SysClassRunner shell and force refreshes the cache.