# Upsert to Dynamics 365 from FastStats

To test the upsert, first create a selection in FastStats.

> [!TIP]
>
> Create a limited test example as a selection in FastStats before running a full upsert.

## Running the wizard

To use the Microsoft Dynamics Wizard:

1. Select the icon from the **Output Wizards** section on the Wizards panel.

   [![Upsert wizard](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Upsert_wizard.png>)](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Upsert_wizard.png>)
2. Select the **Upload Table** and select **Next**.

   [![Upload next](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Upload_next.png>)](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Upload_next.png>)
3. Drag your **FastStats selection** into the drop zone and select **Next**.

   [![Drag selection next](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Drag_selection_next.png>)](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Drag_selection_next.png>)
4. Enter a value for any additional fields and select **Next**.

   > **Note**
   >
   > This step doesn't apply if you don't have any additional fields.

   [![Additional fields next](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Additional_fields_next.png>)](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Additional_fields_next.png>)

   > **Note**
   >
   > Each record uploads the additional field value to the corresponding field.
5. Enter your Microsoft Dynamics **Username** and **Password**.
6. Add a **Description** and select **Next**.

   [![Dynamics credentials](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Dynamics_credentials.png>)](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Dynamics_credentials.png>)
7. Select **Finish** when the upload is complete.

   [![Select finish](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Click_finish.png>)](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Click_finish.png>)
8. Log in to Microsoft Dynamics to confirm the data uploaded successfully.

   [![Confirm MS complete](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Confirm_MS_complete.png>)](<https://help.apteco.com/assets/images/admin/integration/microsoft-dynamics-365/upsert/Confirm_MS_complete.png>)
