Skip to main content

Can I use two keys to join two schemas together?

Comments

1 comment

  • David Paras

    First Approach with key function:

    1. Create a new key say as Batch Name and Apply below ForEach condition on the target Record level: "$keyBatchName[Date1 = $Input_Schema2/Root/Record/Date2]"

    Second Approach without key function(More Feasible):

    1. Apply ForEach on target Record level: "$Input_Schema1/Root/Record[BatchName1 = $Input_Schema2/Root/Record/BatchName2 and Date1 = $Input_Schema2/Root/Record/Date2]"

    NOTE: Date1 and BatchName1 are the fields of the first input source schema(Schema1). Date2 and BatchName2 are the fields of the second input source schema(Schema2).

    0

Post is closed for comments.