Skip to content

ArcherPoint Dynamics NAV Developer Digest - vol 194ArcherPoint's Developer Digest Weekly Blog

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.

Visual Studio Live Share

Microsoft’s Visual Studio Live Share is now available, providing real-time collaboration regardless of what language you are using or app you are building, utilizing your favorite tools.

Azure Container Instances

Microsoft also announced that Azure Container Instances are now generally available. Container Instances allow you to run containers without managing servers, deploy containers on demand, secure applications with hypervisor isolation, and much more.

Design Patterns: Product Name Usage

It is not recommended to hardcode the product brand name in your messages or errors. See this Dynamics NAV abstract to learn the proper way to incorporate the product name in your messages and errors.

Job Queue Email Notifications Setup

Constantine reaches out to the team, “I'm working on a support case that involves running Job Queues for sending out email notifications. The part that I'm stuck on is setting up a NAS Service so that the Job Queue can run automatically without being dependent on a user session running. Is there someone that could lend their expertise? That'd be greatly appreciated. Thanks in advance!”

Kyle: “What version of NAV? I can help (regardless of the version).”

Constantine: “Thanks for connecting. The client is on NAV 2016.”

Kyle: “My recommendations:

  • Run the NAS in a separate (and dedicated) NST. You want to be able to restart it without affecting users.
  • Use an Active Directory domain account as the Service account and make sure that is a NAV Windows user with the appropriate permission sets.
  • Make sure the Startup Codeunit is set to 450 in the NAS tab under NST settings.

I'm happy to do a screen share and go through the setups with you. There are also the Job Queue setups inside of NAV that I haven't covered here.”

Developer Tip of the Day

Kyle gives props to Ed Fager for this one, because he is “Da Man.” 
 
“Suppose you are trying to export all database objects to a text file. The customer license has access to some objects; our dev license has access to some others. How do get as many as you can since it always dies on the first violation, and you have no idea how large the list of violations may be?
 
Select all objects, and then Lock them. The Dev client is smart enough to lock only the objects the current license can edit. Filter. You still have to do the export in pieces, but this should still save you some time.”

Matt T. adds, “Depending on the version you can also use PowerShell and tell it to skip the objects you don't have access to.”

 

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.

Blog Tags: 
Read ArcherPoint's Blog Follow us on Twitter Follow us on Facebook Follow us on LinkedIn Link to our RSS feed Join us on Google+ Watch us on YouTube
Get Help Now