10-06-2017 07:54 AM
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.
10-06-2017 09:46 AM
See if the Conditional snap will provide what you need: https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438463/Conditional
10-06-2017 11:46 AM
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.