cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping - Field XREF Values

christwr
Contributor III

I assume noobish question, but I’m trying to design a map to populate different descriptions in an output field based on different codes in an input field. For example $input.code to $output.description. If code=A then description=Alpha, if code=B then description=Beta, etc…

So it’s one input field mapped to one output field, but not sure how to do it. Right now I’m doing a goofy string replace type of thing for every possibility in one big rule, but I’m sure there has to be a more straight forward way.

2 REPLIES 2

del
Contributor III

See if the Conditional snap will provide what you need: https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438463/Conditional

christwr
Contributor III

Thanks, that works! I was already in a map for some other stuff so was trying to do it there, but is a lot cleaner as a separate conditional snap.