Open kalaiyarasiganeshalingam opened 4 months ago
@kalaiyarasiganeshalingam currently this is not achievable by purely using the visual editor. However, if you add a custom function at the source file, you could use the visual mapper for rest of the mappings.
https://github.com/user-attachments/assets/20678ef1-559a-4a37-92fe-bc115ecb1374
you could write a function like below
function mergeOwnersAndLeads(owners: Root["owner"], leads: Root["lead"]) {
return owners.map((owner, index) => ({
...owner,
...leads[index]
}));
}
https://github.com/user-attachments/assets/079ae8a1-092b-4088-9971-0a59ff098c34
https://github.com/user-attachments/assets/f9e9516e-9f36-456f-aaee-788c46069ae3
We are looking into ways of addressing these kinds of scenarios and will come up with a proper solution. Until that you can follow the above steps to achieve your requirement.
Description: The output is generated by mapping fields from various objects in the input. However, the current mapping process does not support mapping across different objects.
Affected Product Version: MI-4.3.0-alpha
OS, DB, other environment details and versions:
Steps to reproduce:
Reproduce the issue by importing the input and output schema using the provided data:
Input Json
Output XML