ArcherPoint Dynamics NAV Developer Digest - vol 212

The NAV community, including the ArcherPoint technical staff, is made up of developers, project managers, and consultants who are constantly communicating, with the common goal of  sharing helpful information with one another to help customers be more successful.

As they run into issues and questions, find the answers, and make new discoveries, they post them on blogs, forums, social media...so everyone can benefit. We in Marketing watch these interactions and never cease to be amazed by the creativity, dedication, and brainpower we’re so fortunate to have in this community—so we thought, wouldn’t it be great to share this great information with everyone who might not have the time to check out the multitude of resources out there? So, the ArcherPoint Microsoft Dynamics NAV Developer Digest was born. Each week, we present a collection of thoughts and findings from NAV experts and devotees around the world. We hope these insights will benefit you, too.

Identifying Records in the Ledger Entry Dimension Table

Saurav reaches out to the team with a problem he is having in NAV 2009. “Hi all, I am stuck with an issue in NAV 2009 (and other versions). The requirement is to update dimension combinations in the Ledger Entry Dimension table. This summarizes the changes that need to be made:

Existing Combination -

Dim Code ⇒ Dim Value

A ⇒ 1

B ⇒ 2

C ⇒ 3

D ⇒ 4

and after updated, the new values will be:

A ⇒ A1

B ⇒ A2

C ⇒ A3

D ⇒ A4

There are hundreds of these combinations that I need to find and then update. What’s the best way to identify Records in the Ledger Entry Dimension table, as there can be one or multiples with these combinations? Do you have any thoughts on this? Perhaps a SQL Query to select these entries?”

Matt responds, “Perhaps the example you posted is not complex enough. Couldn't you just rename all values of 1 to A1? I know you can't do a RENAME, but just find them all and modify? Are they always combinations of four dimensions?”

Saurav adds, “We only need to modify values in the ledger entry dimension if all 4 combinations are met.”

No Developer License Needed to Create New Components in Dynamics 365 Business Central

Jon states, “Dynamics 365 Business Central just keeps getting better!” and shares this article for Dynaexperts, Say Bye Bye to Developer License.

Programming Friendly Fonts Available

Bill W gives some helpful advice asking, “Do you need a more programming friendly font? Don't like the font in VS Code? Change it up. Here are the VS Code Instructions for how to do it, and I’ve used the Monoid and FiraCode fonts personally.”

TSQL Script Versus PowerShell

Kyle lets everyone know, “I have a TSQL script for injecting a NAV user into a 2018 database.”

Matt wants to know, “Why not use PowerShell?”

Kyle responds, “PowerShell requires a functioning NAV Service Tier, which may require a working NAV user, depending on how the service tier is configured. The TSQL solution does not.”

Automated Report Printing Using Job Queues Could Affect NAV Server Performance

Suresh advises, “Please check this out, it will really help if any of our customers are using Job Queues to automate printing reports. See Dynamics NAV 2018 Server Reporting Performance for details.

Virtual Machines Compared to Docker Containers

Kyle shares this good comparison of Virtual Machines and Docker Containers in InfoWorld’s What is Docker? Docker Containers Explained article.

Microsoft Teams is the Successor to Skype for Business

As we’ve reported previously, Microsoft Teams is the successor to Skype for Business.

We’ve been using Teams here at ArcherPoint and some things Bill Warnke likes about is are:

• You pick up where you left off
• Chat is persistent which means you don't have to go to "Conversation History" to see past IM conversations in individual and group or team chats.
• You can add meeting notes directly to the meetings. Recordings are uploaded directly to https://web.microsoftstream.com/ and soon will be transcribed!

Bill further notes, “As Debbie Shumake has pointed out, the desktop app is a better experience when making calls and dealing with meetings.”

If you are interested in NAV development, be sure to see our collection of NAV Development Blogs.

Read the "How To" blogs from ArcherPoint for practical advice on using Microsoft Dynamics NAV, and contact ArcherPoint if you need assistance with Dynamics NAV.

Blog Tags:

Have you tried using Table

Comment:

Have you tried using Table 352 in Data Migration to update your dimensions?  It is a large file because you can update many records at one time.  We used it to change dimensions, like cost centers, sales offices, etc.  And on this table, you can state if they are same code or code mandatory.

Thanks for the suggestion

Comment:

Thank you for your suggestion. The issue was that we needed to update only if a certain combination was found. Here are the details of the issue and the steps taken to resolve:

Issue – Customer wanted to Updated Dimension combination (if found) and not the dimension values. Example –

1. Old Dimension Combination
 Dim 1 Value Dim 2 Value Dim3 Value Dim 4 Value A B C D

1. New Dimension Combination
 Dim 1 Value Dim 2 Value Dim3 Value Dim 4 Value X1 Y1 C1 D1

They don’t want to change individual dimension values, only wanted to updated if combination exist.

Here are the steps taken to resolve the problem:

1. Asked for Old and New combination from customer and imported it in a custom table.
2. Created new dimension Values (if not exist) in Dimension Values tables from New Combinations.
3. Create a set of SQL Queries based on Microsoft Dimension Upgrade Logic for tables – 355| 356| 357| 358| 359| 361.
4. Created a transposed tables for above listed tables (related to unposted and posted dimension) in SQL + additional fields based on primary key of the table.
5. Deleted Records from SQL Transposed table, if any of 4 dimension value is Blank. – Not required because its blank and does not meet the required criteria.
6. Replace Old Dimension Combination to new Dimension Combination in Transposed table, based on inner join from Combination table (1) and Transposed table (4).
7. Updated Table data in NAV Dimension tables (355| 356| 357| 358| 359| 361) based on above tables.
8. After update of dimension combination deleted all temporary SQL Tables created.

Let us know if you need any further details and thanks again for your comments!