2 Replies Latest reply on Apr 29, 2020 1:26 PM by Vishesh R Simha

    P360 Rest API to update the value of logical key of a child entity of Article

    Vishesh R Simha Seasoned Veteran

      Hi,

       

      We have a child entity of Article called ArticleCustomCrossReference. There are two logical fields for this child entity.

       

      1. ArticleCustomCrossReference.CrossReferenceType

      2. ArticleCustomCrossReference.CrossReferenceType

       

      I am using below REST API to change the value of ArticleCustomCrossReference.CrossReferenceType from CV1 to CV2. Although there are no erros, new value is notreflected. Please let me know what mistake am I doing.

       

      URL : http://hostname/rest/V1.0/list/Article/ArticleCustomCrossReference

       

      Method : POST

       

      Body :

      {

         "entityIdentifier": "Article",

         "columns": [

              {"identifier": "ArticleCustomCrossReference.MfgPartNo(CRT_MPRTNM,CV1)"}

         ],

         "rows": [

              {

                  "object":

                  { "id": "2292502@1" },

                  "values": ["CV2"]

              }    

          ]

      }

       

      Output:

      {

          "counters": {

              "errors": 0,

              "warnings": 0,

              "createdObjects": 0,

              "updatedObjects": 1,

              "objectsWithErrors": 0,

              "objectsWithWarnings": 0

          },

          "entries": [],

          "objects": [

              {

                  "row": 0,

                  "object": {

                      "id": "2292502@1",

                      "label": "9M99R",

                      "entityId": 1000

                  },

                  "status": [

                      "UPDATED"

                  ]

              }

          ]

      }