0 Replies Latest reply on Aug 10, 2018 1:57 AM by vamshi itukala

    How to overwrite the one of the json array in ICRT Process

    vamshi itukala Seasoned Veteran

      Hi,

       

      I need to update the exisitng json data in the api based if else condition.

       

      If  required json array data is already exist  then I need to update else I need to add this json array to that json data.

       

      For Example IN detail,

       

      My existing data,

       

      "SourceMappings":[

      {

      "values:[

      {

      "code": "AC"

      "value": "ABC"

      }],

      "source":"Source1"

      },

      "values:[

      {

      "code": "AO"

      "value": "AB"

      }],

      "source":"Source2"

       

       

      My new data to update or add :

      "values:[

      {

      "code": "AC"

      "value": "AB"

      }],

      "source":"Source2"

       

      What is the condition to add or overwrite the source 2 array in ICRT process

       

       

       

      Can you please help me

       

      Thanks