Tuesday, 10 January 2017

Change Status using REST API integrated in HTML | IBM MAXIMO

REST API (Representational State Transfer) (Application Programming Interface)
it was introduced in 7501, a new protocol to integrate Maximo with external systems.
Its a part of Maximo Integration Framework (MIF) works and can be use to CRUD.
With Business objects (Mbo) and Object structures (OS)

Useful Links



For example, lets try to change the stautus of a Workorder using REST API

create a html file named index.html
paste this code into it.



<html>
<body>
<form name="input" action="<host:port>/maxrest/rest/os/MXWO/686431?_lid=maxadmin&_lpwd=Oracle11g" method="POST">
<p> UPDATE STATUS <input name="STATUS" value="APPR" type="text"> <p/>
<input type="submit" value="Submit">
</body>
</html>

as the user hit the submit button on this webpage, it will change the status of workorder id mentioned in form action string, which is 686431 in my case.
This will update workorder's status to APPR

Reference: http://www-01.ibm.com/support/docview.wss?uid=swg21595876

No comments:

Post a Comment