cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Merge multiple documents to an array in ultra pipeline

thilkip
New Contributor

We need to merge multiple documents to single array and looking for help. Since it is ultra task, we are running out of optionsโ€ฆ

Input data:

[
{โ€œRecordโ€: โ€œ1โ€},
{โ€œRecordโ€: โ€œ2โ€},
{โ€œRecordโ€: โ€œ5โ€},
{โ€œRecordโ€: โ€œ4โ€},
{โ€œRecordโ€: โ€œ6โ€}
]

Expected Output:
[ โ€œresponseโ€: [{โ€œRecordโ€: โ€œ1โ€}, {โ€œRecordโ€: โ€œ2โ€}, {โ€œRecordโ€: โ€œ5โ€}, {โ€œRecordโ€: โ€œ4โ€}, {โ€œRecordโ€: โ€œ6โ€}]
]

25 REPLIES 25

JensDeveloper
Contributor II

Hi @koryknick

Thank you for the answer. I aslo found my own mistake in ultra tasks you just get the url by using the variable $path_info in a mapper. I used a pipeline parameter _PATH_INFO but that only works in triggered task.

Regards

Jens