Request to add Metadata to X12.INTERCHANGE class

Nov 7, 2013 at 6:03 PM
I would like to get info that is in the MessageContext class after the file is parsed, such as the Format, Tag, and Version. It would help me to know which type of file was parsed. It would great if I could somehow get to that info from this object:

var interchange = ediParser.ToInterchange<INTERCHANGE>(s, null);
Nov 8, 2013 at 8:13 AM
Hi Greg,

You can extract this information from the message content:

Format - this is known before parsing, because you need the correct interchange instance
Tag - get it from ST segment:


Version - get it from the group segment:


Take a look in InterchangeX12Builder.cs, GetMessageContext method for more details.