Dynamics NAV / Business Central Developer Digest - Vol 351
Debugging a BC production environment, adding document attachment functionality to extension pages, and more are in this edition of Developer Digest
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.
Debugging A Business Central Production Environment
Tom H asks: “Does anyone know how to debug a BC production environment? I am not sure how to debug a live session.”
Kyle asks: “On premises or SaaS?”
Matt T pipes in: “Assuming it is SaaS, I personally find it much easier to debug a sandbox. You just copy production into a sandbox and debug normally. You would want something kind of like this in your launch.json:
{ “name”: “Prod_Debug”, “type”: “al”, “request”: “launch”, “environmentType”: “Sandbox”, “environmentName”: “Prod_Debug”, “startupObjectId”: 9305, “breakOnError”: true, “breakOnRecordWrite”: false, “launchBrowser”: true, “enableSqlInformationDebugger”: true, “enableLongRunningSqlStatements”: true, “longRunningSqlStatementsThreshold”: 500, “numberOfSqlStatements”: 10, “tenant”: “” <- Put the tenant id of the customer inside the quotes }
If you really need to debug Prod, you can try snapshot debugging, but it leaves something to be desired. You can of have to know what you’re looking for ahead of time.
Using Azure AAD Authentication With NAV 2015
Kyle inquires: Does anyone have any experience using Azure AAD authentication with NAV 2015?”
Kiril offers: “3-4 years ago, I deployed Azure AAD authentication for NAV2017 by following the instructions from the following video: https://www.youtube.com/watch?v=r1yz9cWmhMk
Adding Document Attachment Functionality to Extension Pages
Recently, NAV/Business Central expert Divyesh Chitte discusses a recent request to add Document Attachment base functionality to extension pages so her customer could store attachments on Custom Functionality. Read how she did it in Document Attachment on Custom Functionality in Business Central #msdyn365BC.
Using Word Templates And Word Merge In Business Central
In a recent blog, Roberto Stefanetti explains how to use the mail merge functionality in Word to add a personal touch to bulk communications by pulling data about the recipients from Business Central. Learn more by reading the entire blog, Word Templates and Word merge in Business Central.
Enhancing Business Central Role Centers With Widget Containers And jQuery
Roberto Stefanetti also provides helpful advice around enhancing Business Central role centers using widget containers and jQuery. Using ControlAddins and jQuery, you can add container widgets to roles centers to extend their functionality, publishing widgets using the page parts, which can be helpful for demos. Learn more in How to enhance Business Central Role centers with the power of Widget Containers and jQuery.
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.