BeyondERP.Newsletter
Menu

Setup page · Tax

Executable class settings

A setup page for executable classes, the X++ classes that electronic message processing can call when an action needs an evaluation.

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
EMActionClass
Main table
EMActionClass
Data entity
EMActionClassEntity
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, the demo records and the values in the screenshots.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Parameters are saved with OK”, 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 executable classes, the X++ classes that electronic message processing can call when an action needs an evaluation.
What you do hereUse this page to register each executable class, and its parameters, so message processing actions can call it.
ExampleFor example, BEAT imports a country/region package that calls a class to create message items. On this page it selects the class line, opens Parameters, checks the values and selects OK, so the first run calls the class with them.
Executable class settings 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.

Step by step, with screenshots

Set up Executable class settings1 screen

Use this page to register each executable class, and its parameters, so message processing actions can call it.

  1. Screen 1

    Create the executable class setting

    Go to Tax > Setup > Electronic messages > Executable class settings

    1. Select New
    2. Enter the Executable class and Description
    3. In Executable class name, select the class from the lookup
    4. Select Save
    1Executable classBEAT-POP
    DescriptionRecord population
    Executable class nameEMCreateItemsController
    Execution levelMessage
    Create the executable class setting (zoomed on the outlined fields)
    Show the full screenCreate the executable class setting
    page title tab to open what to set or check

Steps from Microsoft

  1. Go to Tax > Setup > Electronic messages > Executable class settings.
  2. Create a line, and enter the Executable class name and description.
  3. In the Executable class name field, select the X++ class.
  4. If the class has mandatory parameters, on the Action Pane, select Parameters.
  5. Fill in the fields in the dialog box, and then select OK.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExampleTable column
Executable classThe name you use when setting up the message processing action that calls the class.Microsoft Learn ActionClassId
Executable class nameThe X++ class to run.Microsoft Learn EMCreateItemsController
Execution levelThe level the evaluation runs on; set automatically for the selected class.Microsoft Learn Message
Action typeThe action type of the class, which controls the next actions offered for the message.Microsoft Learn ActionType
DescriptionA short description of the executable class setting.Microsoft Learn Record populationDescription

Common errors and fixes

MessageWhat to do
The executable class doesn't behave as set up after its first run.Open Parameters, set the mandatory values and select OK; parameters are saved only with OK. Microsoft Learn

Test checklist

  1. Create a line, select the Executable class name and check Execution level fills in.
  2. Open Parameters, set the mandatory values and select OK.
  3. Reopen Parameters and check the values were kept.
  4. Run the message processing action that uses the class and check the message or item reaches its result status.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Set up Executable class settingsRegister each class the processing calls, open Parameters and always close the dialog with OKSome classes have mandatory parameters that must be defined before the first run, and they are saved to the database only when you select OK.Who maintains executable class parameters?Closing the Parameters dialog without OK. The parameters aren't saved and the executable class isn't called correctly.Test: Parameters are saved with OK

Feature management and licence

Feature to turn on[EM] Executable class action type (Optional)
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.

Microsoft Learn

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: Executable class settings and parameters can be edited; message processing actions pick up the change on their next run. Microsoft Learn
If you change it laterParameters are saved only when you select OK in the Parameters dialog; otherwise the class isn't called correctly. Message processing actions use the saved values on their next run. Microsoft Learn
Technical architect

6Technical

Menu itemEMActionClass Checked in Dynamics 365
FormEMActionClass Checked in Dynamics 365
TableEMActionClassShown as “Action class settings” in Record infoChecked in Dynamics 365
Data entitiesEMActionClassEntityAction class settings 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=EMActionClass
Integrate withEMActionClassEntity data entity Checked in Dynamics 365
Data migrationEMActionClassEntity Loads the executable class setting 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.