Hello @api-version query parameter , Thank you for reaching out. You can refer to this document regarding how to create an EDIFACT agreement and configure your agreement to handle received messages. This document here shows to use EDIFACT connector to Encode EDIFACT messages for Azure Logic Apps with Enterprise Integration Pack.
Regarding converting the text file provided to EDI using logic App, I am still working on it and will share my insights shortly.
Please let me know if you have any additional questions or concerns.