BeyondERP.Newsletter
Menu

Setup page · Tax

Web applications

A setup page for web applications that support Open Authorization (OAuth) 2.0, used to authorize requests to web services.

Read the guide Back to Tax

Used by
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 isA setup page for web applications that support Open Authorization (OAuth) 2.0, used to authorize requests to web services.
What you do hereUse this page to store the application details and get, store and refresh the access token used for requests to a web service.
ExampleFor 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.
Web applications 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

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.

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

  1. Go to Tax > Setup > Electronic messages > Web applications.
  2. Select New and enter the application name, Base URL, Authorization URL path, Token URL path and Redirect URL.
  3. Enter the Client ID and Client secret, and select the Authorization format mapping and Import token model mapping.
  4. Select Get authorization code, then Obtain access token.
  5. On the Security roles FastTab, add the roles that may send requests.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansTable column
Base URLThe base internet address of the web application.Microsoft Learn BaseURL
Redirect URLThe redirect URL.Microsoft Learn RedirectURL
Client IDThe client ID of the web application.Microsoft Learn
Authorization format mappingThe Electronic reporting format that builds the authorization request.Microsoft Learn
Import token model mappingThe Electronic reporting import mapping that stores the access token.Microsoft Learn
Access token will expire inThe time left before the access token expires; updated automatically.Microsoft Learn
Security rolesThe roles allowed to use the stored access token.Microsoft Learn

Common errors and fixes

MessageWhat to do
A user gets an error that they aren't allowed to interoperate by using the selected web application.Add the user's role on the Security roles FastTab of the web application. Microsoft Learn

Test checklist

  1. Enter Base URL, Redirect URL, Client ID, Authorization format mapping and Import token model mapping.
  2. Select Get authorization code, then Obtain access token, and check Access token will expire in is filled.
  3. Add the tax role on Security roles and have a user with that role send a request; check it succeeds.
  4. Have a user without the role try and check the request is refused, and check the Action log records both.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Set up Web applicationsSet 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.Who may use the stored access token?Leaving Security roles empty. Tax users then can't send through the web application and only a system administrator can.Test: Only the allowed role can send

Feature management and licence

Licence or add-inOn 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 companyPer company. Electronic messages setup is imported or set up in each legal entity that reports. Microsoft Learn
Can it be undoneReversible: 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 laterIf 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 itemEMWebApplication Checked in Dynamics 365
FormEMWebApplication Checked in Dynamics 365
TableEMWebApplicationShown as “Web applications” in Record infoKey field: Name, DescriptionChecked in Dynamics 365
Data entitiesEMWebApplicationEntityWeb applications Checked in Dynamics 365
Who can open it

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

  • RoleCollections managerCollectionLetterCollectionsManager
    • DutyInquire into sales tax transaction statusTaxSalesTaxTransactionStatusInquire
      • PrivilegeView electronic messagesElectronicMessageView
  • RoleAccounts receivable clerkCustInvoiceAccountsReceivableClerk
    • DutyInquire into sales tax transaction statusTaxSalesTaxTransactionStatusInquire
      • PrivilegeView electronic messagesElectronicMessageView
  • RoleAccounts receivable managerCustInvoiceAccountsReceivableManager
    • DutyInquire into sales tax transaction statusTaxSalesTaxTransactionStatusInquire
      • PrivilegeView electronic messagesElectronicMessageView
  • RoleTax accountantFBTaxAccountant_BR
    • DutyInquire into sales tax transaction statusTaxSalesTaxTransactionStatusInquire
      • PrivilegeView electronic messagesElectronicMessageView
  • RoleAccountantLedgerAccountant
    • DutyMaintain sales tax transactionsTaxSalesTaxTransactionsMaintain
      • PrivilegeMaintain electronic messagesElectronicMessageMaintain
    • DutyInquire into sales tax transaction statusTaxSalesTaxTransactionStatusInquire
      • PrivilegeView electronic messagesElectronicMessageView
  • RoleAccounting managerLedgerAccountingManager
    • DutyInquire into sales tax transaction statusTaxSalesTaxTransactionStatusInquire
      • PrivilegeView electronic messagesElectronicMessageView
  • RoleAccounting supervisorLedgerAccountingSupervisor
    • DutyInquire into sales tax transaction statusTaxSalesTaxTransactionStatusInquire
      • PrivilegeView electronic messagesElectronicMessageView
  • RoleSales managerTradeSalesManager
    • DutyInquire into sales tax transaction statusTaxSalesTaxTransactionStatusInquire
      • PrivilegeView electronic messagesElectronicMessageView
  • RoleAccounts payable clerkVendInvoiceAccountsPayableClerk
    • DutyInquire into sales tax transaction statusTaxSalesTaxTransactionStatusInquire
      • PrivilegeView electronic messagesElectronicMessageView
Checked in Dynamics 365
Roles to set it up and use itTo 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 pageOptions: Personalize, Page options, ShareChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=EMWebApplication
Integrate withEMWebApplicationEntity data entity Checked in Dynamics 365
Data migrationEMWebApplicationEntity 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
Everyone

8Sources

KEEP EXPLORING

More in Tax.

Open the other pages and setup steps in this module, or go back to the Atlas Hub to search every page.