The view ID for the X report can be found in the menu Settings > Printing > Printing Schemes > [Document View Group] > Fiscal Registrar Functions > X report > Main > ID.
The view identifier for a Z-report is searched for in the same way.