9 – Order Status Feedback File

This will create a CSV file consisting of the incoming Order Id and the Sage200 assigned Order Number which will then be uploaded back to the order system.

  1. On the main design screen drag a CSV Writer from the Writers group onto the palette.
  2. Connect it to end of the Sage200 Order import and double click to open the setup.
  3. Expand the File Options.

  1. File Path
    • The path to the folder where the resultant file will be sent.
    • For training, enter:
      C:\IMan\OutputData
  2. File Name
    • For writer transforms you can enter a simple formula to generate a filename.
    • For training, enter:
      "OrderStatus" & Format(Date, "yyyymmdd") & ".csv"
  3. Encoding Method
    • For training, enter:
      Unicode (UTF-8) (utf-8)
  4. Evaluate Filename
    • Check to evaluate the File Name field.
    • For training:
      Checked.
  5. Overwrite Existing File
    • Each time the process is run a new file (with a uniquifier) will be created.
    • For training,:
      Checked.
  1. Collapse the File Options and select the remaining options.

  1. Field Delimiter
    • The character(s) used to separate the fields.
    • For training, enter:
      ,
  2. Quote String Fields
    • Check if you want string/text fields quoted.
    • For training:
      Unchecked.
  3. Write Header Rows
    • Check if you want the field names to appear at the top of the file.
    • For training:
      Unchecked.
  4. Generate File Per Transaction
    • If you wish to generate many files per transaction type e.g. If you had data with multiple batches, you may wish to generate a file per batch.
    • For training:
      Leave blank.
  1. Click the Field Mapping and press Edit.
  1.  Select/deselect the fields you wish to export:
    • For training:
      Deselect every field except CustomerDocumentNo and DocumentNo.

  1. Change to the SOPOrderLine transaction and deselect ALL fields.
  2. Refresh and then open your file:

  1. Press Apply to save the transform and close and then save the integration.