โ10-15-2021 03:41 AM
Hi,
Can somebody tell me if there is an alternative for the group by field snap? I need to use that functionality in an ultra task and I know that the group by field snap is not compatible. What I need to get at is the following:
Input:
[
{โ$idโ:โ1โ,โcompanyโ:โesโ,โaccountNumberโ:โ4351โ,โproductCodeโ:โa000000011โ,โproductDescriptionโ:โprod1โ,โnetPriceโ:0.0,โcurrencyโ:โEURโ,โresultMessageโ:โโ},
{โ$idโ:โ2โ,โcompanyโ:โesโ,โaccountNumberโ:โ4351โ,โproductCodeโ:โa0000021a47โ,โproductDescriptionโ:โprod2โ,โnetPriceโ:190.630,โcurrencyโ:โEURโ,โresultMessageโ:โโ}
}]
Target:
[{โpricesโ:
[{โmaterialCodeโ:โa000000011โ,โunitPriceโ:0.0,โcurrencyโ:โEURโ,โpriceTypeโ:โMSD Priceโ},
{โmaterialCodeโ:โa0000021a47โ,โunitPriceโ:190.630,โcurrencyโ:โEURโ,โpriceTypeโ:โMSD Priceโ}
}]
}]
Hope that somebody can help me?
Thanks in advanced.
โ10-15-2021 08:08 AM
HI
Yes that is correct.
โ10-15-2021 10:20 AM
You canโt return more than one output document per input document from an Ultra pipeline. If your pipeline generates more than one, only the first will be used for the response. You might want to consider a Triggered task instead. It will execute a new pipeline instance for each request so is more flexible.
See the notes under โOutput View Typeโ on this doc page:
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/731349232/Planning+Ultra+Pipeline+Tasks