11 Replies Latest reply on Oct 22, 2020 2:39 PM by Sai Narasimha Prasad Rebba

    Unable to return the Preset identifier in Rest API

    Ronald Lubin Guru

      I am using the below API to return items with their attributes, attributes identifier, Attribute Value.  It works fine, but now I need to return a part of it the attributeValue identifier that does not seem to work.

       

      Without the identifier

      "http://xxxxxxx/rest/V1.0/list/Article/ArticleAttribute/bySearch?catalog=US+Catalog&query=Article.SupplierAltAID+in+%28%223780100%22%29&fields=ArticleAttribute.Identifier&ArticleAttributeLang.Name&ArticleAttributeValue.Value&metaData=true"

       

      I get

       

      "rows": [

       

              {

                  "object": {

                      "id": "710976@1000",

                      "label": "3780100",

                      "entityId": 1000

                  },

                  "qualification": {

                      "identifier": "DEFAULT",

                      "name": "Quantity",

                      "language": "English"

                  },

                  "values": [

                      "17",

                      "Quantity",

                      "Each"

                  ]

              }

       

       

      With the ArticleAttributeValue.Identifier

      "http://xxxxxxx/rest/V1.0/list/Article/ArticleAttribute/bySearch?catalog=US+Catalog&query=Article.SupplierAltAID+in+%28%223780100%22%29&fields=ArticleAttribute.Identifier%2CArticleAttributeLang.Name%2CArticleAttributeValue.Value%2CArticleAttributeValue.Identifier&metaData=true"

       

       

      "rows": [

       

              {

                  "object": {

                      "id": "710976@1000",

                      "label": "3780100",

                      "entityId": 1000

                  },

                  "qualification": {

                      "identifier": "DEFAULT",

                      "name": "Quantity",

                      "language": "English"

                  },

                  "values": [

                      "17",

                      "Quantity",

                      "Each",

                      "DEFAULT"

                  ]

              }

       

      I get "DEFAULT" in the result and not the actual identifier.

       

      How do I modify so the ArticleAttributeValue.Identifier is also returned with the result.