Maximo

 View Only
  • 1.  reportusagelog not updated when REST is used to generate reports

    Posted Mon July 18, 2022 02:03 PM
    Hi,
    We have many reports, some custom, that are run by our customer using REST. I noticed that the reports are not showing up on the OOB report usage report, and in fact do not show up in the reportusagelog table. What is the best way to track report usage for reports run via integration?

    ------------------------------
    jeffk 2BC7
    interloc solutions
    grand rapids MI
    ------------------------------



    #Maximo
    #MaximoIntegrationandScripting
    #AssetandFacilitiesManagement


  • 2.  RE: reportusagelog not updated when REST is used to generate reports

    Posted Wed July 20, 2022 08:18 AM
    I would open a case on this. Whether it should be considered a defect is subjective but I think not recording the report history is a defect. As we move to more Graphite based applications, generating a report via the REST API will be necessary and I would expect to keep history in that scenario.

    ------------------------------
    Steven Shull
    ------------------------------



  • 3.  RE: reportusagelog not updated when REST is used to generate reports

    Posted Fri July 29, 2022 12:31 PM
    Thanks I have done so. In the meantime if I would like to capture information about REST report requests shouldn't we be able to create a REST automation script named OSIN.MXAPIWODETAIL to capture such request data? I have started reviewing this possibility and am not seeing any debug from a placeholder automation script designed as mentioned above.

    ------------------------------
    jeffk 2BC7
    interloc solutions
    grand rapids MI
    ------------------------------



  • 4.  RE: reportusagelog not updated when REST is used to generate reports

    Posted Fri July 29, 2022 12:55 PM
    The integration script wouldn't fire in this scenario. This script allows you to hook into the object structure events (like beforeMboData) to manipulate how the data is processed in Maximo. But with system actions like this you're not posting data so those events won't fire. 

    If you need something before the fix, the best option I could think of is you could create your own action (either specific to the object structure in 7.6.1.X or a system action if you're on MAS 8.8) and run the report yourself. There's quite a bit of code involved and unfortunately I can't share the code with how we're doing it today.

    ------------------------------
    Steven Shull
    ------------------------------