You can use EDI Studio to receive EDI message files from the AS2 web app. To be able to do so, some specific setup is required. Key in the setup is the inbound definition.
To receive EDI messages using the AS2 protocol, first the AS2 web app is run. This app stores the EDI message files in a general storage location. On this general storage location, the inbound definitions are run in recurring mode (Process AS2 inbound queue). During this process, this data is searched for in an EDI message file:
Type: The EDI message type of the data in the file. For example, 'Order' or 'Invoice'.
Recipient: The data in the file that indicates to which company in D365 F&SCM the data must be imported. For example, the GLN.
Based on this data, the file is moved to a specific storage location for further processing. From this specific storage location, the file is processed with an inbound message.
You can use the AS2 - Inbound process, for example, to import data that must be processed by different messages, based on specific field values.