Thank you, this was very helpful. Was actually pretty simple. We are using a chain and the script is used to send messages to different destinations, that required different data. Here is what I put in place that worked.
set DESTCONN_metadata [xpmmetaget $xlateId “DESTCONN”]
set xlateOutVals $DESTCONN_metadata
Mark