Hi,
I need your collaboration. I have a scenario to do a query using POST to URL. The value you received is stored in the variable “fhybis”.
The received “fhybis” value looks like this:
{
“MT_Consultacliente_CTI_Response”: {
“Customer”: [
{
“InternalID”: 31261,
“PartyTaxID”: “7699998-8”,
“Producto”: “Hormigon”,
“RegionCode”: “013”,
“ZCLASEBP”: “Z000”
},
{
“InternalID”: 31298,
“PartyTaxID”: “76214001-2”,
“Producto”: “Hormigon”,
“RegionCode”: “013”,
“ZCLASEBP”: “”
},
{
“InternalID”: 10066705,
“PartyTaxID”: “23500975-7”,
“Producto”: “Hormigon”,
“RegionCode”: “013”,
“ZCLASEBP”: “”
}
]
}
}
For example if I take one of the InternalID values I use this:
$(rhybis.MT_Consultacliente_CTI_Response.Customer[0].InternalID)
But I need to know the number of records in the array. How do I know how many “Customer” registrations I received?
I was trying something like this, but it didn’t work:
(rhybis.MT_Consultacliente_CTI_Response.Customer.length) (rhybis.length)