Accounts payable clerk, Collections manager, Accounts receivable clerk and 6 more roles
Business process
Report tax and financial data to authorities in Dynamics 365 Finance
Menu item
EMWebApplication
Main table
EMWebApplication
Data entity
EMWebApplicationEntity
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, “Only the allowed role can send”, to confirm this setup in your own test environment.
Show what matters for
PAGE GUIDEWhat the page does and how to use it8 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
A setup page for web applications that support Open Authorization (OAuth) 2.0, used to authorize requests to web services.
What you do here
Use this page to store the application details and get, store and refresh the access token used for requests to a web service.
Example
For example, BEAT sends its VAT return to the authority's web service, which uses OAuth 2.0. It sets up web application TAXGATE with the authority's base URL and client ID, gets the access token, and limits it to the Tax accountant role.
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.
Setup steps on this page
Set up Web applications
Use this page to store the application details and get, store and refresh the access token used for requests to a web service.
Steps from Microsoft
Go to Tax > Setup > Electronic messages > Web applications.
Select New and enter the application name, Base URL, Authorization URL path, Token URL path and Redirect URL.
Enter the Client ID and Client secret, and select the Authorization format mapping and Import token model mapping.
Select Get authorization code, then Obtain access token.
On the Security roles FastTab, add the roles that may send requests.
Set Security roles to the roles allowed to send requests to the authorityThe access token is stored encrypted and Learn advises limiting it to the roles allowed to address requests. Without roles, only a system administrator can use the web application.
On the live system, these roles have access to this page: Accountant, Accounting manager, Accounting supervisor, Accounts receivable manager, Collections manager, Accounts receivable clerk.
Checked in Dynamics 365
Solution architect
5Design impact
Shared or per company
Per company. Electronic messages setup is imported or set up in each legal entity that reports. Microsoft Learn
Can it be undone
Reversible: Settings can be edited and the token re-obtained or refreshed. The Action log FastTab keeps who did each action and when. Microsoft Learn
If you change it later
If no security roles are set for a web application, only a system administrator can use it. The token is stored encrypted and can be refreshed; the Action log keeps who did what and when. Microsoft Learn
Technical architect
6Technical
Menu item
EMWebApplicationChecked in Dynamics 365
Form
EMWebApplicationChecked in Dynamics 365
Table
EMWebApplicationShown as “Web applications” in Record infoKey field: Name, DescriptionChecked in Dynamics 365
Data entities
EMWebApplicationEntityWeb applications Checked in Dynamics 365
Who can open it
9 security roles. Select a role to see its duties and privileges.
To set it up or change itAccountant LedgerAccountantTo use itAccounting manager LedgerAccountingManagerAccounting supervisor LedgerAccountingSupervisorAccounts receivable manager CustInvoiceAccountsReceivableManagerCollections manager CollectionLetterCollectionsManagerAccounts receivable clerk CustInvoiceAccountsReceivableClerkGive people one of these roles. On this system, 9 roles can open this page.Checked in Dynamics 365
Actions on the page
Options: Personalize, Page options, ShareChecked in Dynamics 365
Developer
7Developer
Open it by URL
https://<your-environment>/?mi=EMWebApplication
Integrate with
EMWebApplicationEntity data entity Checked in Dynamics 365
Data migration
EMWebApplicationEntity Loads the web application records of this legal entity.Load order: Electronic messages setup is usually imported as one package of data entities for a country/region reporting feature, after the Electronic reporting configurations it links to. Import it with the Data management tool into each legal entity that reports.Load first: Electronic reporting configurations used by the processing, Number sequences for messages and message items in General ledger parametersMicrosoft Learn