Scenario:
I’m pulling in orders for the day to be sent to be routed.
API is called and logic is all contained within the lookup steps.
First step is to do a lookup (Can’t use export step in API)
Problem:
With an export, my first data lookup becomes the JSON envelope
In the API Builder, my first data lookup tries to ‘enrich’ a blank envelope
Data Structure:
HEADER Data {
…..
DETAIL Data {
…..
}
}
Mapping messes up that structure in flipping it for lookups on the DETAIL data. (Path to Many = DETAIL)
Details
I have the data pulling in the correct format in the first lookup step, but normally, in an export, that JSON shape is passed to the next step.
In the API Builder, I need to map that data for it to pass to the next screen.
I've tried mapping each field expressly, but I cannot map data[], so I have to use data[0], which only returns the first record: (Path to records = value, I’ve tried it with data[0].value[*] and value[0] as well)
I've tried mapping the response array into the output, but since I can't map to the root of the array (Effectively mapping to "blank") I have to give the output array a title:
This brings all rows in but messes up the file structure for future lookups. (path to many doesn't work when it's nested deeper than at the root level)
So, I reached out to support to ensure I was approaching this properly, and if so, where my misstep was. I've tried transforming the lookup response on the first lookup section, but the mapper continues to map my reshaping inside a data array on the input, then places the output inside the record object.
So how can I map similar to the first image above, field to field, and have Celigo bring in all the records instead of just the top one?







