Access application metadata by using ER configuration
The following steps explain how a Regulatory configuration service (RCS) user in the System Administrator or Electronic Reporting Developer role can design a new Electronic reporting (ER) model mapping by using the application metadata. Application metadata will be accessed by using an ER metadata configuration that contains a sample set of metadata to access foreign trade transactions. To complete these steps, in RCS you must first complete the steps in the article, Create configuration providers and mark them as active procedure. Then complete the steps in the article, Prepare application metadata to be used in RCS.
Prerequisites
- Go to All workspaces > Electronic reporting.
- Make sure that the configuration provider for the sample company, Litware, Inc., is available and marked as Active. If you don't see this configuration provider, complete the steps in the procedure Create configuration providers and mark them as active.
Import metadata configuration
- Click Metadata configurations.
- Import the ER metadata configuration that contains metadata that has been configured to generate electronic documents for foreign trade business. This ER metadata configuration has been exported as XML file while the steps in the Prepare application metadata to be used in RCS procedure have been completed.
- Click Exchange.
- Click Load from XML file.
- Click Browse and select the 'Foreign trade metadata.xml' file.
- Click OK.
- Close the page.
Create data model configuration
- Click Reporting configurations.
- Click Create configuration to open the drop dialog.
- In the Name field, type 'Foreign trade model'.
- Click Create configuration.
- Click Designer.
- Click New to open the drop dialog.
- In the Name field, type 'Root'.
- Click Add.
- Click New to open the drop dialog.
- In the Name field, type 'Transaction'.
- In the Item type field, select Record list.
- Click Add.
- Click New to open the drop dialog.
- In the Name field, type 'Commodity code'.
- In the Item type field, select String.
- Click Add.
- Click New to open the drop dialog.
- In the Name field, type 'Invoiced amount'.
- In the Item type field, select Real.
- Click Add.
- Click New to open the drop dialog.
- In the Name field, type 'Date'.
- In the Item type field, select Date.
- Click Add.
- Click Root reference.
- Click OK.
- Click Save.
- Close the page.
- Click Change status.
- Click Complete.
- Click OK.
Create model mapping configuration
- Click Create configuration to open the drop dialog.
- In the New field, enter 'Model Mapping based on data model Foreign trade model'.
- In the Name field, type 'Foreign trade mapping'.
- Click Create configuration.
- Expand the Prerequisites section.
- Click Edit.
- Click New.
- In the list, mark the selected row.
- In the Prerequisite component type field, select Configuration.
- Select Foreign trade metadata configuration.
- Click Save.
- We added the reference to the version 1 of the 'Foreign trade metadata' configuration. Application metadata from this configuration will be offered while this model mapping will be designed.
- Close the page.
- Click Designer.
- Click Designer.
- In the tree, select Dynamics 365 for Operations\Table records.
- Click Add root.
- In the Name field, type 'Intrastat'.
- Select Intrastat table records.
- Click OK.
Note
The only 2 tables were offered as the only 2 tables were added into the set of metadata which is currently in use.
- Click Bind.
- In the tree, expand Intrastat.
- In the tree, select Intrastat\AmountMST.
- In the tree, expand Transaction = Intrastat.
- In the tree, select Transaction = Intrastat\Invoiced amount.
- Click Bind.
- In the tree, select Intrastat\TransDate.
- In the tree, select Transaction = Intrastat\Date.
- Click Bind.
- In the tree, expand Intrastat>Relations.
- In the tree, expand Intrastat>Relations\IntrastatCommodity.
- In the tree, select Intrastat>Relations\IntrastatCommodity\Code.
- In the tree, select Transaction = Intrastat\Commodity code.
- Click Bind.
- Click Validate.
Note
We have successfully bound elements of data model with items of data sources that are described by using details of application metadata from the referred ER metadata configuration.
- Click Save.
- Close the page.
- Close the page.
- When needed, you can extend the existing set of metadata and then export the new completed version of ER metadata configuration. You can then import it to RCS, and update the prerequisites of the configured model mapping configuration referring to a new version of imported metadata configuration.
Note
This way of getting information about application metadata is the only one available for locally deployed applications (when local business data (LBD), or on-premises, deployment model is used).