Maximo Open Forum

 View Only

How can make a condition in json mapping with the value of json field

  • 1.  How can make a condition in json mapping with the value of json field

    Posted 05-18-2024 16:46
    Edited by Christopher Winston 11-19-2024 13:18

    I have a json mapping like this

    {
    "assetnum": "attr$ASSETNUM",
    "location": "attr$LOCATION",
    "myvalue": "LONDON",
    "myvaluetest": "helloworld",
    }
     
    In myvalue i have contion
    attr$LOCATION == "LONDON" "MYVALUE1234"
    attr$LOCATION == "DUBLIN" "MYVALUE999"
    I want to put a condition in myvaluetest looking for the myvalue data something like (how can i referrer to myvalue field)
    myvalue == "MYVALUE1234" "helloWorld"
    myvalue == "MYVALUE999" "TestHello"


    #Integrations

    ------------------------------
    Iván Emilov
    ------------------------------