Automatic transmission of NF-e fiscal documents (Brazil)
This article describes how to set up email parameters to automatically send a Nota Fiscal eletrônica (NF-e) to a vendor or customer after the NF-e is approved or canceled in Brazil with Microsoft Dynamics 365 Finance.
Use the following procedure to set up email parameters to automatically send an NF-e to a vendor or customer after the NF-e is approved or canceled, or if you generate a correction letter. You can set up a batch group and email templates for an NF-e. You must create separate email templates for an approved NF-e, a canceled NF-e, and a correction letter. You can then create a batch process to send the NF-e by email.
This task uses the BRMF demo company.
To set up email parameters to automatically send an NF-e to a vendor or customer after the NF-e is approved or canceled, follow these steps.
- In Dynamics 365 Finance, go to System administration > Setup > Batch group.
- Select New.
- In the Group field, enter a value.
- In the Description field, enter a value.
- Select Save.
- Close the page.
- Go to System administration > Periodic tasks > Email processing > Batch.
- Expand the Run in the background section.
- In the Batch processing field, select Yes.
- In the Batch group field, enter or select a value.
- Select Recurrence.
- Select the No end date option.
- In the Count field, enter a number.
- In the Time zone field, select an option.
- Select OK.
- Select OK.
- Go to Organization administration > Setup > Email templates.
- Select New.
- In the Email ID field, enter a value.
- In the Sender email field, enter a value.
- In the Sender name field, enter a value.
- In the Default language code field, enter or select a value.
- In the Lines or header field, select an option.
- In the Batch group field, enter or select a value.
- In the Email description field, enter a value.
- In the Lines or header field, select an option.
- Select Save.
- In the list, mark the selected row.
- In the Subject field, enter a value.
- In the Language field, enter or select a value.
- Select Edit.
- In the WritableContent field, enter a value.
- Select OK.
- Select Save.
- Close the page.
- Go to Organization administration > Organizations > Fiscal establishments > Fiscal establishments.
- Use the Quick Filter to find records. For example, filter on the Fiscal establishment ID field with a value of "Matriz".
- Expand the NF-e and NFC-e federal section.
- Select Edit.
- In the Approved NF-e field, enter or select a value.
- In the Attach the DANFE as PDF file to email field, select Yes.
- Select Save.
- Close the page.