Combining Transactions


    Combining Transactions

    EDIFileLoader allows developers to combine different ISA messages into folders. By default the EDI file structure is flat. However by setting the FlatStructure property to false ISA segments will be converted to top level folders


    // Create a new instance of EDIFileLoader
    EDIFileLoader loader = new EDIFileLoader();

    loader.AutoDetectDelimiters = true;

    // Set the type of EDI file that you are about the load
    loader.EDIFileType = FileType.X12; //Or FileType.EDIFACT

    // Set the source of EDI data, whether you are validating from an in-memory string or a file

    loader = EDISource.DataString; // Or EDISource.File

    // Set the EDI data to load
    loader.EDIDataString = “……”;

    loader.FlatStructure = false;

    // Load the data
    EDILightWeightDocument loadedDocument = loader.Load();

    in EDI File Loader
    Did this article answer your question?