Maximo

Maximo

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

 View Only
  • 1.  Maximo API for moving/issuing an asset

    Posted Tue May 07, 2024 05:30 AM

    Hello,

    I'm looking for advice and possibly examples on how to perform asset move/issue operations using Maximo API's. After some experiments I could make moving an asset between operating locations and from an operating location to a storeroom using OSLC API like this:

    curl --location 'https://hostname/maximo/oslc/os/MXASSET/6/?lean=1' \
    --header 'apikey: ...' \
    --header 'Content-Type: application/json' \
    --header 'x-method-override: PATCH' \
    --header 'PATCHTYPE: MERGE' \
    --data '{
        "orgid": "ORG01",
        "siteid": "S01",
        "newsite": "S01",
        "newlocation": "L1001"
    }'

    I've also seen an example of REST API call like this but I could not make this one work at all. If anyone uses this successfully, please share a working example:

    curl --location 'https://hostname/maximo/rest/mbo/asset/6?_format=json&_compact=1&_urs=0' \
    --header 'apikey: ...' \
    --header 'x-http-method-override: moveSingleAsset' \
    --data '~asset=this&~newLocation=L1001&~newSite=S01'

    I've got stuck with issuing an asset from a storeroom to an operating location. Ideally I'm looking for a REST API/OSLC API approach but doing it via Java API is also an option as long as it relies on Maximo logic and updates the history in the assettrans table correctly. I already know about Asset.issueAsset(…) Java method but could not make it work yet so a working example would be great. And again it'd be cleaner to use a REST API/OSLC API instead so I'm looking for some help here.



    ------------------------------
    Ivan Lagunov
    Head of R&D
    ZNAPZ B.V.
    ------------------------------


  • 2.  RE: Maximo API for moving/issuing an asset

    Posted Wed May 08, 2024 02:00 AM

    Can you try with any Objectsructure having ASSETTRANS?

    It worked for me via flatfile dataload. Used only 'ASSET, ASSETTRANS' in objectstrucure and 'ASSETNUM,LOCATION, SITEID' as data fields.



    ------------------------------
    Sankar Ganesh
    ------------------------------