Maximo

Maximo

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

 View Only
  • 1.  REST call to get all work orders where user has assignments on?

    Posted 2 days ago

    I am trying to get a list of all work orders where the logged in user has assignments on. I was trying to do something like this but it does not seem to be working. 

    https://main.manage.site.maximo.com/maximo/api/os/mxapiwodetail?lean=1&oslc.select=wonum,description&workorder.showassignment.where=labor.personid="882664"&workorder.showassignment.domaininternalwhere=status="ASSIGNED"

    Does anyone know how I should go about this?



    ------------------------------
    Christopher Stewart
    ------------------------------


  • 2.  RE: REST call to get all work orders where user has assignments on?

    Posted 2 days ago
    Edited by Bartosz Marchewka 2 days ago

    Hi @Christopher Stewart

    I think you can achieve that by using saved query that is defined in MXAPIWODETAIL object structure. You can use this one ASSIGNEDWOLIST that is available out of the box, or you can create a custom one if you need.

    Sample REST call url:

    https://main.manage.site.maximo.com/maximo/api/os/mxapiwodetail?oslc.select=wonum,siteid,orgid&oslc.pageSize=100&savedQuery=ASSIGNEDWOLIST&
    &collectioncount=1&ignorecollectionref=1&lean=1

    To review saved query please navigate to MAS Manage application:

    1. Select "Integrations" -> "Object Structures" application
    2. Find MXAPIWODETAIL object structure definition
    3. Select "Query Definition" from "More Actions" section
    4. Find ASSIGNEDWOLIST using filter option. To create your custom one you can use "New Row" button but then please remember to set correct saved query name in weburl request.

    ------------------------------
    Bartosz Marchewka
    IBM Maximo Consultant
    AFRY
    ------------------------------



  • 3.  RE: REST call to get all work orders where user has assignments on?

    Posted yesterday

    Thanks Bartosz. This works great with my apikey. What is the best way to pass through a personid or userid to get the records if I am using an service type apikey to connect?



    ------------------------------
    Christopher Stewart
    ------------------------------