Hi Silvia,
AFAIK, Dynamic configuration parameters and Stream transformation parameters don't work in multi-mapping scenario. If in case you do want to get hold of message id for the 2 messages, I suggest you do another graphical mapping (separate for both) messages types and populate an intermediate structure with the message id and use the value in multi-mapping later.
Hope it helps!
Ambrish