Maximo

  • 1.  Replace Action in Inbound Integration JSON in Maximo 7.6.1

    Posted Fri October 16, 2020 01:26 PM
    Hi All,

    In Maximo Service Provider we can associate customers to locations. The customer is integrated into Maximo through external system  in JSON format. If the location has customer already then all the existing customers should be deleted and the new customer in the JSON for the same location should get integrated. In case of XML we have ACTION = Replace however I'm not sure how to do it in JSON . Kindly advise. 

    Thanks!!

    ------------------------------
    MAX092012
    ------------------------------



    #MaximoIntegrationandScripting
    #Maximo
    #AssetandFacilitiesManagement


  • 2.  RE: Replace Action in Inbound Integration JSON in Maximo 7.6.1

    Posted Fri October 16, 2020 01:34 PM
    REST API documentation https://developer.ibm.com/static/site-id/155/maximodev/restguide/Maximo_Nextgen_REST_API.html#_creating_and_updating_resources

    See section 11, I think it has what you are looking for

    ------------------------------
    Tom Sarasin
    Maximo Designer
    IBM
    (978) 899-2592
    ------------------------------



  • 3.  RE: Replace Action in Inbound Integration JSON in Maximo 7.6.1

    Posted Fri October 16, 2020 01:44 PM
    Hi Tom,

    Thanks for your reply. I saw this already however I need to perform REPLACE like for example if Location = Building and customer is  A, B and C already in Maximo. The new JSON file has Location = Building and customer is X, Y and Z hence once this record is integrated into Maximo Location Building should have customer X, Y and Z and not A,B,C,X,Y and Z which happens when using MERGE.

    ------------------------------
    MAX092012
    ------------------------------



  • 4.  RE: Replace Action in Inbound Integration JSON in Maximo 7.6.1

    Posted Fri October 16, 2020 01:55 PM
    I believe when you do a PATCH, if the PATCHTYPE is not provided or provided with a value of replace it should delete the current child objects and add the ones provided in the payload.  Keep in mind this replace logic applies to all child objects in your object structure.  Let me know if you tried this and not getting this result

    ------------------------------
    Tom Sarasin
    Maximo Designer
    IBM
    (978) 899-2592
    ------------------------------