I found several posts which said i could access the name of the received file with this code snippet
Dim context As IBaseMessageContext = pInMsg.Context
context.Read("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties").ToString
context As IBaseMessageContext = pInMsg.Context
context.Read("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties").ToString
context.Read("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties").ToString
but it throws an exception (I'm using BTS 2006) if I look if the property is promoted
context.IsPromoted("ReceivedFileName", http://schemas.microsoft.com/BizTalk/2003/file-properties)
"ReceivedFileName", http://schemas.microsoft.com/BizTalk/2003/file-properties)
it tells me that it's not promoted. I tried to promote it but this didn't work either. Has anyone a solution for how to get this filename in the decoder component?