Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
mapping from multiple repeating elemnts — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

mapping from multiple repeating elemnts

Received Response
14
Views
1
Comments
edited Feb 11, 2020 12:49PM in Integration 1 comment

Summary

enrich nested payload with values .

Content

i have this complex mapping
i have this payload with 1 or more invoiceLine ,  each 1 or more child elements called  invoiceDistribution .

but i'm stuck doing the following logic :
for each line i will call db adapter which will generate a unique id for each line .
  for each distribution i will also call other db adapter that will generate unique id for each distribution .

so if i have 3 lines , each line has 4 distribution
then i will call generateLindId DB adapter : 3 times in total ;
and will call the generateDistId Db adapter : 4 * 3 = 12 times in total .


the problem is in the right side of the mapping , i pass the lines and distribution separately . that is for each distribution

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!