I need to call a lookup multiple times for additional data based on a list of IDs I get from a previous lookup. In the first HTTP lookup I get a list of orders and I need to make another HTTP lookup for additional data for each order based on the ID of that order. The URI of the lookup stays the same I send the Order data inside the request Body. This is the response I get from the first lookup:
{
"page_of_records": [
{
"record": {
"Orders": [
{
"MasterOrderId": 78965,
"PoeOrdersId": 81470,
"CustomerFirstName": "Jane",
"CustomerLastName": "Doe",
"Created": "/Date(1442269250410-0000)/",
"Total": 95.98,
"CurrencyId": "USD"
},
{
"MasterOrderId": 78965,
"PoeOrdersId": 81471,
"CustomerFirstName": "Ploni",
"CustomerLastName": "ben Ploni",
"Created": "/Date(1442269250490-0000)/",
"Total": 160.7,
"CurrencyId": "USD"
},
{
"MasterOrderId": 78965,
"PoeOrdersId": 81472,
"CustomerFirstName": "John Q.",
"CustomerLastName": "Public",
"Created": "/Date(1442269250567-0000)/",
"Total": 59.63,
"CurrencyId": "USD"
},
{
"MasterOrderId": 78965,
"PoeOrdersId": 81473,
"CustomerFirstName": "Richard",
"CustomerLastName": "Roe",
"Created": "/Date(1442269250630-0000)/",
"Total": 208.74,
"CurrencyId": "USD"
},
{
"MasterOrderId": 78965,
"PoeOrdersId": 81474,
"CustomerFirstName": "Nom",
"CustomerLastName": "de Guerre",
"Created": "/Date(1442269250707-0000)/",
"Total": 111.25,
"CurrencyId": "USD"
}
],
"IsSuccess": true,
"ResponseCode": 0,
"LocalizedResponseText": "Success"
}
}
]
}