Skip to main content

Import submissions

What it does​

When you move to WebForms from another system, you can bring the old submissions with you. They keep their original dates and appear in the form's list of submissions and in the Inbox. They arrive marked read, with no link to a customer account, and get a reference number only when the form uses reference numbers. There's no import screen in the admin. You import through the WebForms AI assistant, or a developer uses the WebForms Management API.

Before you start​

  • The form exists in WebForms and has a field for every answer you bring. Each answer is matched to a field by its Field Code. See Field codes.

  • The submissions are in an import file in the JSON Lines format, saved as UTF-8: a text file with one line per submission. Each line holds:

    • the name of the system it comes from, and the submission's number there;
    • the date and time it was sent, with the time zone;
    • the code of the store view it belongs to, for example default;
    • the answers, each under its field's code;
    • optionally, the sender's email address.

    The exact format is on Import row schema.

  • For the assistant: it's connected to your store. See Connect an AI assistant.

  • For the API: the integration has Import Submissions, under WebForms → API, and access to the form.

  • Magento's scheduled tasks (cron) are running. A confirmed import waits for them.

  • The file holds your customers' personal data. Leave out answers you don't need, keep the file and any report of refused lines where only the right people can open them, and delete them once the import is done.

Steps​

  1. Note which of the form's Form Submitted notifications are switched on, then switch them off, so that no email goes out for old submissions. See Test and switch on an email.

  2. Check the file before anything is written:

    • With the assistant: put the file in the import folder of the assistant's settings folder, ~/.webforms-mcp/import/, on the computer where the assistant runs. Copy it there with your computer's file manager. Ask the assistant to import the file into your form. It answers with the file name, its size and a checksum (a fingerprint used to confirm that the file hasn't changed), and says nothing has been sent to the store yet. Confirm that this is the right file.
    • With the API: your developer creates an import for the form, uploads the file and asks WebForms to check it.

    WebForms reads every line and writes nothing. It reports how many lines it can import and how many it refuses, with a reason for each refused group, such as a field code the form doesn't have.

  3. If lines are refused, fix the file and start again from step 2.

  4. Confirm the import. The assistant asks you before it starts. With the API, your developer commits the import. The submissions are written on the next run of Magento's scheduled tasks (cron).

  5. Ask the assistant for the import's status, or have your developer read it. done means the import has finished. Check its counts of written, skipped and refused lines.

  6. Switch on again the notifications you noted in step 1.

What you should see​

Go to Content → WebForms → Manage Forms. In the form's row, click Select in the Actions column, then click Browse Results. The imported submissions are in the list with their original dates. On Manage Forms, the form's All counter includes them and Last Result Date shows the newest original date.

Each imported submission:

  • is marked read, so it doesn't add to your unread count;
  • is Approved when the form doesn't use approval, and Pending when it does;
  • gets the form's default status, if the form uses statuses;
  • isn't linked to a customer account;
  • gets a reference number when the form uses reference numbers, like any new submission.

Limits​

  • One file holds at most 50,000 submissions and 64 MB.
  • Files that were uploaded with the old submissions can't be imported. Only text answers come across.
  • Acceptances of a Terms field aren't imported: consent given in another system can't be carried over. The imported submissions read No Acceptance Record, and the import shows a warning that names the field.
  • The same line is never imported twice. If you import a file again, lines already in the form are skipped and counted as skipped.
  • One import runs at a time for each form. If the status says an import was cancelled before you confirmed it, start again from step 2.
  • Refused lines are listed only in a report your developer can download once. The assistant shows the counts and reasons, not the lines.

Troubleshooting​

  • Every line is refused because of the date. Each date needs its time zone, such as Z for UTC at the end.
  • Lines are refused with an unknown field. The file uses a key the form doesn't have. Go to Content → WebForms → Manage Forms, click the form's name, then Form Builder. Compare each field's Field Code with the file.
  • The status stays queued. Magento's scheduled tasks aren't running. Check cron with your developer.

What's next​

Applies to WebForms 4Last reviewed November 24, 2026