cancel
Showing results for 
Search instead for 
Did you mean: 

Mapper Snap - Combine Data sets at Root level

Henchway
Contributor

Hello everyone,

I’ve been having a problem which i can’t really pinpoint:
I want to combine two data sets at root level instead of having to put in an intermediate top element.

Here is a working example:
The target_currency_id of the mappedOutput will replace the target_currency_id of the original input when put together into the entry element:
image

However when i try to combine these at document root level, the MappedOutput seems to be ignored entirely:

image

Does anyone have an idea why this behaves as it does?

Thanks and best regards
Thomas

1 ACCEPTED SOLUTION

del
Contributor III

@Henchway, I can’t explain the “why” in your above question, but I think I can help you to a solution. Try the following expression and map to $:

$original.extend({"target_currency_id":$MappedOutput.target_currency_id})

image

View solution in original post

2 REPLIES 2

del
Contributor III

@Henchway, I can’t explain the “why” in your above question, but I think I can help you to a solution. Try the following expression and map to $:

$original.extend({"target_currency_id":$MappedOutput.target_currency_id})

image

Thank you very much, that does the trick.
Still wondering why exactly this issue occurs, but at least now i’m walking in solution-land.

Best regards
Thomas