I have an Infor Api Flow with a JQTransform. Before the response was returning 2 products. since this weekend, only 1 is returned. I can't find why. ex:
Before (2 products returned, in my request: prod ABC and prod XYZ):
{
"resultList": [
{
"prod": "ABC",
"netavail": 500,
"price": 59.10,
"List_price": 200.00
},
{
"prod": "XYZ",
"netavail": 500,
"price": 48.55,
"List_price": 135.83
}
]
}
Since this weekend: (only 1 product returned, in my request: prod ABC and prod XYZ)
{
"result": {
"prod": "ABC",
"netavail": 500,
"price": 59.1,
"List_price": 200.00
}
}
Here is my JQTransform:
.response.tOemultprcoutV4["t-oemultprcoutV4"][] | {prod: .prod, price: .price, List_price: .listprice, netavail:.netavail} | .netavail |= if .> 500 then 500 else .
end