Forum Discussion
chandanakki
13 years agoOccasional Contributor
Hi Siking,
I was able to extract the device Id from my 1st response & was able to pass it to the next Request using Properties & Property Transfer steps.
But i was able to extract only a single device id using Xpath. I need to extract multiple device id's from my 1st response. Can you please help me on this on how to write the xpath for this
Below is my 1st response e.g i want to grab the first three device ID's
[
{
"deviceID": "10000",
"osVersion": "12.2(11)T6",
"productFamily": "C2600",
"pid": "
},
{
"deviceID": "13999",
"osVersion": "12.1(22)EA6",
"productFamily": "C2950",
"pid": ""
},
"deviceID": "20000",
"osVersion": "12.2(11)T6",
"productFamily": "C2600",
"pid": "
},
{
"deviceID": "23999",
"osVersion": "12.1(22)EA6",
"productFamily": "C2950",
"pid": ""
},
]
I was able to extract the device Id from my 1st response & was able to pass it to the next Request using Properties & Property Transfer steps.
But i was able to extract only a single device id using Xpath. I need to extract multiple device id's from my 1st response. Can you please help me on this on how to write the xpath for this
Below is my 1st response e.g i want to grab the first three device ID's
[
{
"deviceID": "10000",
"osVersion": "12.2(11)T6",
"productFamily": "C2600",
"pid": "
},
{
"deviceID": "13999",
"osVersion": "12.1(22)EA6",
"productFamily": "C2950",
"pid": ""
},
"deviceID": "20000",
"osVersion": "12.2(11)T6",
"productFamily": "C2600",
"pid": "
},
{
"deviceID": "23999",
"osVersion": "12.1(22)EA6",
"productFamily": "C2950",
"pid": ""
},
]