Generate Multiple Files from Records in a Page

Hi Everyone,

I'm working on a project where we need to send 2 years worth of X12 852 Activity data. The data is sourced from NetSuite and needs to be grouped by weeks. I've got a presave page script creating records in a single page with one record for each week.

I tried using option to generate one file per key and set the groupKey value to the week number in the record data.

I'm getting this error : Outbound aggregation is not supported for this EDI document type. Unable to derive groupKey from file definition.

I can't find any documentation on this feature. Is it possibly to generate a file for each record in a page rather than one file per page of records?? How do I set that up if so??

Thank you!

Dave G.

Hi David - can you please try now and let me know?

Hi Shreenesh,

I'm receiving a different error message now.

Record is missing a value for the aggregation key "Reference Identification".

Here's a sample of one of the records in the page. Thanks for the assistance!

{
    "weekKey": "20260411",
    "groupKey": "20260411",
    "periodStartDate": "2026-04-05",
    "periodEndDate": "2026-04-11",
    "includeActivityCodes": [
        "QS"
    ],
    "lines": [
        {
            "linNumber": "000001",
            "idQualifier": "UP",
            "itemId": "3145891001006",
            "activityCode": "QS",
            "sdq": [
                {
                    "door1": "0026",
                    "qty1": 3
                }
            ],
            "priceQualifier": "RES",
            "retailPrice": "32.00"
        }
    ],
    "lineCount": 1
}

Meeting Dave regarding this issue.