Customizing Dynamics NAV
Discover different ways to customize the application to give you and your colleagues access to the features, functionality, and data that you need most.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
1. Understanding how dimensions work technically:
Any dimensions that are inserted in an entry in the system are validated to be stored in the Dimension Set Entries table.
This Dimension Set Entry ID is stored on the entries to be used as a reference. For instance, if we want to Apply Dimensions to General Journal Entries, the Dimension Set Entries ID is stored on General Journal Lines Table.
Out of 8 total dimensions, 2 dimensions are stored on the table. These 2 dimensions are also known as Global Dimensions.
2. Hack into Business Central:
When importing, the entry either consist of a Dimension Set ID. If the Dimension Set ID is set to 0 which means no Dimension is applied yet.
To apply the dimension to the entry using the code, we can use the standard available code
Dimension_No: The position of the Dimension.
Dimension_Value: Dimension Value that is to be applied.
For Example:Rec_GenJnl.ValidateShortcutDimCode(3, SD3);
When Exporting the Dimension into an Excel Format, you can use the Dimension Set ID present on the Entry to lookup into Dimension Set Entries Table.
To Export the Dimensions using the code, you can use the following code:
After Importing from Excel:
After Exporting to Excel:
Thus, using standard code present in Business Central, we can Import dimension details from other sources such as Excel.
I also learned about Dimension Set Entry table and how this is used to store the data on the Entry table using Dimension Set ID.
Overall this is a big step where I learned how to import dimensions which are more than the 2 Global Dimension.
Thanks for taking a keen interest in reading my blog.
The post Automatically adding dimensions from Shortcut Dimension from Excel Import in Microsoft Dynamics NAV / Business Central appeared first on Cloudfronts - Microsoft Dynamics 365 | Power Bi | Azure.
Business Applications communities