Sending Multiple Files within the Same Payload

By default, AS2 messages contain a single file within the payload (i.e., the message being sent). However, some supply chains require that multiple files that are related to each other (perhaps with different content types) be sent together within the same message. 

To send multiple files within the same payload:

  1. Select Multiple file payload from the Command Wizard or include the -MUL option on the PUT command line.
  2. Group the related files to be sent either in your designated outbox or within a subdirectory under your designated outbox. Files that you do not want to be sent should not be stored in this subdirectory.
  3. Optionally, enter the Destination file names. This field can include any of the supported macros allowing for the outgoing files to be named, for example, with a date-time stamp. See Using macro variables (Destination File context) section for information about applicable macros.
  4. Run the action.

    Inbound messages containing multiple files within the same payload are stored together in a subdirectory under the designated inbox.

    The directory is named in the form:

    YYYYMMDD-HHMMSS-CCC

    where:

    YYYY current year
    MM current number of the month (01-12)
    DD current day of the month
    HH current hour
    MM current minute
    SS current second
    CCC current fraction of a second