Logic Apps : Fetching ISA and GS Segment Values From Interchange Envelope and Mapping
Introduction When we work with B2B using EDI standards in logic apps we use Decode component which does work of validation and decodes the EDI(flat file) and b ased on the settings we specify in Agreement, the Transaction sets are splitted ( one edi document comprise of segments contained in ST to SE) and is available in Payload of Decode component for further use. EDI X12 messages are wrapped with envelope, at header it has ISA segment (Interchange control header), GS (Functional group) and ST (Transaction Set) and at the trailer it has IEA, GE and SE. Enveloping segments work in pairs. ISA-IEA represents an interchange. GS-GE is a functional group inside of the interchange and ST-SE is a transaction inside the group. Most of the time, we need to map the individual edi documents( ST-SE) to destination system's expected format. Read example about it - Getting Started with Logic Apps - EDI X12 to XML where following map was used ...