У нас вы можете посмотреть бесплатно Merge 2 variables using Map and Filter Function in DataWeave - Practice Example 1 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this video, we will Merge 2 variables using Map and Filter Function in DataWeave. Input: var invoices = [ { "invoiceId": 1, "amount": 100 }, { "invoiceId": 2, "amount": 200 }, { "invoiceId": 3, "amount": 300 }] var allocations = [ { "allocationId": 1, "invoiceId": 1, "allocationAmount": 50 }, { "allocationId": 2, "invoiceId": 1, "allocationAmount": 50 }, { "allocationId": 3, "invoiceId": 2, "allocationAmount": 100 }, { "allocationId": 4, "invoiceId": 2, "allocationAmount": 100 }, { "allocationId": 5, "invoiceId": 3, "allocationAmount": 150 }, { "allocationId": 6, "invoiceId": 3, "allocationAmount": 150 }] Output: [ { "invoiceId": 1, "amount": 100, "allocations": [ { "allocationId": 1, "invoiceId": 1, "allocationAmount": 50 }, { "allocationId": 2, "invoiceId": 1, "allocationAmount": 50 } ] }, { "invoiceId": 2, "amount": 200, "allocations": [ { "allocationId": 3, "invoiceId": 2, "allocationAmount": 100 }, { "allocationId": 4, "invoiceId": 2, "allocationAmount": 100 } ] }, { "invoiceId": 3, "amount": 300, "allocations": [ { "allocationId": 5, "invoiceId": 3, "allocationAmount": 150 }, { "allocationId": 6, "invoiceId": 3, "allocationAmount": 150 } ] } ]