Hi Kevin,
As this thread points out, there are several ways to do it, but here is what I think is most elegant:
You have an invoke of AppendToStringList (I assume it is string, not record list).
- Draw your map line from your variable to the fromItem.
- set the Copy-only-if to be ONLY the variable name example: %myVariableName% (this will copy only if the variable exists), and I doubt it is even really necessary–but it needs to be conditional to allow you to also do a set-input on the fromItem.
- set-input to the default value on fromItem(i.e. ‘UNKOWN’ or whatever you want it to be). UNCHECK ‘Overwrite pipeline value’.
Voila, you’ve set the default and mapped all in one line.
Marilyn
#Integration-Server-and-ESB#webMethods-General#webMethods