Maximo Open Forum

 View Only

 Node-Red OSLC API

  • Administration
  • Customizations
  • Integrations
  • IoT
  • Maximo Application Suite
Sagar Patel's profile image
Sagar Patel posted 10-13-2023 10:39

Hi, all.

I am fairly new to Maximo and was looking an example for Node-Red integration.  I have the IBM Maximo OSLC API.  I am trying to trigger creating a work order from the Create Node, and testing with Postman for my message to be sent.  However, I am frozen on my node with my debug giving me:  TypeError: Cannot read properties of undefined (reading 'get')

I was wondering if anyone had any information on what this may be.  Likewise, I am open to other ideas to integrate.  I am trying to automatically create work orders based on conditions from IOT devices.  I have the IOT devices working but I am open to the idea of http POST requests, etc.

__PRESENT

Prashant Sharma's profile image
Prashant Sharma

Hello-

On your error that you have mentioned, first step should be setting Work Order Create API in API pointing to your Maximo Instance and then try to create a WO but passing the mandatory fields from Postman - are you able to successfully do it? If yes then error is related with Node Red which you may need to debug.

Here is an example from IBM but keep in mind this API used here is not NextGenRest API also k/a OSLC API but approach for you will remain same.

https://www.ibm.com/support/pages/creating-work-order-and-approving-it-using-maximo-rest

There are couple of questions which need to be answered to figure out alternative solutions-

  1. What version of Maximo are you working on?
  2. These IoT devices, how do they provide the data and which protocol do they follow?  Can you get data from IOT Devices and save in a DB or in CSV file?
  3. How is the frequency of getting this data?