BeyondERP.Newsletter
Menu

Setup step on the Electronic W-2 export page · Payroll

Create the electronic W-2 file

Create the file for filing Form W-2s with the Social Security Administration.

See how to set it up Back to Payroll

Used by
Payroll administrator, Payroll manager
Business process
Pay employees
Menu item
PayrollW2File
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
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 isAn annual export that creates the electronic Form W-2 file used to file W-2s with the Social Security Administration.
What you do hereUse 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.
ExampleFor 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.
Electronic W-2 export page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processManage compensation and benefits › Pay employees
Menu pathPayroll › Tax processing › Annual reports › Electronic W-2 export
Set up firstForm W-2 Microsoft Learn
Used next byForm W-2 reconciliation Microsoft Learn
Related pagesForm W-2 box adjustments Microsoft Learn
In this process Print Form W-2s for workers · Check earnings lines before pay statements
End user · Functional consultant

3How to do it

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 itAt year end, after Form W-2 reconciliation balances, when you file W-2s electronically with the Social Security Administration; again for a resubmission.
How oftenAnnually, plus a resubmission when the Social Security Administration asks for one.
Batch settingsRun it interactively, because it needs the PIN and contact details and writes a file to the location you enter.
What the output showsAn 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.

Source: Microsoft Learn

Setup steps on this page

Create the electronic W-2 file

Create the file for filing Form W-2s with the Social Security Administration.

Steps from Microsoft

  1. Go to Payroll > Tax processing > Annual reports > Electronic W-2 export.
  2. Enter the Employee PIN of the person who attests to the file; select Resubmit and enter the Resubmit WFID only for a resubmission.
  3. Enter the Tax year, Federal tax ID, Kind of employer and Employment code.
  4. Fill in the contact fields so the Social Security Administration can reach you.
  5. Enter the File name, select OK, and check the file exists before you upload it.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Employee PINThe eight-character PIN of the employee who attests to the accuracy of the electronic Form W-2.Microsoft Learn
ResubmitSelect when the electronic Form W-2 was submitted before.Microsoft Learn
Resubmit WFIDThe wage file identifier from the Social Security Administration notice, required for a resubmission.Microsoft Learn
Tax yearThe tax year the electronic Form W-2 covers.Microsoft Learn
Employment codeThe employment code of the organization submitting the file.Microsoft Learn
Contact nameThe employee the Social Security Administration can contact about the file.Microsoft Learn
File nameThe location and name of the electronic Form W-2 file.Microsoft Learn

Common errors and fixes

MessageWhat to do
The Social Security Administration rejects the file.Correct the cause, then rerun the export with Resubmit selected and the WFID from the notice. Microsoft Learn
Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Create the electronic W-2 fileRun 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.Who attests to the electronic W-2 file?Sending a corrected file as a first submission instead of a resubmission.Test: Electronic file created

Feature management and licence

Licence or add-inOn 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.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer 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 undoneReversible: The export writes a file and changes no payroll data; create it again if it was wrong.
Feature or countryUS
If you change it laterLearn 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 itemPayrollW2File Checked in Dynamics 365
FormPayrollW2ElectronicDialog Checked in Dynamics 365
Who can open it

2 security roles. Select a role to see its duties and privileges.

  • RolePayroll administratorHcmPayrollAdministrator
    • DutyGenerate payroll tax reportsPayrollGenerateTaxReport
      • PrivilegeCreate electronic file for Form W-2PayrollW2ElectronicGenerate
    • DutyGenerate Form W-2 reportsPayrollGenerateW2Reports
      • PrivilegeCreate electronic file for Form W-2PayrollW2ElectronicGenerate
  • RolePayroll managerHcmPayrollManager
    • DutyGenerate payroll tax reportsPayrollGenerateTaxReport
      • 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 itTo 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 URLhttps://<your-environment>/?mi=PayrollW2File
Data migrationLoad 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
Everyone

8Sources