Forum Discussion

PM's avatar
PM
Contributor
7 years ago

PUT/DELETE - Unable to call output of Get operation parameter values in the payload (Delete Body)

First used GET Method:-   {"GetCustomerPartNumbersResp": {"CustomerPartNumberRelationshipCollection": {"CustomerPartNumberRelationship": [{ "ProductNumber": "100074", "CustomerPartNumber": "TEST"...
  • PM's avatar
    PM
    7 years ago

    Thanks for the help but with below code was able to get desired results..

     

    Just required to enter this in the payload:-

    {
    "DeleteCustomerPartNumbersReq": {
    "ProductNumber": "${PUT-GET#Response#$['GetCustomerPartNumbersResp']['CustomerPartNumberRelationshipCollection']['CustomerPartNumberRelationship'][0]['ProductNumber']}",
    "CustomerPartNumber": "${PUT-GET#Response#$['GetCustomerPartNumbersResp']['CustomerPartNumberRelationshipCollection']['CustomerPartNumberRelationship'][0]['CustomerPartNumber']}"
    }
    }