Forum Discussion
I think you can do this with a Mapper since the “Target Path” is a JSON-Path. Using a path with some wildcards (*
), you can spread the quiz_id
value across all the questions. Here’s a suggested Mapper configuration:
The first row copies the quiz_id
to all of the categories (e.g. “sports”) and then the questions (e.g. “q1” and “q2”). Since I set the Mapper to pass through the input doc, the second row deletes quiz_id
from the input.
Community7038_2020_03_09.slp (3.8 KB)
Thanks a lot @tstack it worked great.
below is the actual case which I wanted to implement using this logic but it doesn’t seem to be working
Scenario to be implemented:
with reference to JSON payload (refer attached pipeline), the item array has field “lineItemId”, this field i need to be mapped inside AccountingCodingBlockAssignment below ProductRecipientPartyInternalID field.
here if for same lineItemId, there are more then one objects under AccountingCodingBlockAssignment, then it should map respective the “lineItemId” below each objects ProductRecipientPartyInternalID field.
i have kept one expected json snap in pipeline for better understanding, archiving this would help us to design desired complex mappings.