Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Maximo REST API

    Posted Tue August 18, 2020 04:02 PM

    Hello,

    I am trying to use Maximo REST API to fetch details list of incident details. I get the below error.

    SyntaxError: Unexpected end of JSON input

    at JSON.parse (<anonymous>)

    In node.js code, the authentication is ok. I am not able to see a request/response in the debugger. Any help would be greatly appreciated.

    router.get("/incidents", function (req, res) {

    var authcookie = req.session.authcookie;

    var maximo = new Maximo(options,authcookie);

    maximo.resourceobject("CDUISRMINCIDENT")

    .select(["*"])

    .pagesize(1)

    .fetch()

    .then(function(resourceset)

    {

    jsondata = resourceset.thisResourceSet();

    console.log(jsondata);

    res.json(jsondata);

    uri = jsondata[0]["href"];

    })

    .fail(function (error)

    {

    console.log('****** Error Code = '+error);

    });

    });






    #SupportMigration
    #Maximo
    #Support
    #AssetandFacilitiesManagement


  • 2.  RE: Maximo REST API

    Posted Mon January 25, 2021 03:32 PM

    This product forum is intended for client to client collaboration.

    If you want to engage IBM Support, you should open a support case: https://www.ibm.com/mysupport/s/createrecord/NewCase






    #Maximo
    #Support
    #SupportMigration
    #AssetandFacilitiesManagement