Maximo

Maximo

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

 View Only
  • 1.  Maximo Mobile Rest API call to external system

    Posted Thu March 21, 2024 03:30 AM

    How can I make, with the use of AppCustomizations.js, a Rest API call to an External system? For example Node Red.

    I need just a basic sample.

    Regards,



    ------------------------------
    Vincent Wanders
    ------------------------------


  • 2.  RE: Maximo Mobile Rest API call to external system

    Posted Sun March 24, 2024 12:47 PM

    You'd just be writing traditional JavaScript unless there's some additional requirement you are trying to do that isn't communicated here (like calling something in Maximo to send the request to node red). There is a ton of documentation on how to interact with REST APIs using vanilla JavaScript. 



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



  • 3.  RE: Maximo Mobile Rest API call to external system

    Posted Wed March 27, 2024 05:49 AM

    I know. And writing code is exactly what I want. The objective is indeed fetching information collected by a node from Node Red.
    Thanks for pointing me to Rest APIs using vanilla JavaScript.

    Somehow vanilla script did not came to mind. Was thinking about importing React Native components somehow (there is a lead in the Docker information for that).

    I managed to call the Node red endpoint and a json is passed to Mobile as a object.
    There are some challenges I have to take (like how to pass a json to an array or variable).

    But it looks promising.



    ------------------------------
    Vincent Wanders
    ------------------------------