Electronic Messages functionality is a new functionality in Dynamics 365 for Operations which is provided to maintain different processes of electronic reporting of different document types.
Import data from data entities
To set up Electronic Messages functionality for Purchase and Sales Invoices Communications, use predefined data which is delivered as Data entity. To do so, download related data entities from LCS portal first, open http://lcs.dynamics.com/ and after log on the portal, click on Shared asset library.
Select Data package > Italian Purchase and Sales Invoice Communications data entities and save the archive specifying the path where the Data entities should be stored.
After that, enter Dynamics 365 for Operations and open Workspaces > Data management and click Import:
Fill in a name for importing job, select Package in Source data format and click the Upload button:
Select an archive previously saved from LCS portal, wait until all the included data entities will be shown on the screen, mark each of them and click Import on the Main menu:
You will get a notification in the Messages or you may manually refresh the page to see data importing progress. When the importing process is completed, you will see the results on Execution summary page.
Parameters setup
After Data entities are imported to the data base, the Electronic Messages functionality is almost ready for work. You need to additionally set up the following steps:
1. Open Tax > Setup > Electronic messages settings, select Document type evaluation executable type and click Parameters on Main menu. Select Document type in the Document type field and click OK:
2. Set up GER configurations for Electronic messages processing actions. Open Tax > Setup > Electronic messages > Message processing actions and set up related GER configurations in Format mapping field for the following actions:
Message processing actions name
|
GER configuration
|
Report customer inv.
|
Report Customer invoices (My)
|
Report vendor inv.
|
Report Vendor invoices (My)
|
Cancel reported inv.
|
Invoices cancellation (My)
|
Preview customer inv
|
Preview Customer invoices (My)
|
Preview vendor inv
|
Preview Vendor invoices (My)
|
Re-send customer inv
|
Re-send Customer invoices (My)
|
Re-send vendor inv
|
Re-send Vendor invoices (My)
|
Where "…(My)" is the configuration name that you previously identified during format setup in GER (see "Download and setup GER configurations" part of this document).
3. Number sequences in General ledger parameters:
Number sequences reference
|
Number sequences description
|
Message
|
Unique key for message
|
Message item
|
Unique key for message item
|
Invoice communication XML ID
|
Sales/purchase invoices communication XML ID
|
"Invoices communication XML ID" number sequence
To automatically generate correct number of the report that should be used in the file name and as the report identifier in the report <ProgressivoInvio> tag, open General ledger > Setup > General ledger parameters, select Number sequences tab, find line for Invoice communication XML ID and set up a number sequence for it.
The same number will be used in the names of generated XML files. Thus, the setup of the number sequence should meet the requirements to the names of the files.
Examples:
ITAAABBB99T99X999W_DF_00001.xml
IT99999999999_DF_00002.xml
"Message" number sequence
Set up a non-continuous number sequence for this Reference. This number sequence will be used for numbering messages on their generation. This number is not used in the reporting for Purchase and Sales Invoices Communications.
"Message item" number sequence
Set up a non-continuous number sequence for this Reference. This number sequence will be used for numbering message items on their population from the source tables. This number is not used in the reporting for Purchase and Sales Invoices Communications.
Overview of Electronic messages functionality setup
To get Electronic Messages functionality ready manually (without importing predefined setup via data entities), you need to set up the following menu items:
- Message item types
- Message item statuses
- Message statuses
- Message item additional fields
- Executable class settings
- Populate records actions
- Web services settings
- Message processing actions
- Electronic message processing
Message item types
Set up Message item types to identify which types of records will be used in Electronic messages.
To set up Message item types, open Tax > Setup > Electronic messages > Message item types.
Fields description:
Field name
|
Field description
|
Message item type
|
Enter a name for the Message item type (For example "Customer invoice").
|
Description
|
Enter a description of a Message item type.
|
Message item statuses
Set up Message item statuses to identify which statuses will be applicable for Message items in the processing you are setting up.
To set up Message item statuses, open Tax > Setup > Electronic messages > Message item statuses.
Fields description:
Field name
|
Field description
|
Message item statuses
|
Enter a status name for the Message items in you processing (For example "Created").
|
Description
|
Enter a description of a Message item status.
|
Message statuses
Set up Message statuses to identify which statuses will be applicable for Message items in the processing you are setting up.
To set up Message item statuses, open Tax > Setup > Electronic messages > Message item statuses.
Fields description:
Field name
|
Field description
|
Message item statuses
|
Enter a status name for the Message items in you processing (For example "Created").
|
Description
|
Enter a description of a Message item status.
|
Message item additional fields
Electronic messages functionality lets populate records from a transactional table to prepare for reporting and report them. Sometimes there is not enough information in the transactional table to report a record according to report requirements. To let a user to fill in all the necessary for the reporting information in relation with a record to be reported, set up Message item additional fields. To do so, open Tax > Setup > Electronic messages > Message item additional fields.
Fields description:
Field name
|
Field description
|
Message item additional field name
|
Set up a name of an additional attribute of Message items related to the process. This name will be shown in user interface during working with the process and may also be in use in related to the process GER configurations.
|
Message item additional field description
|
Set up a description of an additional attribute of Message items related to the process.
|
Field value
|
Enter a value of a field to be used in relation with a Message item in reporting.
|
Field value description
|
Enter a description of a value of a field to be used in relation with a Message item in reporting.
|
Account type
|
Some additional fields values may be restricted for particular Account types. Set up one of the following: All, Customer, Vendor.
|
Account code
|
If you select Customer or Vendor in the Account type field, you may restrict additional fields value usage by particular group or table.
|
Account/Group number
|
If you select Customer or Vendor in the Account type field and group or table in Account code filed, you may specify a particular group or counteragent in this field.
|
Effective
|
Set up a date from which the value should be taken into consideration.
|
Expiration
|
Set up a date before which the value should be taken into consideration.
|
Executable class settings
Executable class is an X++ method or class which can be called by the Electronic messages processing in relation with an action to some evaluations needed for the process.
For Italian Purchase and Sales invoices reporting process, there is a predefined Executable class which can be used to identify and update Document type according to the report requirements. Its name is "EMAdditionalFieldsEvaluationController_IT".
To manually set it up, open Tax > Setup > Electronic messages > Executable class settings, create a line and Fill in:
Field name
|
Field value
|
Field description
|
Executable class
|
Document type evaluation
|
Set up a name which will be used during setting up of an Electronic message processing action related respective to call this class.
|
Description
|
Evaluate document type
|
Set up a description of an Executable class.
|
Executable class name
|
EMAdditionalFieldsEvaluationController_IT
|
Select an X++ Executable class.
|
Executable level
|
Message item
|
The value will be filled in automatically as it should be predefined for the Executable class. The field's value restricts on with level related evaluation should be executed.
|
Class description
|
Italian invoice additional fields evolution
|
The value will be filled in automatically as it should be predefined for the Executable class.
|
Populate records actions
Populate records actions should be used to set up action which adds records to be sent to the Electronic message item table. To do so, open Tax > Setup > Electronic messages > Populate records actions and create a new record for each action which should add records to the table.
To manually set it up for Italian Purchase and Sales invoices communications, fill in:
Field name
|
Field value
|
Field description
|
Populate records action name
|
Populate invoices
|
Identify a name for to be used for action which populates records in your process.
|
Populate records action description
|
Populate invoices from invoice journals
|
Add a description for to be used for action which populates records in your process.
|
Add as much lines on Datasources setup fast tab as more data sources should be used for the process. To manually set it up for Italian Purchase and Sales invoices communications, three lines to be created:
Field name
|
Field value
|
Field description
|
Name
|
- Vendor invoice journal
- Sales invoice journal
- Project invoice journal
|
Specify a name for a data source.
|
Message item type
|
- Vendor invoice
- Customer invoice
- Customer invoice
|
Specify a message item type which should be used on the record creation for the data source.
|
Account type
|
- Vendor
- Customer
- Customer
|
Specify an Account type which should be associated with the record form the created data source.
|
Master table name
|
- VendInvoiceJour
- CustInvoiceJour
- ProjInvoiceJour
|
Specify a name of the table in AX which should be a data source.
|
Document number field
|
- InvoiceId
- InvoiceId
- ProjInvoiceId
|
Specify a field name in the selected table from which a Document number should be taken.
|
Document date field
|
- InvoiceDate
- InvoiceDate
- InvoiceDate
|
Specify a field name in the selected table from which a Document date should be taken.
|
Document account field
|
- InvoiceAccount
- InvoiceAccount
- InvoiceAccount
|
Specify a field name in the selected table from which a Document account should be taken.
|
Use query
|
No
|
If selected, set up a query by Edit query button on the fast tab. Otherwise, all the record will be populated from the data source.
|
Web services settings
Web services settings used to setup data transmission directly to a web service. This set up is not used for Purchase and Sales invoices communications reporting process as the reports are generated as XML files and their automatic transmission from Dynamics 365 for Operations is not implemented in scope of this update.
Message processing actions
Use Message processing action to create actions for you processing and set up their parameters.
General fields description:
Field name
|
Field description
|
Action type
|
Set up type of action. Following values are available:
- Populate records – use this type of action to associate a previously set up Populate records action. This is needed to be able to set up result status and include the related action into a processing.
- Message item execution level – use this action type to set up an execution class evaluation on Message item level. For example, for Italian Purchase and Sales Invoices Communications reporting to calculate automatically Document type values for each record, set up an action of Message item execution level type and associate it with previously set up Executable class settings (EMAdditionalFieldsEvaluationController_IT).
- Electronic reporting export – use this type for actions which should generate a report based on exporting GER configuration.
- Electronic reporting import – use this type for actions which should generate a report based on importing GER configuration.
- User processing – use this type for actions which suppose some manual actions by user. For example, update status of messages items.
- Web service – use this type for actions which should provide transmission of a generated report to a web-service. For Italian Purchase and Sales Invoices Communications reporting, this type of action is not used.
- Message execution level – use this type to set up an executable class which should be evaluated on Electronic message level. For Italian Purchase and Sales Invoices Communications reporting, this type of action is not used.
|
Message item type
|
This parameter is available for actions of Message item execution level, Electronic reporting export, Electronic reporting import types of action. With using it, you may identify for records of which type the action should be evaluated. If you don't specify particular message item type in this field, all the defined message item types for the processing will be evaluated.
|
Executable class
|
This parameter is available for actions of types of Message item execution level and Message item execution level. In this field, you may specify previously created Executable class settings.
|
Populate records action
|
This parameter is available for actions of type of Populate records. Use this parameter to associate a previously set up of Populate records action.
|
Initial statuses fields description:
Field name
|
Field description
|
Message item status
|
Specify Message item statuses for which selected Message processing action should be evaluated.
|
Description
|
This field shows a description specified for the selected Message item status.
|
Initial status fast tab is not available for actions of initial type: Populate records.
Result statuses fields description:
Field name
|
Field description
|
Message status
|
This filed is available for Message processing actions which evaluating on Message level. For example, it is available for action types: Electronic reporting export, Electronic reporting import; and not available for action types: User processing, Message item execution level.
|
Description
|
This field shows a description specified for the selected Message status.
|
Response type
|
This field shows a Response type specified for the selected Message status.
|
Message item status
|
You may specify in this filed Resulting statuses which should be available after the selected action is evaluated for Message processing actions which evaluate on Message item level. For example, for action types: User processing, Message item execution level.
For Message processing actions which evaluate on Message level, this field shows Message item status set up for the selected Message status.
|
Electronic message processing
Electronic message processing is a basic concept of the Electronic messages functionality. It aggregates actions which should be evaluated for the Electronic message. Where actions can be linked via initial and result status or started independently (User processing action type). On Electronic message processing page, user may also select Additional fields which should be supported for the processing.
For example, for Italian Purchase and Sales invoices communications reporting, one processing should be used for the following actions:
Action name
|
Action description
|
Order in processing
|
Populate invoices
|
Population of invoice records as an Electronic messages item. One invoice (purchase, sales or project à One Message item).
|
This is an initial action for Italian Purchase and Sales invoices communications reporting process.
Run separately parameter of this action is set as "No".
|
Attrib. evaluation
|
This action is set up to automatically calculate values of additional attribute of message items: Document type.
|
This action should be initiated after Populate invoices action.
But it can also be initiated manually using Choose action parameter of Run processing function.
Run separately parameter of this action is set as "No".
|
Exclude message item
|
This action can be initiated manually only, and it helps to mark message items with specific status "excluded" to able to exclude some message items from a query of records to be included into the XML report.
|
Run separately parameter of this action is set as "Yes".
|
Preview customer inv
|
This action lets user to generate a trial XML report without message items status update and without using a number sequence for the report. But message items which were not included into the trial report will be marked as "Dismissed", so that user can analyze which records were not included.
|
This action is set up to be run separately as manual action using the Generate report function.
|
Report customer inv.
|
This action lets user to generate an XML report updating message item status and using a number sequence for the report. Message items which were not included into the trial report will be marked as "Dismissed", so that user can analyze which records were not included.
|
This action is set up to be run separately as manual action using the Generate report function.
|
Re-send customer inv
|
This action lets user to generate an XML report to re-send an invoice which was already sent to the Authority, updating message item status and using a number sequence for the report.
According to reports schemas, only one invoice can be included into one re-sending report.
|
This action is set up to be run separately as manual action using the Generate report function.
|
Preview vendor inv
|
This action lets user to generate a trial XML report without message items status update and without using a number sequence for the report. But message items which were not included into the trial report will be marked as "Dismissed", so that user can analyze which records were not included.
|
This action is set up to be run separately as manual action using the Generate report function.
|
Report vendor inv.
|
This action lets user to generate an XML report updating message item status and using a number sequence for the report. Message items which were not included into the trial report will be marked as "Dismissed", so that user can analyze which records were not included.
|
This action is set up to be run separately as manual action using the Generate report function.
|
Re-send vendor inv
|
This action lets user to generate an XML report to re-send an invoice which was already sent to the Authority, updating message item status and using a number sequence for the report.
According to reports schemas, only one invoice can be included into one re-sending report.
|
This action is set up to be run separately as manual action using the Generate report function.
|
Cancel reported inv.
|
This action lets user to generate an XML report to cancel an invoice or a report which was already sent to the Authority, updating message item status and using a number sequence for the report.
According to reports schema, there are two options: if you specify a file name which was setup by Authority to a report the whole report will be canceled, but if additionally specify a particular number of an invoice in the initial XML file, in this case, only one invoice will be canceled in the Authority database.
Invoices to be canceled will be marked as "Pending cancel".
|
This action is set up to be run separately as manual action using the Update status function.
|
Update to Canceled
|
After a cancelation, an XML report was sent to the Authority, you may update impacted message items status from "Pending cancel" to "Canceled".
|
|
Update to initial st
|
Use this action for manual update of statuses for a number of Message items.
|
This action is set up to be run separately as manual action using the Update status function.
|
See more information about working with Electronic Messages functionality below.