Search This Blog

Thursday, April 6, 2017

Create assets in IBM Maximo using OSLC via JSON from Mobile

 

Step by step guide on how to use Maximo JSON API to create an asset in Maximo:

 

Step 1 Get a http post tool, like postman and enter your server URL.

Step 2 Append the _lid and _lpwd to your URL as shown below.

 

Maximo ibm json oslc

Step 3 Configure the body of the HTTP post in JSON format as shown above, make sure you enter the right site.

Step 4 Click on Send and see response.

 

create asset via json oslc maximo http post

The URL for the new OSLC resource is displayed with status as 201, CREATED.

 

Step 5 Navigate to the Maximo and see your ASSET which is created in Maximo.

image

 

 

Congrats, you are an integration pro now. You just created an asset in Maximo using OSLC and HTTP post.This feature is provided to Maximo by the JSON API and can be used to do variety of CRUD operations on Maximo objects.

You can replace asset with work order or other objects and test them as well.This is an important feature which will be used if you are trying to update asset in Maximo via a mobile application built on Angular/React or other hybrid frameworks.

This can also be used with other frameworks and you can use JQUERY with AJAX to post the requests to Maximo.

Similar feature can be implemented with REST and HTTP post to create objects as explained in this Maximo blog but they work only with XML, to play around with JSON for mobile applications OSLC works best.

 

Trouble shooting : In case you get the below error.

oslc:message": "BMXAA0021E - User name and password combination are not valid. Try again.",

 

Solution: Please append _lid & _lpwd in URL to fix this.

 

Keep Reading !

 

Action Item: Subscribe & Share.

No comments:

Post a Comment