ArcherPoint Dynamics NAV Business Central Developer Digest - vol 295
The Dynamics NAV and Business Central 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/BC experts and devotees around the world. We hope these insights will benefit you, too.
Developer Tip of the Day: Chasing Tenant/App Problems
Kyle shares a Developer Tip of the Day: “If you are chasing tenant/app installation problems, this little block of PowerShell might help. It will loop through all tenants and tell you version information for each and every app installed on that tenant:”
$ServerInstance = ‘BCProd’
Get-NAVTenant -ServerInstance $ServerInstance | ForEach-Object {
$tenant = $_.id
write-host $tenant
Get-NAVAppInfo -ServerInstance $ServerInstance -Tenant $tenant
}
Dynamics 365 Business Central: Unpublished Extensions During an Upgrade
Stefano gives a bit of scolding because so many have reported errors when upgrading BC SaaS to the 15.4 version release. It seems that many have reported the issue that custom extensions were not available in the production environment after the upgrade. This is actually not a bug or real issue. The problem is that, in the sandbox environment, you can also deploy extensions directly using VSCode. However, in production, all extensions must be deployed via the Extension Management page. Read more in Demiliani’s Dynamics 365 Business Central Unpublished Extensions During an Upgrade post.
Git Commits – What Are They?
“Commits are fundamental to Git, but not all developers have a comprehensive understanding of what a commit actually is and how it is applied to projects.” Check out What is a Commit?, a Learning Git tutorial video from Jonathan Silva.
Using PowerShell to View Business Central Connected User Sessions
Kyle provide another Developer Tip of the Day: “You can see connected user sessions from PowerShell:”
Get-NAVServerSession -ServerInstance BCprod
“You can also clean up the output into a table:”
Get-NAVServerSession -ServerInstance BCProd | Format-Table SessionID, UserID, ServerComputerName
Learn more about Get-NAVServerSession from Microsoft.
Use GitLens to View Object Change Revisions
Bill W suggests: “Install GitLens. You’ll be able to walk through revisions of changed objects right in VS Code.” Find GitLens on the Visual Studio Marketplace.
Using the Breadcrumb Bar to Find Your Functions in Visual Studio Code
Bill W offers this tip: “Use the breadcrumb bar to find your functions in VS Code.”
Figure 1 – Use the breadcrumb bar to find functions in Visual Studio Code
If you are interested in Dynamics NAV and Business Central development, be sure to see our collection of NAV/BC Development Blogs.
Read the “How To” blogs from ArcherPoint for practical advice on using Microsoft Dynamics NAV and Dynamics 365 Business Central.