Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Electronic file created”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
An annual export that creates the electronic Form W-2 file used to file W-2s with the Social Security Administration.
What you do here
Use this page to create the electronic Form W-2 file for a tax year, including the submitter contact details and, for a resubmission, the wage file identifier.
Example
For example, BEAT creates the 2026 electronic W-2 file for its 85 workers; when the Social Security Administration rejects it, the payroll lead reruns it with Resubmit selected and the WFID from the notice.
The page in Dynamics 365. page title tab to open what to set or check
About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
When to run it
When to run it
At year end, after Form W-2 reconciliation balances, when you file W-2s electronically with the Social Security Administration; again for a resubmission.
How often
Annually, plus a resubmission when the Social Security Administration asks for one.
Batch settings
Run it interactively, because it needs the PIN and contact details and writes a file to the location you enter.
What the output shows
An electronic Form W-2 file for the tax year at the file name you entered, with the submitter and employer details. If the Social Security Administration rejects it, check the Employee PIN, Federal tax ID and, for a resubmission, the Resubmit WFID.
Run it after the Form W-2 reconciliation balances and the forms are printed; use Resubmit with the WFID only for a resubmission.The file must carry the same amounts as the forms issued to workers; a resubmission is identified by the WFID.
On the live system, Payroll administrator and Payroll manager use this page. Learn says the payroll pages are available only when the Payroll - USA configuration key is selected.
Per legal entity, and only for legal entities whose primary address is in the United States: US payroll is built for them. The report covers the legal entity you run it in. Microsoft Learn
Can it be undone
Reversible: The export writes a file and changes no payroll data; create it again if it was wrong.
Feature or country
US
If you change it later
Learn says to use the electronic Form W-2 to file W-2s with the Social Security Administration. The export writes a file only. From version 10.0.40 Microsoft retired the US payroll tax updates and removed the tax engine, so new pay statements can't be generated and new tax reports can't be created; earlier records stay and can still be read. Microsoft Learn
Technical architect
6Technical
Menu item
PayrollW2FileChecked in Dynamics 365
Form
PayrollW2ElectronicDialogChecked in Dynamics 365
Who can open it
2 security roles. Select a role to see its duties and privileges.
PrivilegeCreate electronic file for Form W-2PayrollW2ElectronicGenerate
DutyGenerate Form W-2 reportsPayrollGenerateW2Reports
PrivilegeCreate electronic file for Form W-2PayrollW2ElectronicGenerate
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use it
To use itPayroll administrator HcmPayrollAdministratorPayroll manager HcmPayrollManagerGive people one of these roles. On this system, 2 roles can run this page.Checked in Dynamics 365
Developer
7Developer
Open it by URL
https://<your-environment>/?mi=PayrollW2File
Data migration
Load order: Electronic W-2 export has no data entity in Data management. It writes a file from the year's payroll history, so there is nothing to migrate.Microsoft Learn