Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) My Best Posts #1, 2017 Roberto Stefanetti, MVP Business Solution - NAV My MVP Book #1

1 2 Contents

“PowerShell ISE” for NAV 2015 14 Scrum vs. Traditional 16 Roberto Stefanetti NAV Blog – “Tryerp.net” – DY... 18 Easy Deployment of the Latest Version of Microsoft Dynamics 18 NAV 201... Overview of SBOK Guide – SCRUMstudy.com 18 SQL Server Worker Threads and Microsoft Dynamics NAV – 19 Mi... Roberto Stefanetti NAV Blog – BILANCIO XBRL NAV 2013 19 Roberto Stefanetti NAV Blog – NAV 2015 installazione serv... 19 Microsoft solution to automate backup on SQL Express 19 SQL Server MAXDOP configuration option for Microsoft 20 Dynamics NAV Dynamics NAV ‘Corfu’ Update – Microsoft Converg... 20 Microsoft Visual Studio Scrum 2013 & MSF for Agile Software... 22 Free Project Management ebooks and Scrum Templates 22 NAV 2015 Word Layout “How Do I” Videos 23 NAV on MSDN Portal 24 Roberto Stefanetti NAV Blog – NAV 2015 Word Layout Report... 25 NAV 2015 TRACKING SESSIONS, USERS ACTIVITY, 25 CHANGE LOG NAV 2015 ITALIAN FLYER 28 Microsoft Dynamics NAV 2015 – BI Business Intelligence Wh... 29 Best Practices Tips and Tricks for Upgrading to Dynamics NAV 29 2013 R... SQL SERVER REPORTING SERVICES (SSRS) LINKS AND 29 NAV DEMO REPORTS

3 Free Online Scrum Master Training and Scrum Master 30 Manifesto “From Navision To Microsoft”, The history of Dy... 32 Export Data from MS Project “.MPP” files to oth... 34 Monitoring and troubleshooting NAV Services – Using Windo... 40 Visualstudio Online: Kanban basics 40 SQL SERVER REPORTING SERVICES (SSRS) LINKS AND 43 NAV DEMO REPORTS Microsoft Dynamics NAV 2015 – BI Business Intelligence Wh... 44 Microsoft Dynamics NAV Dev Center 44 Programming Microsoft Dynamics™ NAV 2015 … is Out ! 45 Monitoring Microsoft Dynamics NAV 2015 Server Using “Perf... 46 “ALL” about NAV Tablet Client 47 Microsoft Named a Leader in Gartner’s Public Cloud Storage 48 Services... Microsoft Dynamics CRM Connector for NAV- Step by Step 49 Guide to Ins... Send e-mail with attachment and templates – My Script on ... 50 DLP (Dynamics Learning Portal) Live ! 50 How to upload the license file in Multitenant Deployment, NAV 51 2015 From “Corfu” to NAV 2016… NAV 2016 O... 52 Powershell Script to create a “Self-Signed Certificate” that works 53 ... Dynamics NAV 2016 “ex Corfu” Beta available for... 56 NAV Services and Sessions: Counting, Killing, Timeout 57 Check Objects “Modify Date” using “sy... 58 NAV 2015, “How-to” solve “You are not... 59

4 “Check NAS” Process execution and Send Mail (Ba... 60 Design Patterns Wiki: “Think NAV in design patterns&#... 66 “ALL” about “Deploying Microsoft Dyna... 67 Upgrading to NAV 2015 and automation with Powershell 69 “Power BI”, You are welcome ! 69 Microsoft Dynamics NAV and Windows 10 – Hougaard.com 70 NAV 2015 Virtual\Hidden Tables 71 Dynamics NAV 2016 Beta Agreement and Rules 72 Script Search for a string in “all tables” of S... 73 Testing Best Practices 73 Microsoft Dynamics Community “How-To”, Help Wiki 74 Are reports a barrier to your upgrade projects? …run clas... 74 Comparing PMBOK® Guide 5th Edition and ISO 21500:2013 75 Windows 10 and Dynamics NAV, Updated info from NAVTeam 76 How to Use “Item Type” for Non-Stock Items | ArcherPoint, Inc. 76 NAV TECH DAYS 2015: My NAV 2016 favorite sessions 77 Roberto Stefanetti NAV Blog – BILANCIO XBRL NAV 2013 78 Directions EMEA, NAV 2016 Sessions, October 5-7, 2015 79 NAV to NAV SQL Fast Data Migration (with dynamic “INSERT 79 ... Connect to remote nav server via administration shell 87 BOOST NAV – How to show most 50 heavy queries on SQL 88 SERVER Automate backup on SQL Express and Send Mail Powershell 89 Script NAV 2015 Basic Flowsheets for dummies (ITA) 90 Top 10 SQL Server Counters for Monitoring SQL Server 91 Performance — ...

5 NAV 2015 Order Planning vs Production forecast 92 Announcing the General Availability of Microsoft Dynamics NAV 93 2016 NAV 2016 on Microsoft Dynamics Learning Portal (DLP) for 94 Partners NAV 2016 MSDN Business Functionality Landing Page and 94 Workflow “How do I” – Microsoft Dynamics NAV 2... 95 NAV 2016 TESTING WORKFLOW 96 NAV 2016 TESTING NOTIFICATION SYSTEM 102 “Coming soon” new E-learning courses on DLP 105 SQL Sessions Killer 2.0 106 Saurav Dhyani – Microsoft Dynamics Navision: Microsoft Dy... 109 “Tryerp.net” – DYNAMICS ERP 7 Days trial license release 109 Office Online vs. Office 365: What’s free, what’s not, and what 110 you... Azure “GoUp and Goto Sleep” Maintenance Scripts 110 Roberto Stefanetti on MS Dynamics NAV Guru 111 Powershell Script to create a “Self-Signed Certificate” that works 112 ... Announcing the Microsoft Dynamics NAV Universal App 113 (Dynamics NAV v... “Save money replacing reports with cues or filtered lists... 113 TryFunction – .NET Exception Handling in C/AL 113 Publish, Raise and Subscribe 114 NAV2016 | (Im) Possibilities with Extensions 117 NAV 2016, “ALL” about Events 117 Presentations from Directions EMEA 2015 in Mannheim | 119 Directions EMEA

6 Learning Dynamics NAV Patterns 119 Microsoft Dynamics on YouTube 121 Saurav Dhyani – Microsoft Dynamics Navision: Microsoft Dy... 122 Best news and features about NAV 2016 C/AL code editor 122 NAV Product Suggestions (by Connect) 123 Datazen with Dynamics NAV and BI Integrations 124 NAV 2016 What’s New on My Youtube 125 NAV 2016 Word Layout “HOW-TO” 126 Which is the major innovation of NAV 2016 ? 134 Visual Studio Community 2015 (Free Visual Studio 2015 with 134 Windows ... NAV 2016 Workflow Video 134 NAV 2016 Videos – updated List 135 About NAV 2016 Limited Users 137 Why do Dynamics NAV users need visual scheduling? 140 VSTM (Visual Studio Team Services) Agile Tools 140 “NAV Universal APP” on different devices 142 Local Functionality for Microsoft Dynamics NAV 2016 144 Introduction to Microsoft Dynamics NAV – MVA – ... 145 C/AL Editor, Development Environment and Windows client 146 Keyboard Sh... LE NOVITA’ IN MICROSOFT DYNAMICS NAV 2016 146 Microsoft Dynamics NAV Online Resources 146 Description of the Number of Databases You Are Allowed to 149 Run with ... Some SQL date calculation scripts for NAV Linked Tables 150 Sending SMS from NAV 152

7 Eventing and Extensions in Dynamics NAV 2016, Webinar, Thu. 153 Jan 28 Free ebook: “Enterprise Cloud Strategy” ... 153 Progress Indicator vs window 153 Power BI Windows 10 universal app for desktops, tablets, and 154 smartp... NAV 2015 TRACKING SESSIONS, USERS ACTIVITY, 155 CHANGE LOG Portable Kanban and Kanban for Outlook Addins 155 RUNREQUESTPAGE, EXECUTE, PRINT, SAVEAS in NAV 158 Connecting Dynamics NAV 2013/2015 to the NAV content pack 161 in PowerB... Directions EMEA 2016, The Biggest NAV event, Prague 161 sp_whopro™ – SQL Server Activity Monitoring and Logging S... 162 Microsoft Forum 2016, 19 Aprile 2016, FieraMilanoCity 162 Proactive Monitoring with Task Scheduler | Dynamics NAV 162 Team Blog “Top Reasons” to Upgrade to Microsoft Dynamics ... 163 “HOW TO RESET” NAV “BAD” USER 167 Power BI Integration – Microsoft Dynamics NAV 2016 Content 169 Package SCM (Source Control Management) with NAV 171 Some links about NAV 2016 “Extensions” 172 Microsoft SQL Server Developer Edition is now free | SQL 173 Server Blog Project Madeira “IS ON” – try public ... 173 How to limit multisessions logins in NAV (from NAV 4 to NAV 176 2009 R2... New Book – “Implementing Dynamics NAV 2016&... 177

8 Italy Local Functionality – NAV 2016 177 Le soluzioni che abbiamo presentato al MSFORUM2016 178 “Microsoft Flow” Preview 179 PRODUCTION ORDERS IN NAV 179 25 Best Dynamics NAV Blogs of 2016 – My blog is in the li... 183 “Gestione magazzino fiscale”, NAV Italian Local... 184 Comparing Dynamics NAV 2016 and SAP Business One 9.1 192 ABOUT NAV 2016 NAS AND REPORTS SCHEDULING 193 NAV 2016 TESTING NOTIFICATION SYSTEM 198 Roberto Stefanetti’s Reviews: “Implementing Mic... 200 OnDemand NAS Codeunits Scheduling 203 NAV 2015 Basic Flowsheets for dummies (IT-IT) – TechNet A... 206 Scrum with Asana in 7 steps | Jose Barato 206 RDLC Report and Performance in Microsoft Dynamics NAV 206 2015 and 2016... Open Pages and Reports with filters using NAV Command lines 207 GESTIONE ASSEMBLAGGI IN NAV (SIMPLE “HOW-TO”) 207 Microsoft Dynamics Youtube Channel 222 Dynamics NAV 2016 Workflow – YouTube 222 NAV 2016 Managing Sending Documents Features 222 Welcome to Dynamics NAV and Dynamics C5 App Update 227 Version 2.2 New Youtube Playlist “NAV-lab #MSForum2016” 228 SQL Server 2016 is generally available 228 Retrieve Data from .NET Dialog with .NET integration 229 Monitoring Microsoft Dynamics NAV 2015 Server Using “Perf... 234 “Microsoft Cloud”, Solutions for empowering bus... 235

9 Scaling Professional Scrum with “Visual Studio Team Servi... 235 HR (Human Resources) module in Dynamics NAV 236 Introducing Microsoft Power BI – Free ebook from SQLBI 237 PARAMETRI DI PIANIFICAZIONE IN NAV 2016 238 Configuring Client Timeout in NAV 2016 CU 8 | Dynamics NAV 260 Team Blog Project “Madeira” my presentation on slideshare & support page 261 Business Solutions MVP Award 2016 (NAV) 262 Gestione Commesse in NAV (NAV Project Management 264 Module) Automate backup on SQL Express and Send Mail Powershell 264 Script news 265 Some links about Powershell “cmdlets” for NAV 266 Announcing NAV 2017 @WPC 2016 272 Database Conversion for a Dynamics NAV database stored in 274 Azure New NAV 2016 videos about “extensions” 274 NAV 2016 Italian Flyer 275 Project “Madeira” topics & links 275 Dynamics NAV: HR (Human Resources) module – TechNet Wiki 275 NAV Shortcuts & Filters | ArcherPoint, Inc. 276 Load Data into NAV using C/AL and Powershell (SQL From 276 NAV Part I) NAV 2013 SQL Query Codeunit Tool (SQL From NAV Part II) 278 “Scheduling Reports” option also available in r... 280 Let NAV Speak (with a Simple and Useful Client Add-in) 280 How to Use MVC.Net on the Dynamics NAV Database Structure 280

10 A Visual SQL Query Designer – Code project (SQL From NAV 281 ... NAV 2017 Roadmap 282 Word Layout reports data control by C/AL 284 SQL Server Migration Assistant for Datazen now generally 285 available Dynamics Profile: New Dynamics NAV MVP Roberto Stefanetti 285 Eager to ... Dynamics 365 and more: What you need to know 285 “Cached Web Service Calls” – Microsof... 286 Let NAV BEEP! (with .NET Interop “SystemSounds Class&... 288 Future Decoded with Community Days 288 “How-to” manage NAV notifications by C/AL 289 NAV 2017 LIMITED BETA & DIRECTIONS NA SESSIONS 292 Survey about NAV 2017 new\improved features 293 NAV 2017 WHAT’S NEW – ALL MY POSTS 294 NAV 2017 “Notifications” 296 “New Development Environment Preview” at Christ... 297 Dynamics 365 Financials Preview (ex Project Madeira) 298 Welcome to the Developer and IT-Pro Help for Microsoft 300 Dynamics NAV... NAV 2017 is available for download ! 300 NAV 2017 and “Microsoft Flow” integration: &... 301 “ALL About” C/AL Coding Guidelines 304 Welcome to Microsoft Dynamics 365 ! 306 NAV 2017 “Assisted Setup” 307 NAV 2017 “Task Scheduler” 309

11 Dynamics NAV 2017 as an App in Azure Management Portal – 314 Dynamics N... WPC2016, Milano, 29-11 01-12 314 NAV 2017 vs Dynamics 365 “Battle Card” by Amol ... 314 Dynamics NAV as SaaS …and 365 as IaaS 315 Microsoft AL: AL language code samples for developing 316 extensions #D... “ALL About” How To Boost Dynamics NAV Server 317 Announcing the Preview of Development Tools for Dynamics 320 NAV &#... “How to” display picture from file in Item Pict... 321 Dynamics NAV in Remote App Mode 322 How To setup “Keep Alive Interval” setting NAV2... 325 “ALL ABOUT” Kill (In)active Sessions when &... 326 “How -to” restrict multiple logins for same user in NAV 330 “How-to” implement a Copy Loop in Word report l... 334 Dynamics NAV New Books 336 Microsoft Forum 2017 338 SCM (Source Control Management) with NAV 339 PRODUCTION ORDERS IN NAV 340 “How to” print reports to PDF and send email 340 “ALL About” Microsoft Dynamics 365 for Financials 345 Announcing new capabilities and updated features in the 349 Dynamics 36... NAV 2017 with Office 365 and Sharepoint Integration 349 The NAV_Developer blog is coming back ! Nav supporter’s blog 353 NAV 2017 not documented options for “Credential Type&... 353

12 Best practices for installing and configuring Microsoft SQL 354 Server ... About “UI Elements Removal” feature 355 How “not” to increase the batch name 361 Dynamics NAV with Power BI 362 New Book availabe: “Building ERP Solutions with Microsoft... 365 NAV Development Tools Preview – March Update 366 How to restart a job in “Error” or “F... 367 “Ideas” for Microsoft Dynamics 365 for Financials 371

13 “PowerShell ISE” for NAV 2015

Monday, June 01, 2015

“PowerShell ISE” for NAV 2015

“ISE” = “ Integration Scripting Environment”, usabile anche per NAV 2015.

L’ambiente (che si presente in testo e grafica) permette l’utilizzo della tecnologia “ Microsoft intellisense” per la compilazione assistita di comandi e paremetri ( cmdlets); è un’estensione del powershell standard.

Attivazione del modulo “PowerShell ISE”

I comandi per NAV devono essere caricati manualmente importando il file di management presente nella cartella dove risiede il Windows Client (ex RTC Client)

Importazione del Modulo

· Import-Module “C:Program Files (x86)Microsoft Dynamics NAV80RoleTailored ClientMicrosoft.Dynamics.Nav.Model.Tools.psd1”

· Ovviamente è possibile importare tutti gli script esistenti per NAV 2015 ed utilizzarli in ambiente ISE

Permessi amministratore\utente

14 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) · Aprire come amministratore il Window PowerShell ISE se serve utilizzare in modo amministrativo

· Altrimenti per altri script basta l’utente windows connesso (es script NAV NON amministrativi)

NAV Comandi (cmdlets)

La finestra è divisa in 2 sezioni (testo ed executiondebug)

Lista dei comandi esistenti – Finestra con lista di tutti i comandi utilizzabili

I comandi sono molteplici (vedere blog MSDN NAV per averne elenco e spiegazione, oppure vederli dalla lista presentata nella finestra Comandi

Ex:

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 15 Get-Command *NAV*

Get-Help< cmd name>

Get-Help Get-NAVServerInstance

Debug – Possibilità di debug degli script in esecuzione, possibilità di creare script complessi e facilmente testabili (es: test assegnazione variabili, test ricorsione etc.)

Esistono moltissimi comandi (cmdlets)

· Es: comandi utili per la gestione per Utenti, Permessi, Server NAV etc.

Microsoft Dynamics NAV Windows PowerShell Cmdlets

· https://msdn.microsoft.com/en-us/library/hh166599(v=nav.80).aspx Scrum vs. Traditional Project Management

Monday, June 01, 2015

Scrum vs. Traditional Project Management

This article is very interesting (and very clear) and summarized in a few lines the differences between the traditional PM (Project Management FoundamentalsParameters) and Scrum Vision.

Source from Scrumstudy.com http://www.scrumstudy.com/scrum-vs-traditional-PM.asp

SCRUM Foundamentals

https://www.scrum.org/

https://www.scrumalliance.org/

Scrum in 6 minutes

16 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) http://www.scrumstudy.com/scrum-in-six-minutes.asp

Scrum Process Schema

Source http://www.open-ware.org/ita/methodology/scrum.htm

Scrum Principles & Scrum Phases & Processes

image003 image004

Scrum vs. Traditional Project Management Vision

“Traditional project management emphasizes on conducting detailed upfront planning for the project with emphasis on fixing the scope, cost and schedule – and managing those parameters. Whereas, Scrum encourages data-based, iterative decision making in which the primary focus is on delivering products that satisfy customer requirements.

To deliver the greatest amount of value in the shortest amount of time, Scrum promotes prioritization and Time-boxing over fixing the scope, cost and schedule of a project. An important feature of Scrum is self-organization, which allows the individuals who are actually doing the work to estimate and take ownership of tasks.

Following table summarizes many of the differences between Scrum and traditional

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 17 project management:”

Source from Scrumstudy.com http://www.scrumstudy.com/scrum-vs-traditional-PM.asp

You can find another nice post about Successful Scrum implementation here:

11 Tips for a Successful Scrum Implementation

http://www.implementingscrum.com/2015/04/21/11-tips-for-a-successful-scrum- implementation/

SCRUM Methodology (in Italian Language)

Source http://www.open-ware.org/ita/methodology/scrum.htm

Others nice links here:

• Scrum.org https://www.scrum.org/ • Scrum Alliance • Implementing Scrum MY Better Scrum applications:

Scrumwise, Better Scrum > http://www.scrumwise.com/

Asana > https://app.asana.com/ Roberto Stefanetti NAV Blog – “Tryerp.net” – DY...

Monday, June 01, 2015 Roberto Stefanetti NAV Blog – “Tryerp.net” – DYNAMICS ERP 7 Days trial license release. Easy Deployment of the Latest Version of Microsoft Dynamics NAV 201...

Monday, June 01, 2015 Easy Deployment of the Latest Version of Microsoft Dynamics NAV 2015 – Microsoft Dynamics NAV Team Blog – Site Home – MSDN Blogs. Overview of SBOK Guide – SCRUMstudy.com

Tuesday, June 02, 2015 Overview of SBOK Guide – SCRUMstudy.com.

Download Free onlineSCRUMstudy SBOK™ Guide e-book(340 pages) – See more at: http://www.scrumstudy.com/overview-of-sbok.asp#sthash.zucyXW7R.dpuf

18 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) SQL Server Worker Threads and Microsoft Dynamics NAV – Mi...

Wednesday, June 03, 2015 SQL Server Worker Threads and Microsoft Dynamics NAV – Microsoft Dynamics NAV Team Blog – Site Home – MSDN Blogs. by NAV Team Blog

SourceNAV Team Blog http://blogs.msdn.com/b/nav/archive/2015/06/03/sql-server- worker-threads-and-microsoft-dynamics-nav.aspx Roberto Stefanetti NAV Blog – BILANCIO XBRL NAV 2013

Thursday, June 04, 2015 Roberto Stefanetti NAV Blog – BILANCIO XBRL NAV 2013. Roberto Stefanetti NAV Blog – NAV 2015 installazione serv...

Thursday, June 04, 2015 Roberto Stefanetti NAV Blog – NAV 2015 installazione servizi web e creazione servizi aggiuntivi (Web Client\Tablet Client). Microsoft solution to automate backup on SQL Express

Thursday, June 04, 2015

Microsoft solution to automate backup on SQL Express

NB: SQL Server Agent is not available on this SQL release

Microsoft Solution https://support.microsoft.com/en-us/kb/2019698

Sample Backup.cmd file sqlcmd -U sa -P xxxx -S .\SQL2012EXPRESS -Q “EXEC sp_BackupDatabases

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 19 @backupLocation = ‘C:\SQLBackups\’, @backupType = ‘F'”

You can schedule jobs with standard “ Windows Jobs“ SQL Server MAXDOP configuration option for Microsoft Dynamics NAV

Thursday, June 04, 2015 SQL Server MAXDOP configuration option for Microsoft Dynamics NAV

My question to NAV Team about suggested configuration : ‘SET MAXDOP = ????’ with NAV 2009, 2013, 2015 ????

http://blogs.msdn.com/b/nav/archive/2015/06/03/sql-server-worker-threads-and- microsoft-dynamics-nav.aspx

Configure the max degree of parallelism Server Configuration Option

https://msdn.microsoft.com/en-us/library/ms189094.aspx?f=255&MSPPError=- 2147217396

sp_configure 'show advanced options' , 1; GO RECONFIGURE WITH OVERRIDE; GO sp_configure 'max degree of parallelism' , 1; /*Replace 1 with your preferred MAXDOP value */ GO RECONFIGURE WITH OVERRIDE; GO Dynamics NAV ‘Corfu’ Update – Microsoft Converg...

Saturday, June 06, 2015

Microsoft Convergence 2015, one of the most important events last month in 2015, where Microsoft Dynamics representatives pushed across the envelope with some of the u pcoming features for the next Dynamics NAV release, code named ‘ Corfu’, by this autumn. He proudly announced the increasing popularity saying “ Year 2007 saw NAV’s

20 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) install base of approx. 60,000, which has gone up to 110,000 and Microsoft’s push to a ‘ mobile-first, cloud-first’ world is likely to increase the appeal of Dynamics NAV.

Dynamics NAV Corfu Update Marko Perisic, Director of Program Management for Dynamics NAV , this NAV ‘Corfu’ release is likely to be cost effective and easy to upgrade if compared to previous NAV upgrades.

He also added that they look at these upgrades like an oil change in your vehicle – while previous 2009 NAV updates were like overhaul, and it was expensive as well. Is the scenario going to remain the same and the answer from him was a very big NO. It’ll be significantly cheaper – he said.

Two of the CORFU enhancements to get the front seat in Perisic’s presentation were enhanced workflow functionality and increased capability to handle paper records via optical character recognition ( OCR) and document scans and images.

Enhanced Workflow Functionality He said they gradually understand the power of data, and have increased their investments in it, which is already there in their existing systems. Workflow is the initial stage in that investment. The advanced workflow understands the data and can proactively provide suggestions; that decrease your workload.

Increased Capability to “handle paper records via Optical Character Recognition (OCR)” and document scans and images

The world is becoming paperless, however; we cannot run away from the fact that there is lot of paper all around. Especially when you are doing business, there’s got to be a lot of paper around. Our efforts are to bring this utility that empowers you to manage that paper – conveniently scan that paper and bring it within the workflow of your ERP solution – added Perisic.

Source Chirag Shivalker http://www.hitechito.com/blog/dynamics-nav-corfu-update- microsoft-convergence-2015/

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 21 Microsoft Visual Studio Scrum 2013 & MSF for Agile Software...

Saturday, June 06, 2015

Microsoft Visual Studio Scrum 2013

https://msdn.microsoft.com/en-us/library/ms400752.aspx

MSF for Agile Software Development 2013

https://msdn.microsoft.com/en-us/library/ms400752.aspx

Scrum is a framework for running projects that is based on agile principles and values. It defines a set of activities that can help your team deliver more value to your customers faster. These activities provide your customers with the opportunity to review, guide and influence your team’s work as it progresses. This approach does not attempt to define everything at the start of a project. Instead, your team works in short iterations (also called sprints) and refines the plan as the team makes progress. For information about the agile principles and values on which Scrum is based, see Agile Principles and Values, by Jeff Sutherland .

MSF for Agile Software Development v5.0 is based on Scrum.

https://msdn.microsoft.com/en-us/library/dd997796(v=vs.100).aspx

Agile Principles and Values, by Jeff Sutherland

https://msdn.microsoft.com/en-us/library/dd997578(v=vs.100).aspx Free Project Management ebooks and Scrum Templates

Sunday, June 07, 2015 Free Project Management Books (Legally Free Computers Books)

http://www.onlineprogrammingbooks.com/project-management/

22 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Nice 4-free-project-management-ebooks here

“Real Life Scrum”, “The Scrum Primer”, “Agile Transition and Tools” http://www.onlineprogrammingbooks.com/4-free-project-management-ebooks-real-life- scrum-the-scrum-primer-agile-transition-and-tools/

Excel/Google Spreadsheets Templates

Excel Template

SCRUM – Product Backlog – Sprint Template

Google Spreadsheets – Scrum Template https://drive.google.com/templates%3Ftype%3Dspreadsheets%26q%3Dscrum%26sort% 3Dhottest%26view%3Dpublic?ddrp=1# NAV 2015 Word Layout “How Do I” Videos

Monday, June 08, 2015 NAV 2015 Word Layout “How Do I” Videos

“Word Layout is growing up”, nice videos by MVP Brummel, Claus, Totovic, Tacconi & NAV Team

Starting How Do I: Create a new Word Report, based on an existing Word Template in Microsoft NAV 2015 https://msdn.microsoft.com/en-us/dynamics/nav/dn834978

How Do I: Create a Dataset optimized for a Word Layout Report https://msdn.microsoft.com/en-us/dynamics/nav/dn921914

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 23 How Do I: Manage Report Layouts in Microsoft DYnamics NAV 2015 https://msdn.microsoft.com/en-us/dynamics/nav/dn835073

Advanced How Do I: Customize Word Layout in Microsoft Dynamics NAV 2015 – Simple Formatting https://msdn.microsoft.com/en-us/dynamics/nav/dn834982

How Do I: Customize Word Layout in Microsoft Dynamics NAV 2015 – Advanced Formatting https://msdn.microsoft.com/en-us/dynamics/nav/dn834981

How Do I: Handle Headers and Footers for Microsoft Word Reports https://msdn.microsoft.com/en-us/dynamics/nav/dn998016

How Do I: Develop Word Layouts in the Development Environment in Microsoft Dynamics NAV 2015 https://msdn.microsoft.com/en-us/dynamics/nav/dn835068

How Do I: Use Jet Express for Word as Word Layout Creating Tool in Microsoft Dynamics NAV 2015 https://msdn.microsoft.com/en-us/dynamics/nav/dn903716

How Do I: Print Document Reports in One Output File in Microsoft Dynamics NAV 2015 https://msdn.microsoft.com/en-us/dynamics/nav/dn864865

Reports Scheduling by Duilio Tacconi How Do I: Schedule Report Execution in Microsoft Dynamics NAV 2015 https://msdn.microsoft.com/en-us/dynamics/nav/dn921908

————————————————————————————- Microsoft Dynamics NAV 2015 All-Videos Page https://msdn.microsoft.com/en-us/dynamics/nav/dn783472.aspx NAV on MSDN Portal

Monday, June 08, 2015 NAV on MSDN Portal

…a new integrated portal with centralized information, you can FIND ALL about NAV HERE !

https://msdn.microsoft.com/en-us/dynamics/nav/dn781556

24 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Best Contents – Microsoft Dynamics NAV Developer Center – Dynamics Community (blogs & forums) – Developer tools page – Support Page (Support incidents, KB, Cumulative update) – Download PAge (Last releases, partnersource integration) – NAV Videos – NAV Team Blog & News – Learning Page – Events Page

Developer and IT Pro Help for Microsoft Dynamics NAV 2015 https://msdn.microsoft.com/en-us/library/hh174018(v=nav.80).aspx

You are welcome ! Roberto Stefanetti NAV Blog – NAV 2015 Word Layout Report...

Tuesday, June 09, 2015 Roberto Stefanetti NAV Blog – NAV 2015 Word Layout Reporting Tips. NAV 2015 TRACKING SESSIONS, USERS ACTIVITY, CHANGE LOG

Tuesday, June 09, 2015 NAV 2015 TRACKING SESSIONS, USERS ACTIVITY, CHANGE LOG

A simple post about NAV 2015 Tracking Technology, based on MSDN NAV Online Help.

1) TRACKING SESSIONS

NAV 2015 Active Sessions Table

“Active Session”Table

“ Specifies sessions that are currently active and are connected to a Microsoft Dynamics NAV Server instance. An active session can be in use or idle.

This table can contain sessions that are not active, before those are removed from the table. For example, if a Microsoft Dynamics NAV Server instance stops responding, then the table can contain sessions that are not active. When the Microsoft Dynamics NAV Server instance restarts, it deletes from the table the sessions that are not active. If the Microsoft Dynamics NAV Server instance never restarts, then other the Microsoft Dynamics NAV Server instances delete the sessions that are not active.”

https://msdn.microsoft.com/en-us/library/hh895997(v=nav.80).aspx

FieldLocation Session ID Field, Active Session Table Using Microsoft Dynamics NAV

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 25 Database Name Field, Active Session Table Using Microsoft Dynamics NAV Login Datetime Field, Active Session Table Using Microsoft Dynamics NAV User ID Field, Active Session Table Using Microsoft Dynamics NAV User SID Field, Active Session Table Using Microsoft Dynamics NAV Server Computer Name Field, Active Session Table Using Microsoft Dynamics NAV Client Computer Name Field, Active Session Table Using Microsoft Dynamics NAV Client Type Field, Active Session Table Using Microsoft Dynamics NAV Server Instance Name Field, Active Session Table Using Microsoft Dynamics NAV Server Instance ID Field, Active Session Table Using Microsoft Dynamics NAV

“Active Sessions List” Page > based on “Session” Table

Client Type

> Windows Client, Web Client, Tablet Client, Web Services (& Odata Access), Background Services (NAV Server Service or NAS Service)

2) TRACKING USERS ACTIVITY & CHANGE LOG

Standard NAV By Design functionalities

Actually NAV has 2 separate tables to track user activities (only NAV activities handled by NAV Server)

> User Time Registers Table > login\logout with user activities timing

“Specifies how much time an individual user works on the accounts.

The User Time Register table is useful for accounting firms that want to register the amount of time spent working on each company. You may also want to see who has worked on the companies in which period.

To use the User Time Register table, two conditions must be fulfilled: the user must be set up with a personal User ID in the security system and there must be a check mark in the Register Time field.

26 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) The program registers time in whole minutes, rounding up or down.”

https://msdn.microsoft.com/en-us/library/hh169225(v=nav.80).aspx

User Time Registers Table Detail

FieldLocation User ID Field, User Time Register Table General Minutes Field, User Time Register Table General Ledger Date Field, User Time Register Table General Ledger

> Change Log Table > data modifications (insert, delete, modify, previous record before modify)

By Default these tables are not configured & tracking isn’t active, user can activate these functions On-Demand

“The change log in Microsoft Dynamics NAV logs changes that are made to data in the tables that you track. In the change log, entries are chronologically ordered and show changes that are made to the fields on the specified tables.

The change log collects all changes that are made to the table.”

https://msdn.microsoft.com/en-us/library/hh167300(v=nav.80).aspx

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 27 FieldLocation Primary Key Field, Change Log Setup Table General Ledger Change Log Activated Field, Change Log Setup Table General Ledger NAV 2015 ITALIAN FLYER

Thursday, June 11, 2015 NAV2015 ITALIAN FLYER

Microsoft Dynamics NAV è una soluzione di gestione aziendale innovativa che offre alle persone la libertà di svolgere attività mirate al raggiungimento degli obiettivi aziendali:

Gestione Finanziaria, Produzione, Gestione della Supply Chain, Business Intelligence e Reporting, Customer Relationship Management, Collaborazione interna, Gestione delle Risorse Umane, Gestione Commesse, applicazioni verticali, ecc.

Microsoft Dynamics NAV consente di automatizzare i processi manuali ripetitivi e di ridurre il tempo dedicato alle procedure consuete e a quelle amministrative per aumentare la produttività individuale e migliorare l’integrazione dei dati.

Grazie all’accesso semplificato a informazioni aggiornate in tempo reale, tutti i dipendenti dell’organizzazione sono dotati degli strumenti adeguati per far crescere il business. Microsoft Dynamics NAV include un’interfaccia utente intuitiva simile a quelle di altri prodotti Microsoft (Outlook like style).

Attraverso Microsoft Dynamics NAV è possibile ottenere informazioni dettagliate navigando in profondità i dati con accesso a report di sintesi aggiornati in tempo reale, mantenendo in questo modo il controllo sulle operazioni aziendali.

La funzionalità multilingua consente agli utenti di inviare fatture e conferme di ordini nella lingua del cliente e di comunicare efficacemente con i partner commerciali in altri paesi.

NAV2015 ITALIAN FLYER

Link http://www.soluzioniedp.it/admin/public/articolo/9f8e89cdc3e55c820ba8b6017cf1b842/file s/NAV2015_Flyer.

28 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Microsoft Dynamics NAV 2015 – BI Business Intelligence Wh...

Friday, June 12, 2015 Microsoft Dynamics NAV 2015 – BI Business Intelligence White Paper

“Maximising value through business insight”, Business Intelligence White Paper, December 2014

Download link http://www.wise.is/images/Lausnir/Dynamics_NAV/Skjol/BIwhitepaper_MicrosoftDynamic sNAV2015.pdf Best Practices Tips and Tricks for Upgrading to Dynamics NAV 2013 R...

Friday, June 12, 2015 Best Practices Tips and Tricks for Upgrading to Dynamics NAV 2013 R2 or Dynamics NAV 2015 – Microsoft Dynamics NAV Team Blog – Site Home – MSDN Blogs. SQL SERVER REPORTING SERVICES (SSRS) LINKS AND NAV DEMO REPORTS

Friday, June 12, 2015 SQL SERVER REPORTING SERVICES (SSRS) LINKS AND NAV DEMO REPORTS

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 29 LINKS

Developing Report Navigation and Drilldown

https://technet.microsoft.com/en-us/library/aa964132(v=sql.90).aspx

Migrating from Business Objects Crystal Reports to SQL Server 2005 Reporting Services

https://technet.microsoft.com/en-US/library/aa964127(v=sql.90).aspx

Migrating Crystal Report Sections to SQL Server 2005 Reporting Services

https://technet.microsoft.com/en-US/library/aa964127(v=sql.90).aspx

Reporting Services Tutorials

https://msdn.microsoft.com/en-us/library/ms170246.aspx

Reporting Services Samples

https://msdn.microsoft.com/en-US/library/ms160954(v=sql.105).aspx

Reporting Services (SSRS)

https://msdn.microsoft.com/it-it/library/ms159106.aspx

DEMO REPORTS & DATABASES

STANDARD DEMO

Microsoft SQL Server Community Projects & Samples

http://sqlserversamples.codeplex.com/

NAV FREE DEMO REPORTS

22 Free Reporting Services Reports for Dynamics Nav available

http://blogs.msdn.com/b/clausba/archive/2006/04/03/567113.aspx Free Online Scrum Master Training and Scrum Master Manifesto

Saturday, June 13, 2015 Free Online Scrum Master Training and Scrum Master Manifesto

Free Online Scrum Master Training: The fun way to learn about Agile/Scrum, prepare for Scrum Master certification / Agile certification (CSM, CSPO, PSM, or PMI-ACP), and debunk popular misconceptions.

30 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) http://scrumtrainingseries.com/

Introduction to Scrum

Backlog Refinement Meeting

Sprint Planning Meeting

Daily Scrum Meeting

Sprint Review Meeting

Sprint Retrospective Meeting

Scrum Master Manifesto http://www.scrummastermanifesto.org/scrummaster- manifesto/A_ScrumMaster_Manifesto.

“We believe the ScrumMaster is a full-time position for one person on one Scrum team”

12 ScrumMaster Pocket Principles…

1. Dedicated Delivery Improver

2. Foster Continuous Improvement

3. Help Continuous Improvement

4. Empower Coach Deliver

5. Nurtures The Team

6. Transparent Team Helper

7. Commitment To Excellence

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 31 8. Empathetic Evangelistic Guide

9. Resistant Persistent Dedicated

10. Help The Team

11. Awareness Then Improvement

12. Agile Driving Force

Top 10 things a ScrumMaster usually forgets to focus on (but is not SOLELY responsible for) …

1. Redefining career paths and goals to be more scrum focussed

2. Missing Product Backlog items

3. Team issues aren’t being discussed because they are too uncomfortable

4. Appropriate balance between end-to-end system test and unit tests

5. Playing back the team’s progress against the proposed release plan

6. All tests roll up into the continuous integration results

7. Team members realise the benefits of refactoring

8. Code is regularly peer reviewed

9. Pair programming is being utilised

10. Definition of done is being expanded “From Navision To Microsoft”, The history of Dy...

Sunday, June 14, 2015 From Navision To Microsoft, The history of Dynamics NAV / Navision

… some links about history of Dynamics NAV! 1984..2015

Have fun !

Torben Wind, Peter Bang, Jesper Balser , 1984

32 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Denmark Data Museum From Navision To Microsoft (Michael Nielsen, Product Unit Manager) http://datamuseum.dk/site_dk/20040213/navision/ http://datamuseum.dk/site_dk/20040213/navision/sld001.htm

PPT Presentation http://datamuseum.dk/site_dk/20040213/navision/navision.ppt

Starting with Navision, Timeline since 1983 http://embed.verite.co/timeline/?source=0AoEsgYypDSCGdE90RGo2TkJwNlNjYnJybGp ReXVvX0E&font=Bevan-PotanoSans&maptype=toner&lang=en&height=650

Blogs & Wikipedia The history of Dynamics NAV / Navision – Dynamicsuser.net http://dynamicsuser.net/wikis/navdev/the-history-of-dynamics-nav-navision.aspx

Microsoft Dynamics NAV – Wikipedia.org https://en.wikipedia.org/wiki/Microsoft_Dynamics_NAV

History of Microsoft Dynamics NAV – Vjeko.com http://vjeko.com/blog/history-of-microsoft-dynamics-nav

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 33 Microsoft Acquires Navision, COPENHAGEN, Denmark, July 11, 2002 http://news.microsoft.com/2002/07/11/microsoft-acquires-navision/ Export Data from MS Project “.MPP” files to oth...

Wednesday, June 17, 2015 Export Data from MS Project “.MPP” files to others systems

Integration Tecnology Available – OLEDB – ADO – XML – C/SIDE NAV (Oledb .NET Integration) – SQL IIS using OLE DB Data Source\Destination > Project fields Mapping – Project Server (Integrated SQL Technology) > Best Practice for my opinion!

… some links about exporting data using ADO and OLE DB Provider

34 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) OLEDB Microsoft Project OLE DB Provider Information

This document is intended to provide the information necessary to access Microsoft Project data through the Microsoft Project 9.0 OLE DB Provider. In addition to describing the OLE DB table structures, this document details some of the limitations and idiosyncrasies of the provider, how to access the table structure using data access pages, and sample ActiveX Data Objects (ADO) code. link http://www.msproject.com/OLEDB.htm

ADO

Export MS Project Data to Excel Here is a simple routine to export most MS Project task information to Excel. Due to the 256 column limit of ODBC, the limit to the number of exported columns is 256

Function ProjectToExcel2007() Dim cnnProj As New ADODB.Connection ‘Ado connection to ms project Dim rs As New ADODB.Recordset ‘Project tasks table cnnProj.Open “Provider = Microsoft.Project.OLEDB.11.0; Project Name =” & ActiveProject.Path & “\” & ActiveProject.Name rs.Open “SELECT * FROM Tasks”, cnnProj, adOpenKeyset, adLockOptimistic ‘If InStr(0, ActiveProject.Path & “\” & ActiveProject.Name, “.mpp”) > 0 Then Dim objXL As New Excel.Application objXL.EnableEvents = False

Dim objWkb As New Excel.Workbook Dim objSht As Worksheet Dim j, colIndex As Integer Dim rng As Range ‘DoCmd.Hourglass True

Set objWkb = objXL.Workbooks.Add

‘trick to enable Excel 2007 ability to have morethan 255 columns (save as xlsx and repoen)

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 35 objWkb.SaveAs TempFolder() & “tmp.xlsx” objWkb.Close objXL.Workbooks.Open TempFolder() & “tmp.xlsx”

Set objWkb = objXL.ActiveWorkbook Set objSht = objWkb.ActiveSheet With objSht .PageSetup.Orientation = Excel.XlPageOrientation.xlLandscape .PageSetup.CenterHeader = “My Report Header” .PageSetup.CenterFooter = “My report footer” .PageSetup.PaperSize = Excel.XlPaperSize.xlPaperA4 .PageSetup.BlackAndWhite = False .PageSetup.Zoom = False .PageSetup.FitToPagesWide = 1 .PageSetup.FitToPagesTall = 500 .Rows(1).Font.Bold = True .Rows(1).Borders.ColorIndex = 1 .Rows(1).Interior.ColorIndex = 45 .Rows(1).HorizontalAlignment = xlCenter .Rows(1).Borders.Color = vbBlack .Rows().NumberFormat = “@” ‘ Freeze Window .Application.ActiveWindow.SplitRow = 1 .Application.ActiveWindow.FreezePanes = True

End With

objXL.Visible = True For colIndex = 0 To rs.Fields.Count – 1 objSht.Cells(1, colIndex + 1) = rs.Fields(colIndex).Name objSht.Cells(1, colIndex + 1).EntireColumn.AutoFit objSht.Cells(1, colIndex + 1).NumberFormat = “@” Next

‘Transfer the data to Excel objSht.Range(“A2″).CopyFromRecordset rs

‘End If

If rs.State = 1 Then rs.Close End If ‘Blank out all Ado null date values For Each objSht In objWkb.Worksheets objSht.Cells.Replace What:=”1/0/1900″, Replacement:=””, _ LookAt:=xlPart, SearchOrder:=xlByColumns, _ MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False Next

End Function

Function TempFolder() As String

36 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Dim objFSO, objFolder Set objFSO = CreateObject(“Scripting.FileSystemObject”) Set objFolder = objFSO.GetSpecialFolder(2)

TempFolder = objFolder.Path & “\” End Function link https://officetechsupport.wordpress.com/2010/05/21/export-ms-project-data-to-excel/

ADO connecting to a .mpp file or similar – Microsoft Project Developer make a direct ADO connection to a .xls file

Sub ConnectLocally() Dim conData As New ADODB.Connection Dim rstAssigns As New ADODB.Recordset Dim intCount As Integer Dim strSelect As String Dim strResults As String Dim FILE_NAME As String

FILE_NAME = “C:\Mes Doents\MS Project 2K\StockProjets\Projet B.mpp” conData.ConnectionString = “Provider=Microsoft.Project.OLEDB.9.0;PROJECT NAME=” & FILE_NAME ‘ To connect to a Microsoft SQL Server or Oracle Server file, you must also supply User ID and Password arguments ‘ conData.ConnectionString = “Provider=Microsoft.Project.OLEDB.9.0;User ID=jsmith;Password=MyPass5;PROJECT NAME=” & FILE_NAME conData.ConnectionTimeout = 30 conData.Open strSelect = “SELECT ResourceUniqueID, AssignmentResourceID, AssignmentResourceName, TaskUniqueID, AssignmentTaskID, AssignmentTaskName FROM Assignments WHERE TaskUniqueID > 0 ORDER BY AssignmentTaskID ASC” rstAssigns.Open strSelect, conData

Do While Not rstAssigns.EOF For intCount = 0 To rstAssigns.Fields.Count – 1 strResults = strResults & “‘” & rstAssigns.Fields(intCount).Name & “‘” & _ Space(30 – Len(rstAssigns.Fields(intCount).Name)) & vbTab & _ CStr(rstAssigns.Fields(intCount).Value) & vbCrLf Next strResults = strResults & vbCrLf rstAssigns.MoveNext Loop conData.Close

Open “C:\Mes Doents\Results.txt” For Output As #1

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 37 Print #1, strResults Close #1

Shell “Notepad C:\Mes Doents\Results.txt”, vbMaximizedFocus

End Sub

XML Project “SaveAS” .XML file Saving and Opening Projects in XML Format link https://msdn.microsoft.com/en-us/library/bb968621(v=office.12).aspx

The Microsoft Office Project 2007 XML Data Interchange Schema (mspdi_pj12.xsd) defines how Project 2007 reads and writes project data in XML format. This article describes how to work with Project 2007 XML Data Interchange files, and contains the following sections:

– Saving Project Files as XML – Opening Project XML Files .. we can use NAV XML Ports to import\export data in NAV reading from XML saved from Project

C/SIDE NAV .. example of integration between NAV & Project using C/SIDE

Automations Objects ‘Microsoft Scripting Runtime’.FileSystemObject “Automation Your MS Project Release”.Project “Automation Your MS Project Release”.Tasks “Automation Your MS Project Release”..Resource “Automation Your MS Project Release”.TaskDependencies

Tables TblJobNAV table Job tblJobTasks tabel Job Task tblJobTasksResource table Job Planning Line

Variabiles prjPrj prjApp prjTasks prjDependiences prjResources …..

Function SendTasksToProject WITH JobTask DO BEGIN CREATE(prjApp); FileExist:=FALSE; IF KeepFileCopy THEN BEGIN File_Name:=FileName; IF EXISTS(FileName) THEN BEGIN

38 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) prjApp.FileOpenEx(FileName); prjPrj := prjApp.ActiveProject; FileExist:=TRUE; END; END ELSE IF EXISTS(FileName) THEN ERASE(FileName); ….. …..

IF NOT FileExist THEN BEGIN prjApp.FileNew; prjPrj := prjApp.ActiveProject; prjPrj.”Custom Job No.”:= Rec.”No.”;

JobTask.SETRANGE(“Job No.”,Rec.”No.”); JobTask.SETFILTER(“Job Task Type”,'<>%1&<>%2′,”Job Task Type”::Total,”Job Task Type”::”End-Total”); IF FINDFIRST THEN BEGIN k:=0; REPEAT k+=1; Wnd.UPDATE(1,ROUND(k/JobTask.COUNT*5000,1)); AddTask(JobTask,prjApp); UNTIL NEXT=0; END; End Function

Function ReceiceTasksFromProject JobTask.INSERT; prjTask.”Custom Job No.”:=JobTask.”Job No.”; prjTask.”Custom Job Task No.” :=JobTask.”Job Task No.”;

IF prjTask.OutlineChildren.Count()<>0 THEN BEGIN // Internal Project function JobTask.”Job Task Type”:=JobTask.”Job Task Type”::”Begin-Total”; JobTask.MODIFY; JobTask.”Job Task No.”:=PADSTR(COPYSTR(JobTask.”Job Task No.”,1,(prjTask.OutlineLevel)*2),MaxOutlineLevel*2,’9′); JobTask.”Job Task Type”:=JobTask.”Job Task Type”::”End-Total”; JobTask.Description:=COPYSTR(Text005 + ‘ ‘ + prjTask.Name,1,MAXSTRLEN(JobTask.Description)); JobTask.Indentation:=prjTask.OutlineLevel-1; JobTask.”Starting Date”:=prjTask.Start; JobTask.”Ending Date”:=prjTask.Finish;

IF NOT JobTask.INSERT THEN; …. …. …. End Function

Function AddTask(VAR JobTask: record:”Job Task”, PrjApp:Project Automation.”Application”)

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 39 WITH JobTask DO BEGIN prjPrj:= PrjApp.ActiveProject; prjTask := prjPrj.Tasks.Add(Description); prjTask.”Custom Job No.”:=JobTask.”Job No.”; prjTask.”Custom Job Task No.” :=JobTask.”Job Task No.”;

IF “Starting Date”<>0D THEN prjTask.Start := (CREATEDATETIME(“Starting Date”,”Starting Time”)); IF “Ending Date”<>0D THEN prjTask.Finish := (CREATEDATETIME(“Ending Date”,”Ending Time”));

IF “Due Date”<>0D THEN prjTask.Deadline := (CREATEDATETIME(“Due Date”,”Due Time”)); … …. End Function Monitoring and troubleshooting NAV Services – Using Windo...

Tuesday, June 23, 2015 Coffee Break – Monitoring and troubleshooting NAV Services – Using Windows PowerShell to check and search the Application Log

..another very useful post by NAV Team Blog (Jasminka & c.), good for multi server environments.

“Windows PowerShell is very well suited for monitoring services because tasks can be repeated and they can run remotely. In this post we will look at how to check the Application Log via Windows PowerShell, locally as well as remotely, to look for errors or for certain words in the log. The customer story this time is that users report a problem and you need to find the cause. The first place to look (at least in some cases): the Application Log.” ….

Get-WinEvent -ListProvider *nav* | Format-Table Get-WinEvent -ProviderName “MicrosoftDynamicsNavServer`$DynamicsNAV80”

Source http://blogs.msdn.com/b/nav/archive/2015/06/23/coffee-break-check-the- application-log.aspx Visualstudio Online: Kanban basics

Sunday, June 28, 2015 Visualstudio Online: “Kanban basics”

40 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) To maximize a team’s ability to consistently deliver high quality software, Kanban emphasize two main practices. The first, visualize the flow of work, requires you to map your team’s workflow stages and configure your Kanban board to match. The second, constrain the amount of work in progress, requires you to set work-in-progress ( WIP) limits. You’re then ready to track progress on your Kanban board and monitor key metrics to reduce lead or cycle time.

Your Kanban board turns your backlog into an interactive signboard, providing a visual flow of work. As work progresses from idea to completion, you update the items on the board. Each column represents a work stage, and each card represents a user story (blue cards) or a bug (red cards) at that stage of work.

Sample KANBAN Board

User stories and bugs correspond to types of work items . You use work items to share information, assign work to team members, update status, track dependencies, and more.

You open your Kanban board using one of these URLs that connects you to your team project:

Visual Studio Online: http://AccountName/DefaultCollection/TeamProjectName/_backlogs/board/

On-premises Team Foundation Server (TFS):

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 41 http://ServerName:8080/tfs/DefaultCollection/TeamProjectName/_backlogs/board/

If you don’t have a team project yet, create one in Visual Studio Online or set one up in an on-premises TFS . If you don’t have access to the team project, get invited to the team .

Kanban core practices What is Kanban? http://kanbanblog.com/explained/

Having worked through the above four steps, you’re well on your way to implementing most of Kanban’s “ six core practices”.

1. Visualize your workflow. Teams track their work using a Kanban board that maps to how they work. Teams discuss how to best focus their resources to deliver the most important work. 2. Limit work in progress. Teams set and adhere to WIP limits they set for each stage of work. They use WIP limits to maintain focus on completing what they started and to identify bottlenecks occurring in their processes. 3. Manage flow. Teams monitor the overall work in progress and lead time, which gives them an idea of the speed of their delivery. 4. Make policies explicit. Teams spell out the standards and processes they agree to follow and make them readily accessible. For example, by making the team’s Definition of Done for each work stage explicit, they can avoid wasted time and effort. 5. Create opportunities for feedback. Teams meet periodically to reflect on what’s working and what needs improvement. 6. Improve collaboratively, evolve experimentally. Teams determine how to improve the continuous flow of delivery over time based of key metrics. They involve the entire team to gather insights and ideas. And, when persistent bottlenecks arise, they determine the changes that will alleviate them. Over time, Kanban can provide your team insight as to how well their current processes work end-to-end and how to improve them. Incremental adoption of Kanban practices tends to yield greater success and builds on the sixth practice, to evolve experimentally. These practices arose from principles of Lean Manufacturing and Systems Thinking.

source https://msdn.microsoft.com/Library/vs/alm/work/kanban/kanban-basics

Plan and track work,Keep the team focused

A good set of tools will help know which is the status of a given task, how does it contribute to the overarching story or what work has been done until today. Make sure your team checks the tools included on your Visual Studio Online account.

Keep (and honor) your backlog. It wi l help you define the work that needs to be done. Track task completion on the Kanban board, a visualization that helps the team know what’s in progress, who’s doing what, what needs to be done next and what’s been done. Break down the work in sprints. Let the information flow in the team rooms.

source https://msdn.microsoft.com/en-us/Library/vs/alm/Work/overview

42 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) SQL SERVER REPORTING SERVICES (SSRS) LINKS AND NAV DEMO REPORTS

Wednesday, July 01, 2015 SQL SERVER REPORTING SERVICES (SSRS) LINKS AND NAV DEMO REPORTS

LINKS

Developing Report Navigation and Drilldown https://technet.microsoft.com/en-us/library/aa964132(v=sql.90).aspx

Migrating from Business Objects Crystal Reports to SQL Server 2005 Reporting Services https://technet.microsoft.com/en-US/library/aa964127(v=sql.90).aspx

Migrating Crystal Report Sections to SQL Server 2005 Reporting Services https://technet.microsoft.com/en-US/library/aa964127(v=sql.90).aspx

Reporting Services Tutorials https://msdn.microsoft.com/en-us/library/ms170246.aspx

Reporting Services Samples https://msdn.microsoft.com/en-US/library/ms160954(v=sql.105).aspx

Reporting Services (SSRS) https://msdn.microsoft.com/it-it/library/ms159106.aspx

DEMO REPORTS & DATABASES

STANDARD DEMO

Microsoft SQL Server Community Projects & Samples http://sqlserversamples.codeplex.com/

NAV FREE DEMO REPORTS (OLD BUT WORKING !!)

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 43 22 Free Reporting Services Reports for Dynamics Nav available

http://blogs.msdn.com/b/clausba/archive/2006/04/03/567113.aspx Microsoft Dynamics NAV 2015 – BI Business Intelligence Wh...

Friday, July 03, 2015 Microsoft Dynamics NAV 2015 – BI Business Intelligence White Paper

Roberto Stefanetti NAV Blog

Microsoft Dynamics NAV 2015 – BI Business Intelligence White Paper

“Maximising value through business insight”, Business Intelligence White Paper, December 2014

Download link http://www.wise.is/images/Lausnir/Dynamics_NAV/Skjol/BIwhitepaper_MicrosoftDynamic sNAV2015.pdf

View original post Microsoft Dynamics NAV Dev Center

Saturday, July 04, 2015

top.contentBuilder.createInlineImage(document, 34000, "http://colowww.sharedbook.com/proxy/serve/is/article/?url=http%3A%2F%2Fcolowww.s haredbook.com%2Fserve%2Fis%2Fretrieve%2F%3Furl%3Dhttps%253A%252F%252Fro bertostefanettinavblog.files.wordpress.com%252F2015%252F07%252Fnav- dev2.jpg%253Fw%253D377%2526h%253D159", 0, 0, "", "RobertoStefanetti", "", "left", "", "sb_api_scriptId_34000", "https://robertostefanettinavblog.files.wordpress.com/2015/07/nav- dev2.jpg?w=377&h=159", "", "alignnone wp-image-224");

44 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Microsoft Dynamics NAV Dev Center “Get the information you need to design, develop, and distributesolutions for Microsoft Dynamics NAV” https://msdn.microsoft.com/en-us/dynamics/nav/dn781556.aspx

The Help Update for June is Out

As you probably already know we publish updates to our MSDN library every month. Find the June edition here MSDN Library

New NAV 2015 Videos Uploaded Videos NAV 2015

Developing for the Microsoft Dynamics NAV Tablet Client https://msdn.microsoft.com/en-us/library/dn789649(v=nav.80).aspx

Great ! Programming Microsoft Dynamics™ NAV 2015 … is Out !

Sunday, July 05, 2015

Programming Microsoft Dynamics™ NAV 2015 is Out!

David Studebaker, Christopher Studebaker

Purpose : “Sharpen your skills and increase your productivity when programming Microsoft Dynamics NAV 2015” link https://www.packtpub.com/big-data-and-business-intelligence/programming- microsoft-dynamics%E2%84%A2-nav-2015

Coming soon my official review…. like “ Programming Microsoft Dynamics™ NAV 2013 ! …stay tuned.

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 45 Roberto Stefanetti’s Reviews > Programming Microsoft Dynamics Nav 2013 http://www.goodreads.com/review/show/612591964 Monitoring Microsoft Dynamics NAV 2015 Server Using “Perf...

Monday, July 06, 2015 Monitoring Microsoft Dynamics NAV 2015 Server Using “Performance Counters”

Nice page about NAV 2015 performance counters !

“ Performance counters” provide information about how well Microsoft Dynamics NAV Server is operating. By using monitoring tools such as Windows Performance Monitor and System Center Operations Manager, you can use the Microsoft Dynamics NAV performance counters to collect data on Microsoft Dynamics NAV Server instances, and then use the data to identify conditions that are affecting performance and make adjustments.

Microsoft Dynamics NAV also provides a Data Collector Set template that you can use to easily create Data CollectorSets that contain all the Microsoft Dynamics NAV performance counters.

Source MDSN https://msdn.microsoft.com/en-us/library/dn414713(v=nav.80).aspx

How to: Set up Performance Counters in Windows Performance Monitor

https://msdn.microsoft.com/en-us/library/dn271687(v=nav.80).aspx

Working with “Data Collector” Sets

“A Data Collector Set organizes data collection points, such as performance counters and event trace data, into a single collection. Data Collector Sets enable you to schedule data collection, so that you can analyze the results and view reports later. Data that is collected for performance counters by a Data Collector Set is stored in log files, which you can open and view in Windows Performance Monitor. You can create your own Data Collection Set or you can use the Data Collection Set template that is included with Microsoft Dynamics NAV”

46 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) https://msdn.microsoft.com/en-us/library/dn271716(v=nav.80).aspx “ALL” about NAV Tablet Client

Wednesday, July 08, 2015 “ALL” about NAV Tablet Client

“some links about NAV 2015 Tablet Client”, may be useful !

NAV TEAM BLOG

Announcing Microsoft Dynamics NAV for Tablets http://blogs.msdn.com/b/nav/archive/2014/10/08/announcing-microsoft-dynamics-nav-for- tablets.aspx

Extensibility for the Microsoft Dynamics NAV Tablet Client http://blogs.msdn.com/b/nav/archive/2014/10/09/extensibility-for-the-microsoft-dynamics- nav-tablet-client.aspx

How to get Microsoft Dynamics NAV for tablets to connect using a self-signed certificate http://blogs.msdn.com/b/nav/archive/2014/10/09/how-to-get-microsoft-dynamics-nav-for- tablets-to-connect-using-a-self-signed-certificate.aspx

Adding an image to a Role Center page to fill the content area on tablets http://blogs.msdn.com/b/nav/archive/2014/10/10/adding-an-image-to-a-role-center-page- to-fill-the-content-area-on-tablets.aspx

MSDN

Developing for the Microsoft Dynamics NAV Tablet Client https://msdn.microsoft.com/en-us/library/dn789649(v=nav.80).aspx

Introducing the Microsoft Dynamics NAV Tablet Client https://msdn.microsoft.com/en-us/library/dn789593(v=nav.80).aspx

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 47 Deciding on Your Tablet Strategy

https://msdn.microsoft.com/en-us/library/dn789655(v=nav.80).aspx

Troubleshooting the Microsoft Dynamics NAV Tablet Client

https://msdn.microsoft.com/en-us/library/dn757105(v=nav.80).aspx

Differences and Limitations When Developing Pages for the Microsoft Dynamics NAV Tablet Client

https://msdn.microsoft.com/en-us/library/dn757104(v=nav.80).aspx

VIDEOS

How Do I: Start Developing for Microsoft Dynamics NAV 2015 Tablet Client

How Do I : Log into the Tablet client

https://markbrummel.wordpress.com/2014/10/21/how-do-i-log-into-the-tablet-client/

Dynamics NAV 2015 Tablet App Microsoft Named a Leader in Gartner’s Public Cloud Storage Services...

Saturday, July 11, 2015 “Microsoft Named a Leader in Gartner’s Public Cloud Storage Services for Second Consecutive Year”

Figure 1. Magic Quadrant for Public Cloud Storage Services, Worldwide

Gartner research recently published their Magic Quadrant for Public Cloud Storage Services and recognized Microsoft Azure as a leader for the second year in a row based

48 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) on completeness of our vision and ability to execute. This comes at the heel of recent independent research report by Nasuni where Azure Storage is recognized as the best performer in benchmark tests. Gartner’s report further substantiates Microsoft’s position as the only vendor named a leader across Gartner Magic Quadrants for IaaS, Application PaaS, and Cloud Storage.

Source Link https://azure.microsoft.com/blog/2015/06/26/microsoft-named-a-leader-in- gartners-public-cloud-storage-services-for-second-consecutive-year/

Nicole Herskowitz Director of Product Marketing, Cloud Platform Microsoft Dynamics CRM Connector for NAV- Step by Step Guide to Ins...

Sunday, July 12, 2015 Microsoft Dynamics CRM Connector for NAV- Step by Step Guide to Installation & Configuration

…a nice old post from Dynamics PTS Team Blog (a blog managed by Dynamics Partner Technical Services team for Global English ) about Dynamics CRM Connector

http://blogs.technet.com/b/dynamicspts/archive/2013/10/22/microsoft-dynamics-crm- connector-for-nav-step-by-step-guide-to-installation-amp-configuration.aspx

…others good quick links here: http://msdn.microsoft.com/en-us/library/gg502460.aspx http://msdn.microsoft.com/en-us/library/gg481835.aspx http://blogs.msdn.com/b/dynamicsconnector/ http://www.microsoft.com/en-in/download/details.aspx?id=10381 https://mbs.microsoft.com/partnersource/deployment/resources/productreleases/MDNAV 2009R2_CRMConnector.htm

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 49 Send e-mail with attachment and templates – My Script on ...

Monday, July 13, 2015 Send e-mail with attachment and templates – My Script on MSDN Gallery

A short C# script to send e-mail with attachment and template, DLL .NET usable on Windos Systems

Parameters

setMail(string parfrom, string parto, string parcc, string parsubject, string partextmessage, string parpathattach, stringparpathtemplate)

you can find it on My MSDN Gallery

https://gallery.technet.microsoft.com/scriptcenter/0c32d24a-3651-4fe1-8d10- 80f9c6440a70

The Official Scripting Guys Forum! DLP (Dynamics Learning Portal) Live !

Monday, July 13, 2015 DLP (Dynamics Learning Portal) Live !

50 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) ..very good updated “ Learning portal” for partners” !

– Course, video, transcript, Learning Plans, Course Catalog, Events, Laboratory

A VERY GOOD solution “ for All Dynamics Users” ! …Have a good training !

LINKS

Home https://mbspartner.microsoft.com/Home

NAV Course Catalog https://mbspartner.microsoft.com/NAV/CourseCatalog

NAV Virtual Labs nice this : Finance Essentials In Microsoft Dynamics NAV 2015 – Hands-On-Lab https://mbspartner.microsoft.com/NAV/CourseLabs/1076/20 How to upload the license file in Multitenant Deployment, NAV 2015

Monday, July 13, 2015 How to upload the license file in Multitenant Deployment, NAV 2015

Use Powershell (or Powershell ISE) to to achieve this with Powershell cmdlet “Import- NAVServerLicense”

SYNTAX: Import-NAVServerLicense [-ServerInstance] [-Database ] [-Force] [-Tenant ] [-Confirm] [-WhatIf] [ ]

Example: “This example imports a license file that is named “ fin.flf” from the current directory into the database that is used by the specified tenant, Tenant1”

C:\PS> Import-NAVServerLicense ‘MicrosoftDynamicsNavServer$MyInstance’ - LicenseData ([Byte[]]$(Get-Content -Path “fin.flf” -Encoding Byte)) -Database Tenant

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 51 –Tenant Tenant1

Source MSDN msdn.microsoft.com/…/jj672905(v=nav.80).aspx

Administration Cmdlets for Microsoft Dynamics NAV

https://msdn.microsoft.com/en-us/library/jj672916(v=nav.80).aspx From “Corfu” to NAV 2016… NAV 2016 O...

Tuesday, July 14, 2015 Microsoft Revealed the Official Name of NAV “Corfu” as “ Microsoft Dynamics NAV 2016” yesterday at World Partner Conference 2015 ( WPC 2015)

look at NAV MVP Blogs from more information : Saurav Dhyani, Mark Brummel , Aleksandar Totovic , Gary Winter

NAV 2016 OverView

Best Improvementes byTopics

Office 365 and Power Bi, New Client – Phone, CRM Online, e-Everything (Full EDI), Workflow (process automation), Financials Functionalities, Engineering, Azure Experience

Source Saurav Dhyani http://saurav-nav.blogspot.it/2015/07/microsoft-dynamic-nav- 2016-yes-thats.html

52 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Powershell Script to create a “Self-Signed Certificate” that works ...

Wednesday, July 15, 2015 Powershell Script to create a “Self-Signed Certificate” that works on Dynamics NAV Ipad APP

PURPOSE

Automatedscripts (with Powershell) to create aself-signed certificate usable for Dynamics NAV App on Ipad (if you haven’t a Real Commercial Verified Certificate)

This “ Powershellautomation Script” is based on manual procedure existing in this post “How to get Microsoft Dynamics NAV for tablets to connect using a self-signed certificate” by NAV Team Blog and also based on some scripts by Duilio Tacconi of Microsoft Support Emea. http://blogs.msdn.com/b/nav/archive/2014/10/09/how-to-get-microsoft- dynamics-nav-for-tablets-to-connect-using-a-self-signed-certificate.aspx

STEP1:REQUIREMENTSFOR USE PRE-USE CERTIFICATE “SELF-SIGNED” – Best Practice Microsoft suggest to use a valid certificate (ex: Purchased from Verisign) – Suggested (but not mandatory) is to install at least the cumulative NAV Update 8 2015 (CU8), it needs to use better management of self-signed certificate (unofficial, not from Vendor).

STEP2:ELIMINATIONOF CERTIIFICATES NOT ALREADY WORKING AND IMPORTED ON IPAD

• First, if you have already created certificates for use with App and these don’t work, remove them all using the console:

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 53 STEP3:PROCEDURE FORCREATING A NEW SELF-SIGNED CERTIFICATE – This procedure must be used after the installation of Navision Server. CREATION(BUILD) OF NEW CERTIFICATE – This procedure creates / uses a new self-signed certificate – Unzip the file with everything you need ( KIT PRE-EXISTING available to Deploy NAV on AZURE), put in the default example “C:\Certificates\Initialize\Initialize\”

Initialize Standard.ZIP File

This file has been modified to the case: “ Self-Signed Certificate tested on iPad App” (was commented on what is not needed in our test case environment and changed the parameters) Open the file with PowershellISE as administrator ( Run as administrator) and check the settings and make changes if necessary.

SCRIPT:InstallCert.ps1 ,SCRIPT : “ Certificate.Ps1”

Download Powershell Scripts Form here: POWERSHELL FILES CERTIFICATE or from my GITHUB Branch “Self-Signed-Certificate”

54 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) https://github.com/rstefanetti/Powershell/tree/Self-Signed-Certificate

“POWERSHELL ISE” SAMPLES SCREENS

STEP4: Running thefile “InstallCert.ps1”

• From line to line with F8 (debug) in powershell ISE so if there are errors you can understand and correct, or run the entire script with F5 if you are unsure. STEP 5:INPUT PARAMETERSTwo parameters are requested:

• The first (Default Login)

-The second: (NAV Server: press enter taking one proposed)

The scriptstops and restarts the services, once finished, takethe certificate and send it on iPad (example à send to email) STEP6:INSTALLATIONCERTIFICATE ON IPAD -Click on the file in the mail and followthe installation procedure on Ipad. STEP7:LAUNCHDYNAMICS NAV APP -Finished open “Dynamics NAV App” and enter the address

“To Run” Dynamics NAV Ipad App

• Download Ipad App : Dynamics NAV from App Store

Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 55

  • Install Certificate on Ipad (Double Click on .CER File)
  • Run Ipad App and set NAV Server Link : EXAMPLE https://navserver.clou dapp.net/DynamicsNAV80/WebClient
  • Insert username e password User: NAV (DOMAIN\User) PWD: PasswordBINGO !
  • BINGO ! …. Have a nice Day ! Dynamics NAV 2016 “ex Corfu” Beta available for...

    Wednesday, July 15, 2015 Dynamics NAV 2016 “ex Corfu” Beta available for partners (limited)

    https://connect.microsoft.com/site687/Downloads

    Enjoy !

    Source Post (reblogged) by Mark Brummel

    http://nav-skills.com/2015/07/15/dynamics-nav-2016-corfu-beta-available-for-partners/

    Mark Brummel Blog | Microsoft Dynamics NAV

    Ok, this is my first mobile blog post.

    As a response to a question on my previous post I wanted to share the link where the public beta can be downloaded.

    http://t.co/2brBIcViBZ

    Let me know if it works. Enjoy the great release! Please have a close look at the code editor and play around with the code unit types.

    56 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) View original post NAV Services and Sessions: Counting, Killing, Timeout

    Thursday, July 16, 2015 NAV Services & Sessions: Counting, Killing, Timeout

    Understanding and Configuring Session Timeout

    “When you start the Microsoft Dynamics NAV Windows client or the Microsoft Dynamics NAV Web client, a connection is established with the Microsoft Dynamics NAV Server instance, and a corresponding session is added on Microsoft Dynamics NAV Server. Microsoft Dynamics NAV Server includes several timeout settings that determine when a session closes because of inactivity, a lost connection, or the client closes.

    Source NAVTeam & NAV MSDN Online http://blogs.msdn.com/b/nav/archive/2014/01/23/understanding-and-configuring-session- timeouts.aspx https://msdn.microsoft.com/en-us/library/dn584639(v=nav.80).aspx

    NAV 2015 Session Counting

    Nice post about Session Counting in 4 tier environment Source Kine http://mibuso.com/blogs/kine/2015/04/30/nav-20132015-session-counting/

    Stop Idle using Powershell Stopping Idle Microsoft Dynamics NAV Services using Powershell

    Nice Post about “How to Stop” Idle Nav Services

    “PowerShell has a powerful set of commands that allow you to start new sessions and execute commands in those sessions within the context of your main script.” Source Softwareanswers.co.uk http://www.softwareanswers.co.uk/software_answers/2015/03/stopping-idle-microsoft- dynamics-nav-services.html

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 57 Kill Sessions in Dynamics NAV 2013/2015

    Source Olof Simren https://www.olofsimren.com/kill-sessions-in-dynamics-nav/

    NAV 2015 “Full” Tracking NAV 2015 TRACKING SESSIONS, USERS ACTIVITY, CHANGE LOG Source me https://robertostefanettinavblog.wordpress.com/2015/06/09/nav-2015-tracking-sessions- users-activity-change-log/

    ……………………

    KILL INACTIVE NAV SESSIONS FROM SQL (only dor Old Releases NAV 3.10 .. NAV 2009)

    // KILL SQL INACTIVE SESSIONS FOR NAV APPLICATIONS, ONLY FOR SLEEPING SESSIONS Source “Me” http://blogs.dotnethell.it/dynamicsnav/SQL-KILL-INACTIVE-NAV- SESSIONS__19611.aspx

    Kill Idle Connections using ADO “To save concurrent uses in NAV it might be a good idea to kill idle connections automatically.” Nice with ADO Connerction”

    Source Gunnar http://www.dynamics.is/?p=471 Check Objects “Modify Date” using “sy...

    Friday, July 17, 2015 If you need to check “ Modify Date” for NAV Objects on SQL Server, you can use SQL Standard Function “ sys.all_objects“; you don’t need to use standard NAV Objects Table.

    Examples:

    USE [Demo Database NAV (7-1)] GO

    — VIEWS

    58 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) SELECT * FROM sys . all_objects WHERE type_desc like ‘VIEW’ ORDER BY modify_date DESC

    — TABLES

    SELECT * FROM sys . all_objects WHERE type_desc like ‘USER_TABLE’ ORDER BY modify_date DESC

    — VIEWS & TABLES

    SELECT * FROM sys . all_objects WHERE type_desc like ‘VIEW’ or type_desc like ‘USER_TABLE’ ORDER BY modify_date DESC

    — KEYS

    SELECT * FROM sys . all_objects WHERE type_desc like ‘%KEY%’ ORDER BY modify_date DESC

    — COMPANY OBJECTS (ex Cronus Italy)

    SELECT * FROM sys . all_objects WHERE name like ‘CRONUS%’ ORDER BY modify_date DESC

    — ALL OBJECTS

    SELECT * FROM sys . all_objects ORDER BY modify_date DESC

    Have Fun ! NAV 2015, “How-to” solve “You are not...

    Monday, July 20, 2015

    How to login in “any database”

    Follow this and you can login in any database (delete ALL existing configuration and can login)

    Source Waldo Blog http://dynamicsuser.net/blogs/waldo/archive/2012/12/05/nav-2013- how-to-log-in-any-database.aspx

    By SQL Script > Grant SUPER to Role ID in Access control table

    There are 2 ways for your case, run SQL script on your database:

    1. Come back to no user as before you create the user:

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 59 DELETE [Access Control]

    DELETE [User]

    2. Set all users as SUPER users:

    UPDATE [Access Control] SET [Role ID] = ‘SUPER’

    Source https://community.dynamics.com/nav/f/34/p/166672/408485#408485

    by “PowerShell”, nice RESCUE Solution

    1. Start the NAV 2015 Administration Shell or Powershell ISE

    2. Execute the command:

    1. New – NAVServerUser – ServerInstance YOURINSTANCENAME – WindowsAccount YOURUSERACCOUNT (of course replace the ‘YOUR…’ with your data ; probably YOURINSTANVCE should be: DynamicsNAV80 )

    3. Execute the command:

    1. New – NAVServerUserPermissionSet – ServerInstance YOURINSTANCENAME – WindowsAccount YOURUSERACCOUNT – PermissionSetID SUPER Source https://community.dynamics.com/nav/f/34/p/166672/408485#408485

    NAV MSDN Bible

    You can find info on assigning permissions here: https://msdn.microsoft.com/en- us/library/dd338839(v=nav.80).aspx

    And also general info on creating users here: https://msdn.microsoft.com/en- us/library/dd355093(v=nav.80).aspx

    Source https://community.dynamics.com/nav/f/34/p/166672/408485#408485

    Have Fun ! “Check NAS” Process execution and Send Mail (Ba...

    Monday, July 20, 2015 “Check NAS” Process execution & Send Mail (Batch control)

    60 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) How System Works

    > System every “X minutes” check Status of Scheduled Processes and send a mail with Status(batch control)

    Scheduling

    > You can schedule this codeunit in some or in another Process Category Queue of your NAS; you can use also another separate NAS Server if you need parallelasynchronous check.

    Codeunit “Check NAS” C/AL Code

    Documentation

    RS, NAS01, 20150710, “Check NAS” Codeunit

    *** Function “ CreaFileErrori”

    *** Function “ ErrorSendMail”

    *** Function “ JobStatus”

    OnRun()

    //RS, NAS01, .sn

    //Call Create Errors File

    CreaFileErrori;

    //RS, NAS01, .en

    JobStatus()

    //RS, NAS01, .sn

    // Check “Job Log Entry” Process Status & Execution Time

    IF recJobQEntry.FINDSET THEN

    REPEAT //controllo se è in esecuzione da troppo tempo (check for LONG running time execution) recJobQEntry.”Send error email” := FALSE;

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 61 IF (recJobQEntry.Status = recJobQEntry.Status::”In Process”) THEN

    BEGIN

    recJobQLogEntry.SETRANGE(“Object Type to Run”,recJobQEntry.”Object Type to Run”);

    recJobQLogEntry.SETRANGE(“Object ID to Run”,recJobQEntry.”Object ID to Run”);

    IF recJobQEntry.”Duration Process Max” > 0 THEN

    IF recJobQLogEntry.FINDLAST THEN

    IF CURRENTDATETIME – recJobQLogEntry.”Start Date/Time” > recJobQEntry.”Duration Process Max” THEN

    recJobQEntry.”Send error email” := TRUE;

    END

    ELSE //se è in errore , IF process Is in “Error” State

    IF (recJobQEntry.Status = recJobQEntry.Status::Error) THEN

    recJobQEntry.”Send error email” := TRUE;

    recJobQEntry.MODIFY;

    UNTIL recJobQEntry.NEXT = 0;

    //RS, NAS01, .en

    ErrorSendEmail(txtFile01 : Text[100])

    //RS, NAS01, .sn

    //————— Build & Send Mail ———————-//

    recSMTP.GET;

    cuSendEmail.CreateMessage(recSMTP.”User ID”,

    recSMTP.”Sender Address”,

    recSMTP.”Receiver Address Log Interface”,

    ‘Errori Job Schedulate’,’In allegato i job in errore’,

    FALSE);

    //Add attachment

    62 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) cuSendEmail.AddAttachment(txtFile01);

    //Send attachment cuSendEmail.Send;

    //RS, NAS01, .en

    CreaFileErrori()

    //RS, NAS01 .sn

    // Registrazione Errori NAS, Wrinting NAS Errors in Outpout File

    GLOBALLANGUAGE(1040);

    CLEAR(OutFile);

    OutFile.TEXTMODE := TRUE;

    OutFile.WRITEMODE := TRUE; recSMTP.GET; txtFileName_00 := recSMTP.”Error Folder Log” + recSMTP.”Error File Log”

    + DELCHR((FORMAT(TODAY,0,'’) +’_’+ FORMAT(TIME)), ‘=’,’/ : .’) + ‘.csv’;

    IF OutFile.OPEN(txtFileName_00) THEN

    BEGIN

    OutFile.CLOSE;

    EXIT;

    END;

    OutFile.CREATE(txtFileName_00); txtFineRiga:='’; cr:=13; lf:=10; recJobQEntry.SETRANGE(“Send error email”,TRUE);

    IF recJobQEntry.FINDSET THEN

    BEGIN

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 63 REPEAT

    txtOutText:= ‘TIPO;’ + ‘NR JOB;’ + ‘JOB;’;

    OutFile.WRITE(txtOutText); //scrivo riga

    txtOutText:=FORMAT(FORMAT(recJobQEntry.”Object Type to Run”)+ ‘;’ +

    FORMAT(recJobQEntry.”Object ID to Run”)+ ‘;’ +

    recJobQEntry.Description, -250);

    OutFile.WRITE(txtOutText); //scrivo riga , Write Line

    txtOutText := ‘MESSAGGIO;’;

    OutFile.WRITE(txtOutText); //scrivo riga, Write Line

    OutFile.WRITE(FORMAT(recJobQEntry.”Error Message”,-250)); //scrivo riga

    OutFile.WRITE(FORMAT(recJobQEntry.”Error Message 2″,-250)); //scrivo riga

    OutFile.WRITE(FORMAT(recJobQEntry.”Error Message 3″,-250)); //scrivo riga

    OutFile.WRITE(FORMAT(recJobQEntry.”Error Message 4″,-250)); //scrivo riga

    CLEAR(txtOutText);

    UNTIL recJobQEntry.NEXT = 0;

    END

    ELSE

    BEGIN

    txtOutText:=’Nessun Errore’;

    OutFile.WRITE(txtOutText);

    END;

    OutFile.CLOSE; //chiudofile

    // INVIO EMAIL CON ALLEGATI, SEND MAIL WITH ATTACHMENTS

    ErrorSendEmail(txtFileName_00);

    //RS, NAS01 .en

    CODEUNIT SCHEDULING SAMPLE

    64 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Schedule Codeunit on NAS ( example every 60 minutes)

    “SMTP MAIL Setup” Table with New Fields

    New Fields to insert:

    • Field: File Attachment • Field: Patch Attachment • Field: Receiver Address • Field: VBScript Folder • Field: Receiver Address Log Interface • Field: Error Folder Log • Field: Receiver Warning • Field: Error File Log • Field: Sender Name • Field: Sender Address RUN TABLE AND ENTER DATA IN NEW FIELDS (add fields on your Standard NAV Page)

    File Directory

    • Files are stored in “ \NavisionShared\Log” > you can change by Setup

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 65 Error File Sample“ NavJob20150706_170544” FILE DETAILS

    Design Patterns Wiki: “Think NAV in design patterns&#...

    Tuesday, July 21, 2015 Design Patterns Wiki: “Think NAV in design patterns”

    Design Patterns Wiki https://community.dynamics.com/nav/w/designpatterns

    NAV Design Patterns Repository https://community.dynamics.com/nav/w/designpatterns/105.nav-design-patterns- repository

    Get Involved !!!! https://community.dynamics.com/nav/w/designpatterns/106.get-involved

    You have a pattern that you have used successfully? You have ideas on new patterns? You’ve found some existing design patterns which are used in the product but nobody (except a few) knows how it works, but you find it worth it to explain it for the NAV C/AL

    66 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) developers out there?

    Send your pattern idea to Bogdana Botez as a private message on the community webpage. Once your first pattern is ready, we will review it as a team, and when signed off, you get author permissions on the Wiki site and from then on, you can continue publishing and editing existing patterns. However, only publish on the Wiki materials that we had signed-off (we don’t have moderation capabilities yet, so we count on each author to only make meaningful/agreed changes).

    You and your company also get credit by being mentioned on the pattern and also on our patterns authors page.

    Once you have the idea, writing it down shouldn’t take long. You will be helped by adopting the template that we’ve used.

    Remember the rules

    When handling design patterns, content quality is critical. We are trying our best to only publish content that is correct, relevant and has been reviewed by multiple developers. Therefore, we review and sign-off all patterns before publishing them (except for the videos made prior to 2015). All text content found on this Wiki and on the NAV Team Blog has been through one, usually multiple iterations of review. If you find something to correct, please comment on the pattern or contact Bogdana Botez , and we will review and update it.

    We are working on creating a set of rules, which would help keeping the content clean and the project on the correct track. Find the rules here . https://community.dynamics.com/nav/w/designpatterns/106.get-involved

    Template for writing NAV Design Patterns https://community.dynamics.com/nav/w/designpatterns/107.template-for-writing-nav- design-patterns “ALL” about “Deploying Microsoft Dyna...

    Thursday, July 23, 2015 “ALL” about “Deploying Microsoft Dynamics NAV on Windows Azure”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 67 “Preparing”

    Planning and Preparing https://msdn.microsoft.com/en-us/library/dn271683(v=nav.80).aspx

    Preparing a Microsoft Azure Virtual Machine Image for Microsoft Dynamics NAV https://msdn.microsoft.com/en-us/library/dn271692(v=nav.80).aspx

    Preparing for Deploying Microsoft Dynamics NAV on Windows Azure https://msdn.microsoft.com/en-us/library/dn271686(v=nav.80).aspx

    Scaling the Microsoft Dynamics NAV Network Topology https://msdn.microsoft.com/en-us/library/dn271671(v=nav.80).aspx

    “Deploying”

    Walkthrough: Deploying Microsoft Dynamics NAV on a Microsoft Azure Virtual Machine https://msdn.microsoft.com/en-us/library/dn271695(v=nav.80).aspx

    Deploying Microsoft Dynamics NAV Using the Example Scripts The Example-1VM.ps1 and Example-2VM.ps1 scripts are located in the \WindowsPowerShellScripts\Cloud\HowTo folder on the Microsoft Dynamics NAV installation media (DVD). https://msdn.microsoft.com/en-us/library/dn271679(v=nav.80).aspx

    Deploying and Managing Microsoft Dynamics NAV on Microsoft Azure https://msdn.microsoft.com/en-us/library/dn271710(v=nav.80).aspx

    “How-to”

    How to: Create a Windows Azure Virtual Machine Operating System Image for MicrosoftDynamics NAV https://msdn.microsoft.com/en-us/library/dn169001(v=nav.80).aspx

    How to: Get the Microsoft Azure Image Name https://msdn.microsoft.com/en-us/library/dn271690(v=nav.80).aspx

    How to: Create a Microsoft Azure Virtual Machine Operating System Image for Microsoft Dynamics NAV https://msdn.microsoft.com/en-us/library/dn271689(v=nav.80).aspx

    “Video” …nice Videos by Aleksandar Totovic here:

    How Do I Deploy Microsoft Dynamics NAV 2015 on One Microsoft Azure VM https://msdn.microsoft.com/en-us/dynamics/nav/mt147285

    How Do I Deploy Microsoft Dynamics NAV 2015 on Two Microsoft Azure VMs https://msdn.microsoft.com/en-us/dynamics/nav/mt147286

    With “Powershell”

    68 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) great post by Vjeko here… http://vjeko.com/blog/creating-azure-vm-nav-2015-using-powershell Upgrading to NAV 2015 and automation with Powershell

    Sunday, July 26, 2015 Nice updated pages on MSDN about “Upgrading to NAV 2015 and automation with Powershell Scripts”

    Upgrade

    To upgrade to Microsoft Dynamics NAV 2015, you must complete the following main steps: 1) Convert the database, 2) Upgrade the code, 3) Upgrade the data https://msdn.microsoft.com/en-us/library/dn271649(v=nav.80).aspx

    Convert the database https://msdn.microsoft.com/en-us/library/dn271650(v=nav.80).aspx

    Upgrading the Application Code https://msdn.microsoft.com/en- us/library/dn271652(v=nav.80).aspx

    Comparing and Merging Application Object Source Files https://msdn.microsoft.com/en- us/library/dn789581(v=nav.80).aspx

    Merging Application Objects using the Example Scripts https://msdn.microsoft.com/en- us/library/dn762354(v=nav.80).aspx

    Upgrading the Data https://msdn.microsoft.com/en-us/library/dn271668(v=nav.80).aspx

    Powershell

    Automating the Upgrade Process using Sample Windows PowerShell Scripts https://msdn.microsoft.com/en-us/library/dn414687(v=nav.80).aspx “Power BI”, You are welcome !

    Tuesday, July 28, 2015 “ Power BI is now Generally Available “ with a big list of new features and capabilities. Read from the blog. http:// msft.it/6011BEby7

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 69 “Announcing Power BI general availability coming July 24th”

    http://blogs.msdn.com/b/powerbi/archive/2015/07/10/announcing-power-bi-general- availability-coming-july-24th.aspx#whatsnew

    Power BI “Topics”

    Power BI Desktop, Power BI web authoring and data exploration enhancements, Power BI visuals open source project,Team collaboration and enhanced Excel support, New Power BI mobile app for Android, many other features added.

    About NAV 2015 & Power BI

    PowerBI.com and Microsoft Dynamics NAV 2015

    nice post from NAV Team Blog about NAV and Power BI Integration here : http://blogs.msdn.com/b/nav/archive/2015/03/27/powerbi-com-and-microsoft-dynamics- nav-2015.aspx

    try Power BI now http://powerbi.microsoft.com/?WT.mc_id=Blog_GA_0710

    Power BI Desktop https://powerbi.microsoft.com/desktop

    Power BI Services https://powerbi.microsoft.com/?WT.mc_id=Blog_GA_James Microsoft Dynamics NAV and Windows 10 – Hougaard.com

    Thursday, July 30, 2015 Nice post about “Dynamics NAV and Windows 10” from Hougaard.com

    Source Hougaard.com – Applied Hacking

    70 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) http://www.hougaard.com/microsoft-dynamics-nav-and-windows-10 NAV 2015 Virtual\Hidden Tables

    Thursday, July 30, 2015 If you need to read data from Virtual Tables in NAV 2013 and NAV 2015

    My Best NAV Virtual Tables\Hidden Tables

    NAV Developer Environment

    Buld a new page on virtual table, run page, Filter Records with NAV Filters example : Table Information

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 71 Dynamics NAV 2016 Beta Agreement and Rules

    Monday, August 03, 2015 Dynamics NAV 2016 Beta Agreement and Rules (Limited Beta available for partners)

    NAV 2016 Beta request link: https://connect.microsoft.com/site687/Downloads

    Some people have asked me what the rules \ limitations of using the limited beta; Below some info about Public Limited License rules.

    Agreement & Rules for “Pre-Release Programs” (Microsoft Connect)

    Microsoft Public Limited License “Sample code” without contract license (only Beta Agreemnen), Software is “AS IS” for Testing.

    “Best Practices\Rules” for Confidential Usage (DOGMA) – NO False Identity – NO Sharing info & files with others – NO Photos, Posts & Comments (good & evil) – NO Documents Sharing – NO Copyright & Law violation

    Conditions and Terms https://connect.microsoft.com/terms.aspx

    Community “Conduct” Rules http://www.microsoft.com/communities/conduct/default.mspx

    Enjoy your Beta !

    72 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Script Search for a string in “all tables” of S...

    Tuesday, August 04, 2015

    Good & Fast Script to search for a string in “all tables” of SQL Server Database, very useful with NAV Databases too (to find data FAST in each database\company, no C/AL Code or powershell commands required ) link Script Search for a string in all tables of SQL Server Database (from MSDN Script Center) by Sorna Kumar Muthuraj

    Great. Testing Best Practices

    Friday, August 07, 2015 KSD Consultancy

    There is always trade-off between Quality & Quantity of deliverables.

    Sometimes small Partners don’t want to invest on resources and time for their deliverables to make big profits.

    Sometimes customers are not interested in paying more for their customizations requested, their after they keep investing on recursive fixes for their solutions.

    Sometime requirement is not well aligned with Business Logic and the process keeps refining over the time.

    Which leads to arguments on Product capability and Partner Quality of work.

    Whatsoever may be the reason but before any piece of code is moved to the Production environment should be well tested and accepted by the clients/customers.

    Microsoft recommends the following best practices for designing your application tests:

    • Test code should be kept separate from the code that is being tested. That way, you can release the tested code to a production environment without releasing the test

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 73 code. • Test code should… View original post 238 more words Microsoft Dynamics Community “How-To”, Help Wiki

    Tuesday, August 11, 2015 Nice “How-To” Help Wiki “ to drive & assist” users into Microsoft Dynamics Community.

    “The Six Right Things”: Getting Started

    Thanks for stopping by the Microsoft Dynamics Community, where you can interact with your peers and Microsoft Dynamics experts. You can get answers to your questions by posting questions in the forums, reading informative blog articles, and watching how-to videos. This getting started guide will help you quickly get up-to-speed on how to find answers, ask questions, and share your expertise.

    • Join and sign in with your Microsoft Account • Search the community • Ask a new question • Promote good content • Help Others • Keep the community friendly Source https://community.dynamics.com/w/help

    Welcome & Enjoy ! Are reports a barrier to your upgrade projects? …run clas...

    Wednesday, August 12, 2015 Are reports a barrier to your upgrade projects?

    74 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) ForNAV “Reports Made Easy”: “Reports ForNAV makes it really easy to run reports developed for Microsoft Dynamics NAV in C/SIDE (classic mode) on newer versions requiring the RDLC format”

    The conversion is done rapidly in three simple steps:

    1) EXPORT current reports

    2) CONVERT using Reports ForNAV

    3) IMPORT to new NAV version, compile and run

    Product Links: http://www.fornav.com/ http://www.fornav.com/our-solutions/ http://www.fornav.com/why-choose-reports-fornav/

    Go to Past… go Fast !!

    Sponsor of Directions EMEA 2015, Germany, October 5-7, 2015. Stay Tuned ! Comparing PMBOK® Guide 5th Edition and ISO 21500:2013

    Friday, August 14, 2015 Comparing PMBOK® Guide 5th Edition and ISO 21500:2013

    Very interesting article from sts.ch about core differences between PMI.org & ISO Project Management thinking. sts.ch site http://sts.ch/en/certification

    Download PDF

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 75 http://sts.ch/themes/sts/root/files/7037_EN_Comparing_PMBOK_and_ISO.pdf

    UNI (Ente italiano di normazione): UNI ISO 21500:2013 : “Guida alla gestione dei progetti (project management)” http://store.uni.com/magento-1.4.0.1/index.php/uni-iso-21500- 2013.html Windows 10 and Dynamics NAV, Updated info from NAVTeam

    Sunday, August 23, 2015

    We’ve been validating compatibility between Windows 10 and Dynamics NAV for many months now. Windows 10 became generally available in July, and some of you are eager to start deploying Dynamics NAV on Windows 10.

    Dynamics NAV 2016 will be Windows 10 compatible on release. Look forward to that announcement!

    We expect to resolve any outstanding compatibility issues for Dynamics NAV 2013, Dynamics NAV 2013 R2, Dynamics NAV 2015 in the cumulative updates that we will ship in October.

    Source http://blogs.msdn.com/b/nav/archive/2015/08/20/windows-10-and-dynamics- nav.aspx How to Use “Item Type” for Non-Stock Items | ArcherPoint, Inc.

    Sunday, August 30, 2015 Very useful post by ArcherPoint

    ArcherPoint’s Rick Dill shows how to use one of the least known features in NAV, the “ Item Type” field on the Item Card.

    Source: How to Use “Item Type” for Non-Stock Items | ArcherPoint, Inc.

    76 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) NAV TECH DAYS 2015: My NAV 2016 favorite sessions

    Wednesday, September 02, 2015 NAV TECH DAYS 2015: 19 & 20 November 2015 , Antwerp (Belgium)

    Below “ my NAV 2016 favorite sessions and pre-sessions\workshops” from full program.

    19-11 NAV 2016: Workflow, Dynamics CRM Integration and Events

    “Introduction to working with and implementing new workflows, getting started with Dynamics CRM integration and designing event publishers and subscribers in Dynamics NAV 2016. This session will include a practical example of how to create and extend workflows, extending the out of the box Dynamics CRM integration and using events and other great new features introduced in Dynamics NAV 2016.”

    20-11 NAV 2016:Phone Client/Webclient Enanchement/Windows 10

    “With this release of Dynamics NAV we are bringing your NAV application on all devices. Join us for a tour of the Dynamics NAV 2016 Web client with a new fast and fluid user interface and enhancements to simplicity, productivity and performance. Take a deep dive into the new phone client with its’ rich set of capabilities and support for Windows Phone, iOS and Android. Learn how easily you can develop for one or all form factors, taking advantage of device hardware such as Camera and Location.”

    20-11 NAV 2016: Electronic document management & OCR

    “Microsoft Dynamics NAV 2016 provides seamless integration with OCR, currency exchange rate and document exchange services. You can now capture on devices the invoice received from your vendor and using OCR service and workflow you can

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 77 automate the full process including posting the document. Working with different vendors/customers on different currencies can be tedious but now you can keep your currency exchange rates up-to-date using the currency exchange rate services. Also exchanging documents (PEPPOL format and not only) electronically is one click away using the newly implemented document exchange functionality. After this session, you will learn how to exchange documents electronically with your business partners, receive and process pdf/image invoices through OCR services and keep your currency rates up-to-date and not the least, managing the incoming documents into one single place.”

    19-11 Pre-Session\Workshops NAV ALM using Team Foundation Server

    TFS is a powerful ALM (Application lifecycle management) tool that can support your NAV development projects. Secure your code with history using TFS source control or easily propagate your product to your customer projects. Track bugs and plan your work using TFS work items. Design and manage your test using TFS test manager and even build your fobs using the TFS build system. But how to do this with the NAV development environment that is not integrated with Visual Studio? In this workshop Dynamics NAV MVP Luc van Vugt will show you how to use Team Foundation Server with NAV development. Based on hands-on labs you will learn how to setup and configure TFS to support you’re Dynamics NAV development to support your daily work.

    Working with Powershell & NAV During this workshop, I will make you familiar with PowerShell, and what NAV has to offer within PowerShell. We’ll use the existing commandlets, enhance them, look into the existing PowerShell scripts, learn from them and also enhance them. All with practical and useful examples which we will create during the workshop.

    Full Sessions List http://navtechdays.com/2015/sessions

    Speakers Details http://navtechdays.com/2015/speakers

    Register here: https://navtechdays.com/2015/register

    Source http://navtechdays.com/ Roberto Stefanetti NAV Blog – BILANCIO XBRL NAV 2013

    Friday, September 04, 2015 Questo post descrive brevemente la funzionalità del bilancio XBRL ( eXtensible business reporting language) presente in Microsoft Dynamics NAV 2013 e NAV 2015 (ma anche in versioni precedenti con gestione a forms)

    Source: Roberto Stefanetti NAV Blog – BILANCIO XBRL NAV 2013

    78 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Directions EMEA, NAV 2016 Sessions, October 5-7, 2015

    Saturday, September 05, 2015 NAV2016 – Day 1 Sessions, Mannheim, Germany, October 5-7, 2015

    – Dynamics NAV2016, Works Natively with CRM – Dynamics NAV2016, Application extensibility – Dynamics NAV2016, E-Everything, Document Management & OCR – Dynamics NAV2016, Universal apps for all your devices – Dynamics NAV2016, Workflows out of the box – Dynamics NAV2016, Workflow for developers – Dynamics NAV2016, Finance enhancements – Dynamics NAV2016, RapidStart Test – Dynamics NAV2016, 60 Web client enhancements – Dynamics NAV2016, on Azure SQL – Dynamics NAV2016, Small improvements that make a big difference – Dynamics NAV2016, POWER BI

    Source http://www.directionsemea.com/content/sessions/

    Source http://www.directionsemea.com/ NAV to NAV SQL Fast Data Migration (with dynamic “INSERT ...

    Thursday, September 10, 2015

    SCENARIO

    If you have some old NAV releases and you want to copy data fast from db\company to another db\company (and you don’t want to use Dataport\XMLPort to map each fields ore use Rapid Start Services), you can use SQL “INSERT INTO” statements to transfer data.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 79 TIMESTAMP FIELD ISSUE

    You can’t use a “FULL SQL INSERT INTO * from table to table” statement because we have TIMESTAMP field ISSUE (look at Dynamics Community…more posts about this….) that can’t be copied to Destination Table

    MANUALLY SCRIPTING OBJECTS

    If you can do manually exporting all (or single table) with SQL Script Object generator but I think that my solution can be useful and FAST.

    HOW SYSTEM WORKS

    System extract and pass fields like dynamics parameters to INSERT INTO Statement (es: company, db, fields); system build final INSERT INTO STATEMENT that will be execute and store script that will be execute on custom Table.

    ASSUMPTIONS

    • NB1: TIMESTAMP field in NOT passed, is written automatically by Stored Procedure execution • NB2: “ NO data validation and NAV logic is executing”, only SQL datatype fields mapping is checked • NB3: if you have more fields on Target Database than in Source Database (with “ NOT NULL” restrictions on fields), will be necessary to MAP adjuntives fields on final SQL INSERT STATAMENTS passing 0 or ‘’ (BLANK) values for new fields. OPERATIONAL STEPS

    1) Create Stored Procedure “ CopyTable”

    2) Create e new table “ Tables Migration Config”

    3) Execute Stored Procedure “CopyTable” that write in field “ Exec Script” > After copy and past on Excel on direct SQLQuery window to execute text existing on Exec Script field

    1 ) Create Stored Procedure “ CopyTable”

    “ CopyTable” Stored Procedure

    USE [DB_SQL]

    GO

    /****** Object: StoredProcedure [dbo].[CopyTable] Script Date: 10/09/2015 09:21:45

    80 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) ******/

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    CREATE PROCEDURE [dbo].[CopyTable]

    — Input parameters

    @inputSourceDatabase varchar(100),

    @inputDestDatabase varchar(100),

    @inputSourceTableName varchar(100),

    @inputDestTableName varchar(100)

    AS

    BEGIN

    — SET NOCOUNT ON added to prevent extra result sets from

    — interfering with SELECT statements.

    SET NOCOUNT ON;

    — Declare the variables to store the values returned by FETCH.

    DECLARE @column_name varchar(100),

    @table_catalog varchar(100),

    @table_schema varchar(100),

    @table_name varchar(100),

    @column_name_2 varchar(100),

    @table_catalog_2 varchar(100),

    @table_schema_2 varchar(100),

    @table_name_2 varchar(100),

    @ResultScript varchar(max),

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 81 @tempTable_name varchar(100),

    @EndResultScript varchar(max),

    @StartResultScript varchar(max),

    @TotalResultScript varchar(max)

    DECLARE Table_cursor CURSOR FOR

    Select [TABLE_CATALOG],[TABLE_SCHEMA],[TABLE_NAME],[COLUMN_NAME] from information_schema.columns

    where

    –table_name = ‘Planet s_r_l_$ZZTEST_TABLE’ AND

    table_name = @inputSourceTableName AND

    column_name <> ‘timestamp’ AND

    TABLE_CATALOG = @inputSourceDatabase

    OPEN Table_cursor;

    SET @StartResultScript = ”

    SET @EndResultScript = ”

    FETCH NEXT FROM Table_cursor

    INTO @table_catalog,@table_schema,@table_name,@column_name;

    — Check @@FETCH_STATUS to see if there are any more rows to fetch.

    WHILE @@FETCH_STATUS = 0

    BEGIN

    SET @ResultScript = CONCAT(@ResultScript,'[‘,@column_name,’],’)

    FETCH NEXT FROM Table_cursor

    INTO @table_catalog,@table_schema,@table_name,@column_name;

    END

    –Creo Parte finale della stringa di esecuzione.

    SET @ResultScript = LEFT(@ResultScript,LEN(@ResultScript)-1)

    SET @EndResultScript =CONCAT(‘) SELECT ‘,@ResultScript, ‘ FROM [‘,

    82 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) @inputSourceTableName,’]’)

    CLOSE Table_cursor;

    DEALLOCATE Table_cursor;

    –Final String building (CONCAT)

    SET @StartResultScript = CONCAT(‘INSERT INTO [‘,@inputDestDatabase,’].[dbo].[‘,@inputDestTableName,’](‘)

    SET @TotalResultScript = CONCAT(@StartResultScript,@ResultScript,@EndResultScript)

    –Verbose Mode

    PRINT @TotalResultScript

    –Execution Statement

    INSERT INTO [Tables Migration Config] ([Source Database],[Dest Database],[Source Table Name],[Dest Table Name], [Exec Script]) values (@inputSourceDatabase,

    @inputDestDatabase ,

    @inputSourceTableName ,

    @inputDestTableName,

    @TotalResultScript)

    END

    2) Create new table “Tables Migration Config”

    /****** Object: Table [dbo].[Tables Migration Config] Script Date: 10/09/2015 09:20:05 ******/

    SET ANSI_NULLS ON

    GO

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 83 SET QUOTED_IDENTIFIER ON

    GO

    SET ANSI_PADDING ON

    GO

    CREATE TABLE [dbo].[Tables Migration Config](

    [timestamp] [timestamp] NOT NULL,

    [Source Database] [varchar](50) NOT NULL,

    [Dest Database] [varchar](50) NOT NULL,

    [Source Table Name] [varchar](100) NOT NULL,

    [Dest Table Name] [varchar](100) NOT NULL,

    [Exec Script] [varchar](max) NOT NULL,

    CONSTRAINT [Table Fields Name$0] PRIMARY KEY CLUSTERED

    (

    [timestamp] ASC

    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [Data Filegroup 1]

    ) ON [Data Filegroup 1] TEXTIMAGE_ON [Data Filegroup 1]

    GO

    SET ANSI_PADDING OFF

    GO

    3) Exec Stored Procedure “ CopyTable” that recover all fields and write to table “ Tables Migration Config”

    USE DB_SQL

    Exec CopyTable ‘SOURCE DB’,’DEST DB’,’Source DB$Customer’,’Destionation DB$Customer’

    Parameters

    • Source DB • Destination DB

    84 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) • Source Table • Destination Table Output is written to video and in table “[Tables Migration Config]” > field “ Exec Script”

    Example of utilization:

    — Connect to DB

    USE DB

    GO

    — Delete all data in table (first launch)

    TRUNCATE TABLE dbo.[Tables Migration Config]

    — Exec Stored Proc “CopyTable”

    Exec CopyTable ‘SOURCE DB’,’DEST DB’,’Source Company$Customer’,’Destionation Company$Customer’

    GO

    –Result on Video (Verbose) and on”EXEC SCRIPT” Field

    INSERT INTO [DEST DB].[dbo].[Destionation Company$Customer]([No_],[Name],[Search Name],[Name 2],[Address],[Address 2],[City],[Contact],

    [Phone No_],[Telex No_],[Our Account No_],[Territory Code],[Global Dimension 1 Code],[Global Dimension 2 Code],[Chain Name],

    [Budgeted Amount],[Credit Limit (LCY)],[Customer Posting Group],[Currency Code],[Customer Price Group],[Language Code],

    [Statistics Group],[Payment Terms Code],[Fin_ Charge Terms Code],[Salesperson Code],[Shipment Method Code],[Shipping Agent Code],

    [Place of Export],[Invoice Disc_ Code],[Customer Disc_ Group],[Country_Region Code],[Collection Method],[Amount],[Blocked],

    [Invoice Copies],[Last Statement No_],[Print Statements],[Bill-to Customer No_],[Priority],[Payment Method Code],

    [Last Date Modified],[Application Method],[Prices Including VAT],[Location Code],[Fax No_],[Telex Answer Back],

    [VAT Registration No_],[Combine Shipments],[Gen_ Bus_ Posting Group],[Picture],[Post Code],[County],[E-Mail],

    [Home Page],[Reminder Terms Code],[No_ Series],[Tax Area Code],[Tax Liable],[VAT Bus_ Posting Group],[Reserve],

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 85 [Block Payment Tolerance],[IC Partner Code],[Prepayment %],[Primary Contact No_],[Responsibility Center],

    [Shipping Advice],[Shipping Time],[Shipping Agent Service Code],[Service Zone Code],[Allow Line Disc_],[Base Calendar Code],

    [Copy Sell-to Addr_ to Qte From],[Int_ on Arrears Code],[Fiscal Code],[Cumulative Bank Receipts],[Banca di Sconto])

    SELECT [No_],[Name],[Search Name],[Name 2],[Address],[Address 2],[City],[Contact],[Phone No_],[Telex No_],[Our Account No_],

    [Territory Code],[Global Dimension 1 Code],[Global Dimension 2 Code],[Chain Name],[Budgeted Amount],[Credit Limit (LCY)],

    [Customer Posting Group],[Currency Code],[Customer Price Group],[Language Code],[Statistics Group],[Payment Terms Code],

    [Fin_ Charge Terms Code],[Salesperson Code],[Shipment Method Code],[Shipping Agent Code],[Place of Export],[Invoice Disc_ Code],

    [Customer Disc_ Group],[Country_Region Code],[Collection Method],[Amount],[Blocked],[Invoice Copies],[Last Statement No_],

    [Print Statements],[Bill-to Customer No_],[Priority],[Payment Method Code],[Last Date Modified],[Application Method],

    [Prices Including VAT],[Location Code],[Fax No_],[Telex Answer Back],[VAT Registration No_],[Combine Shipments],

    [Gen_ Bus_ Posting Group],[Picture],[Post Code],[County],[E-Mail],[Home Page],[Reminder Terms Code],

    [No_ Series],[Tax Area Code],[Tax Liable],[VAT Bus_ Posting Group],[Reserve],[Block Payment Tolerance],

    [IC Partner Code],[Prepayment %],[Primary Contact No_],[Responsibility Center],[Shipping Advice],[Shipping Time],

    [Shipping Agent Service Code],[Service Zone Code],[Allow Line Disc_],[Base Calendar Code],[Copy Sell-to Addr_ to Qte From],

    [Int_ on Arrears Code],[Fiscal Code],[Cumulative Bank Receipts],[Banca di Sconto] FROM [Source Company$Customer]

    • results are visible in Table with: SELECT * FROM [dbo].[Tables Migration Config]

    MSDN

    • Also published on Scripting GUY Gallery on MSDN NAV to NAV SQL Fast Data Migration (with dynamic “INSERT INTO” STATEMENTS)

    86 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) https://gallery.technet.microsoft.com/NAV-to-NAV-SQL-Fast-Data-4341b7e9#content

    Bingo, You are Welcome ! Connect to remote nav server via administration shell

    Sunday, September 13, 2015

    Below same links about this feature, powershell is better solution and better way to administer remote NAV servers.

    How to: Administer Multiple Microsoft Dynamics NAV Server Computers msdn.microsoft.com/…/hh165307(v=nav.80).aspx

    How to: Administer a Remote Microsoft Dynamics NAV Server Computer msdn.microsoft.com/…/hh165488(v=nav.80).aspx

    How to: Run the Sync-NAVTenant Cmdlet to Synchronize the Tenant Database with the Application Database msdn.microsoft.com/…/dn757126(v=nav.80).aspx

    Coffee Break – Windows PowerShell Remoting http://blogs.msdn.com/b/nav/archive/2015/03/18/coffee-break-windows-powershell- remoting.aspx

    Importing objects in a multi tenancy environment blogs.msdn.com/…/importing-objects-in-a-multi-tenancy-environment.aspx

    Coffee Break | Windows PowerShell and Piping blogs.msdn.com/…/coffee-break-piping.aspx

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 87 BOOST NAV – How to show most 50 heavy queries on SQL SERVER

    Friday, September 18, 2015

    BOOST NAV – How to show most 50 heavy queries on SQL SERVER

    … very nice SQL Script to discover slow Sessions !!

    SQL SCRIPT

    SELECT TOP 50 SUBSTRING ( qt . TEXT , ( qs . statement_start_offset / 2 )+ 1 ,

    (( CASE qs . statement_end_offset

    WHEN – 1 THEN DATALENGTH ( qt . TEXT )

    ELSE qs . statement_end_offset

    END – qs . statement_start_offset )/ 2 )+ 1 ),

    qs . execution_count ,

    qs . total_logical_reads , qs . last_logical_reads ,

    qs . total_logical_writes , qs . last_logical_writes ,

    qs . total_worker_time ,

    qs . last_worker_time ,

    qs . total_elapsed_time / 1000000 total_elapsed_time_in_S ,

    qs . last_elapsed_time / 1000000 last_elapsed_time_in_S ,

    88 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) qs . last_execution_time , qp . query_plan

    FROM sys . dm_exec_query_stats qs

    CROSS APPLY sys . dm_exec_sql_text ( qs . sql_handle ) qt

    CROSS APPLY sys . dm_exec_query_plan ( qs . plan_handle ) qp

    ORDER BY qs . total_logical_reads DESC /* logical reads */

    /* ORDER BY qs.total_logical_writes DESC — logical writes

    ORDER BY qs.total_worker_time DESC — CPU time */

    You are Welcome ! Automate backup on SQL Express and Send Mail Powershell Script

    Tuesday, September 22, 2015

    Sql Server Backup Automation and send-email Solution to automate backup on SQL Express and send mail based on first Microsoft SQL BackupScript “sp_SQLBackupDatabases”

    Scheduling NB: SQL Server Agent “is not available” on this SQL release You can schedule jobs with standard “Windows Jobs“ !

    How System Works: 3 Objectsd based procedure: 1) batch file > SQL-Backup.bat (Execute ALL Procedure) 2) backup procedure > SP_SQLBackupDatabase.sql (original Microsoft SQL Backup Script) 3) Send mail > Send-email.ps1 (a send email routine based on Powershell Script)

    Example: sqlcmd -U sa -P xxxx -S .\SQL2012EXPRESS -Q “EXEC sp_SQLBackupDatabases @backupLocation = ‘C:\SQLBackups\’, @backupType = ‘F’”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 89 Original Microsoft Solution: https://support.microsoft.com/en-us/kb/2019698

    MSDN Post Link https://gallery.technet.microsoft.com/Automate-backup-on-SQL- 21eb452d Download link https://gallery.technet.microsoft.com/Automate-backup-on-SQL- 21eb452d/file/142818/1/SQL-BackupEmail.zip NAV 2015 Basic Flowsheets for dummies (ITA)

    Thursday, September 24, 2015 Below some NAV 2015 Basic Flowsheets (ITA) … only simple and basic mental schema for newbies (and dummies…)

    Flowsheets Topics

    • CRM Nav • Service • Sales & Shipments • Purchase & Receiving • Manufacturing CMR Nav

    Service

    Sales & Shipments

    90 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Purchase & Receiving

    Manufacturing

    also on TechNet http://social.technet.microsoft.com/wiki/contents/articles/32277.nav- 2015-basic-flowsheets-for-dummies-it-it.aspx

    …you are welcome ! Top 10 SQL Server Counters for Monitoring SQL Server Performance — ...

    Monday, September 28, 2015 Greg Larsen lists his top 10 SQL Server counters for maintaining database performance.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 91 Sorgente: Top 10 SQL Server Counters for Monitoring SQL Server Performance — DatabaseJournal.com

    Great post by Greg Larsen. NAV 2015 Order Planning vs Production forecast

    Tuesday, September 29, 2015 NAV 2015 Order Planning vs Production forecast

    Is Dynamics NAV order planning function consider production forecast figures when plan ? …

    “No, By Design.”

    …good question posted on Dynamics Community Forum “In order planning you can plan based on actual demands that are Production demand, Sales demand, Service demand, Job demand & Assembly demand. As the name of the page says “Order planning” is does not include production forecast.

    Whereas you have an option to include production plan if you want to include it in material planning.

    One more difference between order planning and planning w/s is that order planning suggests planning for one level (low level code) only, of more then one low levels are involved then you will need to re run the order planning and plan for next low level code. Whereas planning w/s considers all low levels associated to create an item.”

    MSDN Links: msdn.microsoft.com/…/hh173661%28v=nav.70%29.aspx msdn.microsoft.com/…/hh173804%28v=nav.70%29.aspx

    link on Dynamics Community NAV Forum by Ishan Patel

    https://community.dynamics.com/nav/f/34/t/174668

    92 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Announcing the General Availability of Microsoft Dynamics NAV 2016

    Monday, October 05, 2015 Announcing the General Availability of Microsoft Dynamics NAV 2016

    New capabilities in Microsoft Dynamics NAV 2016 will help SMBs:

    • Enable mobile workers on any device with new streamlined, easy-to-use native apps for all form factors of devices – phones, tablets, and mouse and keyboard – running Android, iOS, or Windows. • Increase business insight with pre-built Microsoft Power BI dashboards and data connections that give teams instant access to key performance indicators in an intuitive, easy to use environment designed for secure collaboration. • Grow sales, improve customer service, and streamline order-to cash-processes through native integration with Microsoft Dynamics CRM Online . • Take advantage of enterprise class scalability, security, and availability in the cloud with the new option to deploy Microsoft Dynamics NAV on Microsoft Azure SQL Database , Microsoft’s industry-leading database-as-a-service in the cloud offering. • Digitize their businesses with expanded document management, workflow, and Optical Character Recognition (OCR) capabilities designed to help SMBs automate processes and eliminate paper-based transactions Download links http://go.microsoft.com/FwLink/?LinkId=518341 https://mbs.microsoft.com/partnersource/northamerica/deployment/downloads/product- releases/msdnav2016download • Tap into the power of the cloud more easily with expanded extensibility and connectivity capabilities to help customers and partners more easily integrate Microsoft Dynamics NAV with other cloud-based services.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 93 Source NAV team blog https://blogs.msdn.microsoft.com/nav/2015/10/05/ga-microsoft- dynamics-nav-2016/

    My Video On Youtube NAV 2016 on Microsoft Dynamics Learning Portal (DLP) for Partners

    Wednesday, October 07, 2015 NAV 2016 What’s new on Microsoft Dynamics Learning Portal (DLP) for Partners

    Many Topics about NAV 2016

    • Usability Enanchement • Finance Enanchement • Workflow • E-Everything • Power BI • Works Natively with CRM • Works Natively with Azure • Extensions • Test automation suite • Windows 10 Universal App DLP Link https://mbspartner.microsoft.com/NAV/WhatsNew/Overview NAV 2016 MSDN Business Functionality Landing Page and Workflow

    Friday, October 09, 2015 NAV 2016 Business Functionality Landing Page (Microsoft Definition)

    “To support your department-specific tasks, you can use a variety of general business functionality, such as Workflow and Office Integration, which is available across two or more departments”

    About Workflow:

    Set up and use workflows that connect tasks performed by different users or by the

    94 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) system, such as automatic posting. Requesting and granting approval to create or post documents are typical workflow steps. Workflow

    SourceBusiness Functionality https://msdn.microsoft.com/en- us/library/hh879076(v=nav.90).aspx

    Workflow “How-To” (Microsoft Definition)

    In the Workflow window, you create a workflow by listing the involved steps on the lines. Each step consists of a workflow event, moderated by event conditions, and a workflow response, moderated by response options. You define workflow steps by filling fields on workflow lines from fixed lists of event and response values representing scenarios that are supported by the application code.

    The generic version of Microsoft Dynamics NAV includes a number of preconfigured workflows, listed in the Workflow Templates window, that you can copy to create workflows. The codes for workflow templates that are added by Microsoft are prefixed with “MS-“.

    If a business scenario requires a workflow event or response that is not supported, a Microsoft partner must implement them by customizing the application code.

    Note The Document Approvals feature that existed in the previous version of Microsoft Dynamics NAV is removed. The standard approvals scenarios that were supported in the previous version are now supported as workflows for sales approvals and purchase approvals respectively. The upgrade tool will recreate document approval data in previous versions as workflow data in Microsoft Dynamics NAV 2016.

    Source: NAV 2016 on MSDN Online https://msdn.microsoft.com/en-us/library/hh173994(v=nav.90).aspx

    Source: NAV 2016 Workflow landing page https://msdn.microsoft.com/en-us/library/dn892100(v=nav.90).aspx if you are Microsoft Partner you can find others information and document about workflow also on Microsoft Dynamics Learning Portal

    To SeeSet up workflow users, specify how users get notified, and create new workflows. For new workflows for unsupported scenarios, implement the required workflow elements by customizing the application code. Set Up Workflows Enable workflows, act on workflow notifications, including request approvals and approve requests to perform a workflow step. Archive and delete workflows. Use Workflows “How do I” – Microsoft Dynamics NAV 2...

    Friday, October 09, 2015 “How do I” – Microsoft Dynamics NAV 2016 Videos on MDLN for Partners

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 95 Videos land page link https://mbspartner.microsoft.com/NAV/Videos

    Available NAV 2016 Videos List:

    How Do I: Automate the Daily Test Execution in Microsoft Dynamics NAV 2016?

    How Do I: Create and Use Workflow in Microsoft Dynamics NAV 2016

    How Do I: Design Pages for Use on All Devices in Microsoft Dynamics NAV 2016?

    How Do I: Get Started with the Universal App in Microsoft Dynamics NAV 2016?

    How Do I: Integrate CRM in Microsoft Dynamics NAV 2016?

    How Do I: Make Sure my Development Doesn’t Break Existing Functionality in Microsoft Dynamics NAV 2016?

    How Do I: Create New Tenants in Microsoft Dynamics NAV Management Portal

    How Do I: Create an Extension Package in Microsoft Dynamics NAV 2016

    How Do I: Deploy and Manage Extensions in Microsoft Dynamics NAV 2016

    How Do I: Develop Using a Device Camera and Location in Microsoft Dynamics NAV 2016?

    How Do I: Implement Deep-Linking to Pages or Records in Microsoft Dynamics NAV 2016?

    How Do I: Integrate Microsoft Dynamics CRM in Microsoft Dynamics NAV 2016?

    How Do I: Perform a Two-Person Approval for Printing Checks with Microsoft Dynamics NAV 2016?

    How Do I: Implement Deep-Linking to Pages or Records in Microsoft Dynamics NAV 2016? NAV 2016 TESTING WORKFLOW

    Sunday, October 11, 2015 NAV 2016 TESTING WORKFLOW

    96 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) … IS NOT A GUIDE !!! … only some tests about this GREAT feature !

    Some Workflow definitions directly from “ Microsoft”:

    WORKFLOW SCOPE\PURPOSE

    • “…. Workflow enable you to model real-life business processes • Workflow is defined as the movement of documents or task through a work process • Adopting workflow as a developer requires a move from functional code to “ When- Then” thinking …. ” MY SIMPLE AND LIMITED NAV 2016 WORKFLOW & NOTIFICATION SCHEMA MENTAL FLOW

    WORKFLOW “TOPICS”

    • Topics are: Workflow Templates & Designer, Workflow Model & Architecture, Approval & Notification Model, Workflow User Group Events, Responses, Workflows & Templates

    Event & Response

    • Event : a NAV event subscription or action , implemented in C/AL and registered in Workflow library • Response : implementation in C/AL of a response Workflow:

    • Workflow: a collection of one or more events/response pairs , designed and managed through the Workflow Designer • Workflow Template: A mechanism to deliver workflow processes to a NAV System Event:IS NOT a workflow (is an event of Workflow…)

    • Workflow offer a higher degree of configurability and are managed by workflow designer • Event is not multi steps operation Workflow Response Model

    • When Event • On Condition • Then Response (Multi-line events responses) WORKFLOW TEMPLATES

    • Workflow template is a “ Worflow ready to use” with some different steps

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 97 • You can Copy from an existing workflow to build a new one • You can define also new workflow elements (subscribers & responses objects)

    Example of Simple Workflow

    • MS-POAPW à Purchase Order Approval Workflow • This Workflow is composed by some Steps ( Event, Condition, Response ) SIMPLE WORKFLOW – ITALY screen

    For Each single workflow,you can define:

    Events

    • Master or indented event (with level) Condition

    • Set of simple\complex condition • Define an “Entry point” Responses

    • You can define a single or multi- lines response events for each one-event Worflow line. Sample of Response Definition W1 Screen

    98 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Workflow Responses List

    • You can see all existing response events from this list ITA Screen

    Target Page & Custom Link

    • Is possible to define different options for Workflow Responses; for example is possibile to choose a page or hyperlink instead of standard execution. Edit Response W1 Screen

    COPY FROM EXISTING TEMPLATE

    • You can create a new workflow copying from an existing and “ready to go” workflow

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 99 NEW WORKFLOW FROM MODEL

    EXAMPLE OF NEW WORKFLOW: POST_PO (Post Purchase Order)

    • Sample workflow with some sample steps instances

    WORKFLOW EVENTS\RESPONSE COMBINATION

    WORKFLOW EVENTS GERARCHY

    100 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) • Matrix for Events\Response mapping

    WORKFLOW TABLES RELATIONS

    CORE WORKFLOW & APPROVAL MANAGEMENT CODEUNITS

    • Codeunit 1501 Workflow Management • Codeunit 1502 Workflow Setup • Codeunit 1520 Workflow Event Handling • Codeunit 1521 Workflow Response Handling Main Workflow Functions (Events, Response Model)

    • CreateEventsLibrary() • CreateResponsesLibrary() • ExecuteResponse() Approval Management Codeunit ( apart of workflow)

    • Codeunit 1535 Approval Management Codeunit … IS NOT A GUIDE !!! … only some tests about this GREAT feature !

    Read NAV 2016 Help on MSDN (and How Do I Videos) for ALL Information about workflow:

    NAV 2016 What’s New !! https://msdn.microsoft.com/en-us/library/hh173994(v=nav.90).aspx

    WORKFLOW LANDING PAGE: https://msdn.microsoft.com/en-us/library/dn892100(v=nav.90).aspx

    How Do I: Create and use Workflow in Microsoft Dynamics NAV 2016 https://www.youtube.com/watch?v=tc5vmUZ1N10

    Walkthrough: Implementing New Workflow Events and Responses

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 101 https://msdn.microsoft.com/en-us/library/mt574349(v=nav.90).aspx

    Walkthrough: Publishing, Raising, and Subcribing to an Event in Microsoft Dynamics NAV

    https://msdn.microsoft.com/en-us/library/mt299404(v=nav.90).aspx

    What is new in Dynamics NAV 2016- Workflow

    This video explores the new Worklfow functionality in Microsoft Dynamics NAV 2016

    …..look also on NAV COMMUNITY FORUM ..many topics about this feature.

    My Video –Dynamics NAV 2016 Workflow NAV 2016 TESTING NOTIFICATION SYSTEM

    Monday, October 12, 2015 “ Something about NAV 2016 Notification system”

    BEST IMPROVEMENTS

    • Approvals: Approval Groups, Auto Delegation, Pool of approvers, Skipping Sequence • Notifications: part of workflow system, notification Scheduling • FULL Integrated Solutions between Workflow & Notification System … IS NOT A GUIDE!!

    You can find ALL detailed information on MSDN:

    “How-to” Manage Notifications Templates

    https://msdn.microsoft.com/en-us/library/hh179441(v=nav.90).aspx

    Setting Up Workflow Notifications

    https://msdn.microsoft.com/en-us/library/dn951472(v=nav.90).aspx

    Walkthrough: Setting Up and Using a Purchase Approval Workflow

    https://msdn.microsoft.com/en-us/library/dd338778(v=nav.90).aspx

    NAV 2016 NOTIFICATION MENTAL SCHEMA

    102 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) NOTIFICATIONS MENU’ ELEMENTS

    DOCUMENT APPROVAL MENU’ ELEMENTS

    ACTIVATE JOBQUEUE TO SEND NOTIFICATIONS

    • For send notifications you need to activate “notification manager” passing MAILNOTIFY parameter to Job queue (in this case NAS runs on my NAV Session,

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 103 not n NAS Background Session)

    NOTIFICATIONS SETUP AND SCHEDULING

    • Define “ How to” notification system works: assigning notification template and notification scheduling typology (ex: Polling, Batch execution)

    NOTIFICATIONS TEMPLATES

    You can define notifications Delivery Model: “Two types” of notifications

    • E-mail • Note

    IMPORT NOTIFICATION TEMPLATE

    • You can Import\Export an existing notification template

    SCHEDULING MODEL

    You can define a detailed notification schedule model:

    104 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) • Instantly • Daily • Weekly • Monthly In this example > Weekly Scheduling at 12.00 AM

    “Coming soon” new E-learning courses on DLP

    Tuesday, October 13, 2015 “Coming soon” new E-learning courses on DLP

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 105 Microsoft Dynamics NAV 2016 Data & Code Upgrade – Coming soon Microsoft Dynamics NAV 2016 Cloud for Business – Technical – Coming soon Microsoft Dynamics NAV 2016 Cloud for Business – PreSales – Coming soon Microsoft Dynamics NAV 2016 Relationship Management – Coming soon Microsoft Dynamics NAV 2016 Finance Essentials – Coming soon Microsoft Dynamics NAV 2016 Finance Advanced – Coming soon Microsoft Dynamics NAV 2016 Development Environment – Coming soon Microsoft Dynamics NAV 2016 Installation & Configuration – Coming soon Microsoft Dynamics NAV 2016 Development Introduction – Coming soon Microsoft Dynamics NAV 2016 Application Setup – Coming soon Microsoft Dynamics NAV 2016 Advanced Functionality – Coming soon Microsoft Dynamics NAV 2016 Tips & Tricks for NAV with SQL/Azure – Coming soon SQL Sessions Killer 2.0

    Tuesday, October 13, 2015 SQL Sessions Killer 2.0 If you have some issues about “ there are no more NAV license availables.. you can’t login” and issues seem caused by multiple sessions consumed by NAS and NAV Users (user with multilple logins not closed etc..), you can create and schedule these SQL stored procedure to kill inactive NAS & Inactive Users Sessions. Kill SQL stored procedures : – SP_SQL_KillNavServerSession – SP_SQL_KillNoNavSession Warning ! check your case before use this solution ! ..may be unnecessary. SP_SQL_KillNavServerSession USE [master] GO

    106 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) /****** Object: StoredProcedure [dbo].[SP_SQL_KillNavServerSession] */ /* Script Date: 13/10/2015 15:06:43 by RS******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO — ======— Author: Roberto Stefanetti — Create date: 13/10/2015 — Description: KILL ALL NAV ACTIVE USER SESSSIONS WITH MULTIPLE INSTANCES, KEEP THE FIRST — ======ALTER PROCEDURE [dbo].[SP_SQL_KillNavServerSession] AS BEGIN DECLARE @RowIndex AS INT; DECLARE @MaxIndex AS INT; —————————- SET @RowIndex = 1; SELECT @MaxIndex = (SELECT top 1 MIN([Session ID]) FROM [DB].[dbo].[Active Session] WHERE [User ID] = ‘DOMAIN\USER’ (example NAV Service User) group by [Session ID]) — Remove Active Session DELETE FROM [DB].[dbo].[Active Session] where [Session ID]>@MaxIndex AND [User ID] = ‘DOMAIN\USER’ (example NAV Service User) END SP_SQL_KillNoNavSession USE [master] GO /****** Object: StoredProcedure [dbo].[SP_SQL_KillNoNavSession] */ /* Script Date: 13/10/2015 15:13:40 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO — ======— Author: Roberto Stefanetti, Repacked from Opensource MSDN Published Script — Create date: 13-10-2015 — Description: Kill No Nav Sessions sleeping (example sleep for 15 minutes, with0 Open transactions) — ======ALTER PROCEDURE [dbo].[SP_SQL_KillNoNavSession] AS BEGIN DECLARE @Session TABLE ( id INT IDENTITY(1,1) PRIMARY KEY, [sid] int, ltime DATETIME, hname varchar(MAX), uid varchar(100), lret datetime, etime int ); DECLARE @NotAffectedUserList TABLE ( id INT IDENTITY(1,1) PRIMARY KEY,

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 107 [uid] varchar(MAX) ); DECLARE @session_time as int; DECLARE @vSID as int; DECLARE @command as varchar(MAX); DECLARE @RowIndex AS INT; DECLARE @MaxIndex AS INT; —————————- set @session_time=15; — assign session time permitted (example 15 minute) — Assign List of Users who WILL NOT BE affected by this SESSION KILL — <> USERS > EXCLUSION LIST INSERT into @NotAffectedUserList SELECT ‘sa’ INSERT into @NotAffectedUserList SELECT ‘intranet_service’ INSERT into @NotAffectedUserList SELECT ‘NT AUTHORITY\SERVIZIO DI RETE’ INSERT into @NotAffectedUserList SELECT ‘NT AUTHORITY\SYSTEM’ INSERT into @NotAffectedUserList SELECT ‘NASJob’ INSERT into @NotAffectedUserList SELECT ‘NAVSRV’ … etc. etc. etc. INSERT into @Session SELECT session_id as [Session ID], login_time as [Login Time], host_name as [Host Name], LOGIN_NAME as [Login ID], last_request_end_time as [Last Request End Time], DATEDIFF(minute, last_request_end_time,getdate()) as[Elapsed Time (minutes)] FROM sys.dm_exec_sessions –read from SQL Server running sessions WHERE open_transaction_count = 0 — Only open transactions > COUNT = 0 AND host_name <> ‘NAVSRV’ COLLATE Latin1_General_CI_AS –> example filter SERVER NAME <> NAV SERVERS (NAVSRV) AND host_name is not NULL AND DATEDIFF(minute, last_request_end_time,getdate())>=@session_time –AND client_version=4 AND login_name COLLATE Latin1_General_CI_AS not in ( SELECT DISTINCT uid FROM @NotAffectedUserList ) SET @RowIndex = 1; SELECT @MaxIndex = MAX(id) FROM @Session; WHILE( @RowIndex <= @MaxIndex) BEGIN SELECT @vSID = sid FROM @Session WHERE id = @RowIndex; — String together the KILL statement SELECT @command = ‘KILL ‘ + CAST(@vSID AS varchar(5)) — KILL SESSION BEGIN TRY — Execute the final string to KILL the spids EXEC (@command) END TRY BEGIN CATCH declare @emsg varchar(500); SELECT @emsg=ERROR_MESSAGE(); print @emsg; END CATCH SET @RowIndex = @RowIndex + 1; END; END

    108 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Saurav Dhyani – Microsoft Dynamics Navision: Microsoft Dy...

    Tuesday, October 13, 2015 Source: Saurav Dhyani – Microsoft Dynamics Navision: Microsoft Dynamics NAV 2016 – Articles From Other Great Bloggers.

    Hi All, As most of know that there are so many news being shared now a days for Microsoft Dynamics NAV 2016 on the Internet. Below is the summary of Websites where you can read everyone views whom I am already following for Microsoft Dynamics NAV 2016. Go Visit below Blogs to read others views and new information available. Do let me know if I missed someone.

    Waldo’s Blog Vjeko Blog Totovic Blog Magno’s Blog ArcherPoint Blog Kauffmann Blog Hougaard Blog Kulla’s NAV Blog Mohana’s Blog Ashwini Tripathi Blog Tharanga N. Chandrasekara Blog Soren Skov Klemmensen Roberto Stefanetti Blog “Tryerp.net” – DYNAMICS ERP 7 Days trial license release

    Thursday, October 15, 2015 “Tryerp.net” – DYNAMICS ERP 7 Days trial license release

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 109 https://www.tryerp.net/default.aspx

    • Seleziona la soluzione adatta (ex: ERP DYNAMICS NAV 2016) • Registrati ( Register) • Scarica ( Download) • Prova per 7 giorni ( try 7 days full product license available) Have fun ! Office Online vs. Office 365: What’s free, what’s not, and what you...

    Monday, October 19, 2015 “Free Office Online is a great deal, but paying for an Office 365 subscription gives you some hard-to-beat perks. We’ll help you decide which way to go.”

    Sorgente: Office Online vs. Office 365: What’s free, what’s not, and what you really need | PCWorld

    Great Post by Tony Bradley ! Azure “GoUp and Goto Sleep” Maintenance Scripts

    Tuesday, October 20, 2015 Azure “GoUp and Goto Sleep” Maintenance Scripts Below two simple scripts to Startup & Shutdown Azure Virtual Machines; you can use these samples scripts with “Azure Scheduler Agent” to reduce costs using “ pay for use” Azure subscriptions. ** STARTUP VM ** workflow startup-vm { $Cred = Get-AutomationPSCredential -Name ‘My Scheduler’ Add-AzureAccount -Credential $CredInlineScript {

    Select-AzureSubscription -SubscriptionName “My Subscription Name”

    $VMS = Get-AzureVM

    110 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) foreach($VM in $VMS) { $VMName = $VM.Name Start-AzureVM -ServiceName $VM.ServiceName -Name $VM.Name Write-Output “Shutting down VM : $VMName ” } } } ** SHUTDOWN VM ** workflow shutdown-vm { $Cred = Get-AutomationPSCredential -Name ‘My Scheduler’ Add-AzureAccount -Credential $CredInlineScript {

    Select-AzureSubscription -SubscriptionName “My Subscription Name”

    $VMS = Get-AzureVM

    foreach($VM in $VMS) { $VMName = $VM.Name Stop-AzureVM -ServiceName $VM.ServiceName -Name $VM.Name -Force Write-Output “Shutting down VM : $VMName ” } } } you are welcome ! Roberto Stefanetti on MS Dynamics NAV Guru

    Wednesday, October 21, 2015

    MS Dynamics NAV Guru “A Tribute to all Dynamics NAV Gurus like MVPs and Others” …nice blogs aggregator!!! Blog http://msdynamicsnav.guru

    My Page http://msdynamicsnav.guru/wp/category/roberto-stefanetti

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 111 Powershell Script to create a “Self-Signed Certificate” that works ...

    Thursday, October 22, 2015 Roberto Stefanetti NAV Blog

    Powershell Script to create a “Self-Signed Certificate” that works on Dynamics NAV Ipad APP

    PURPOSE

    Automatedscripts (with Powershell) to create aself-signed certificate usable for Dynamics NAV App on Ipad (if you haven’t a Real Commercial Verified Certificate)

    This “ Powershellautomation Script” is based on manual procedure existing in this post “How to get Microsoft Dynamics NAV for tablets to connect using a self-signed certificate” by NAV Team Blog and also based on some scripts by Duilio Tacconi of Microsoft Support Emea. http://blogs.msdn.com/b/nav/archive/2014/10/09/how-to-get-microsoft- dynamics-nav-for-tablets-to-connect-using-a-self-signed-certificate.aspx

    STEP1:REQUIREMENTSFOR USE PRE-USE CERTIFICATE “SELF-SIGNED” – Best Practice Microsoft suggest to use a valid certificate (ex: Purchased from Verisign) – Suggested (but not mandatory) is to install at least the cumulative NAV Update 8 2015 (CU8), it needs to use better management of self-signed certificate (unofficial, not from Vendor).

    STEP2:ELIMINATIONOF CERTIIFICATES NOT ALREADY WORKING AND IMPORTED ON…

    View original post 339 more words

    112 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Announcing the Microsoft Dynamics NAV Universal App (Dynamics NAV v...

    Thursday, October 22, 2015 Sorgente: Announcing the Microsoft Dynamics NAV Universal App (Dynamics NAV v2.0) | Dynamics NAV Team Blog “Save money replacing reports with cues or filtered lists...

    Saturday, October 24, 2015 … nice post by Peik ! … it’s also my core philosophy during training sessions… “use CUE and Filteres Lists (and multiple NAV Views!)” instead of lot of reports!

    …new Peik’s book is coming soon: “ RoleTailoring Microsoft Dynamics NAV”

    Source: Save money replacing reports with cues or filtered lists in Dynamics NAV – Aphorisms about Microsoft Dynamics NAV TryFunction – .NET Exception Handling in C/AL

    Tuesday, October 27, 2015 Abstract

    “When there is a need to use .NET classes within C/AL, one of the main challenges is to handle the exceptions the methods of these .NET classes may throw. Eventually, if not handled, they will basically bubble up as runtime errors, halting the current operation a user is doing without having a chance to properly display errors in a user-friendly format”

    Source: https://community.dynamics.com/nav/w/designpatterns/244.tryfunction-net- exception-handling-in-cal

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 113 by Mostafa Balat, Microsoft Development Center Copenhagen Publish, Raise and Subscribe

    Tuesday, October 27, 2015 Publish, Raise and Subscribe

    Something about NAV Events (Integration & Business Events)…. Some Definitions of: “Publishers & Subscribers”

    “A publisher” exposes hook-points in code or processes that other partners or sub- systems can leverage. ISVs and Microsoft are the typical providers of published events, but not necessarily the only providers. Ev ents are raised through explicit function calls, or raised implicitlyby the Microsoft Dynamics NAV Runtime.

    “A subscriber” subscribes to and handles events.When an event is raised, the subscription code is automatically called by the runtime. This enables partners to hook into core Microsoft Dynamics NAV functionality without having to do‘classic’ code modification. Any Microsoft Dynamics NAV solution provider, including Microsoft, can use event subscriptions.

    Example new codeunit “80000 My Publisher”

    “Publisher” Event

    > Codeunit 80000 Function [Integration Event] OnItemCodeRenamed(parItem:Code20)

    “Subscribe” Event

    > Codeunit 80000 Functions ErrorItemRenaming(“No.”)

    • EventPublishedObject “Codeunit My Publishers”

    114 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) “Publisher & Subscriber”

    • Void Containers only “to map Events” in events list • Publisher Integration Event > ex. OnItemCodeRenamed(“No.”) • Subscriber EventSubscriber > ex. ErrorItemRemaining(“No.”)

    “Raise Event”

    On Table 27 Item –> No. OnValidate()

    • cdyMyPublisher.OnItemCodeRenamed(“No.”); // Raise Event > Call codeunit function on No. Onvalidate Trigger

    MAPPING EVENTS

    ->“NEW EVENT IS NOW PUBLISHED AND AVAILABLE”; Now “n ew EVENT” is mapped and available to use on EVENT FUNCTIONS LIST

    “Event Function”

    • Example OnItemCodeRenamed(parItemNo:Code20) mapped on EventFunction

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 115 Publisher

    • OnEvaluateField(“No.”) > raising EventFunction “OnBeforeValidateEvent(“No.”)

    “EVENTS SUBSCRIPTIONS LIST”

    • My Custom Codeunit ( raiser) with exposed function is available on subscriptions event list • In this case is: “ Business Event” published from table 27 by OnBeforeValidateEvent Function

    RUNNING (RAISING)

    • Example of raising ERROR(“No.”) function when ErrorItemRemaing() function is running

    … you can find a lot of information aboutNAV Events on NAV team blog and MSDN Online

    -Integration Events in Microsoft Dynamics NAV 2016

    https://blogs.msdn.microsoft.com/nav/2015/10/15/integration-events-in-microsoft-

    116 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) dynamics-nav-2016/

    – Introducing Events -> https://msdn.microsoft.com/en- us/library/mt299398(v=nav.90).aspx

    – Get Starting With Eventing -> https://msdn.microsoft.com/dynamics/nav/mt598589 NAV2016 | (Im) Possibilities with Extensions

    Friday, October 30, 2015 Great Post !

    Mark Brummel Blog | Microsoft Dynamics NAV

    In my previous posts about Extensions in NAV2016 I tried to explain the concept, reasoning and get you started with your own Extension in 5 easy steps.

    1. Getting Started with NAV2016 Extensions 2. Create your own Extension in 5 easy steps 3. Real world examples for Extensions I got a lot of feedback and emails based on these posts. Some about PowerShell and using DotNet interop, some about XMLPort and Reports.

    In this post I will talk more about the current possibilities and limitations and if, how and when these will be lifted.

    In essence this blog is relatively simple. Microsoft already did a great job in documenting these on MSDN.

    1. Extending Microsoft Dynamics NAV Using Extension Packages 2. How to: Create an Extension Package 3. How to: Develop an Extension 4. How to: Publish and Install an Extension 5. Extension Packages Capability Support Matrix The last one is of essence for this blog. The support…

    View original post 858 more words NAV 2016, “ALL” about Events

    Sunday, November 01, 2015 NAV 2016, “ALL” about Events

    Some pages about NAV 2016 Events Technology…

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 117 NAV Team Blog INTEGRATION EVENTS Integration Events in Microsoft Dynamics NAV 2016 https://blogs.msdn.microsoft.com/nav/2015/10/15/integration-events-in-microsoft- dynamics-nav-2016/

    MSDN Online EVENTS

    Events in Microsoft Dynamics NAV https://msdn.microsoft.com/en-us/library/mt299505(v=nav.90).aspx

    This section contains the following topics about events. – Introducing Events – Publishing Events – Raising Events – Subscribing to Events – Debugging Events – Best Practices with Microsoft Dynamics NAV Events – Walkthrough: Publishing, Raising, and Subcribing to an Event in Microsoft Dynamics NAV – Walkthrough: Implementing New Workflow Events and Responses

    EVENT TYPES https://msdn.microsoft.com/en-us/library/mt299406(v=nav.90).aspx

    Microsoft Dynamics NAV supports different types of events for different purposes. This topic describes the following event types: – Business Events – Integration Events – Global Events – Database Trigger Events – Page Trigger Events

    BEST PRACTICES & HOW-TO Best Practices with Microsoft Dynamics NAV Events https://msdn.microsoft.com/en-us/library/mt299402(v=nav.90).aspx

    Walkthrough: Implementing New Workflow Events and Responses https://msdn.microsoft.com/en-us/library/mt574349(v=nav.90).aspx

    Walkthrough: Publishing, Raising, and Subcribing to an Event in Microsoft Dynamics

    118 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) NAV https://msdn.microsoft.com/en-us/library/mt299404(v=nav.90).aspx

    How to: Create Workflows https://msdn.microsoft.com/en-us/library/dn892101(v=nav.90).aspx

    Source NAV Team Blog & MSDN Online Presentations from Directions EMEA 2015 in Mannheim | Directions EMEA

    Monday, November 02, 2015 Sorgente: Presentations from Directions EMEA 2015 in Mannheim | Directions EMEA Learning Dynamics NAV Patterns

    Tuesday, November 03, 2015 Learning Dynamics NAV Patterns new NAV book by Mark Brummel: “Learning Dynamics NAV Patterns”

    “Create solutions that are easy to maintain, quick to upgrade, and follow proven concepts and designs” https://www.packtpub.com/big-data-and-business-intelligence/learning- dynamics-nav-patterns

    “ALL” about NAV C/AL Design Patterns some links about NAV Design Patterns Project…

    “The NAV Design Patterns project that started at Microsoft in July 2012. After a while, we opened up to external C/AL developers, who joined the authors in writing patterns. If you have a pattern proposal, here is what to do. Hoping this work will bring value to you.”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 119 Bogdana Botez drives, from the Microsoft side, an initiative to name and expose reusable design patterns in the NAV application code.

    Pattern Evangelists: – Eric Wauters (Waldo) – Gary Winter – Mark Brummel – Mike Doster – Søren Klemmensen

    Design Patterns Community Page – Wiki https://community.dynamics.com/nav/w/designpatterns

    NAV Design Patterns: Your project now! https://blogs.msdn.microsoft.com/nav/2013/11/13/nav-design-patterns-your-project-now/

    Patterns https://community.dynamics.com/nav/w/designpatterns/105.1-patterns

    Get Involved https://community.dynamics.com/nav/w/designpatterns/106.get-involved

    Template for writing NAV Design Patterns https://community.dynamics.com/nav/w/designpatterns/107.template-for-writing-nav- design-patterns

    Code of conduct https://community.dynamics.com/nav/w/designpatterns/239.rules-of-conduct Related links https://community.dynamics.com/nav/w/designpatterns/118.related-links

    MSDN NAV Team Blog – posts about patterns https://blogs.msdn.microsoft.com/nav/tag/patterns/

    NAV Application Design slides from NAV TechDays conference in Antwerp, 2013 http://mibuso.com/downloads?FileID=1573

    NAV Application Design movie from NAV TechDays conference in Antwerp, 2013 http://mibuso.com/downloads?FileID=1556

    NAV’s Secret Code: Design Patterns of Today and Tomorrow slides from NAV TechDays conference in Antwerp, 2013 http://mibuso.com/downloads?FileID=1568

    Archive PAtterns http://blogs.msdn.com/b/nav/archive/tags/patterns/

    ….be a nav pattern author !!! https://community.dynamics.com/nav/w/designpatterns/106.be-a-nav-pattern-author

    120 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Microsoft Dynamics on YouTube

    Thursday, November 05, 2015 Microsoft Dynamics on YouTube

    “How Do I 2016” Videos on Dynamics Youtube Channel

    Official Dynamics Youtube Channel Page https://www.youtube.com/user/msdyncomm/featured

    Dynamics Videos Section https://www.youtube.com/user/msdyncomm/videos

    NAV 2016 Videos

    > Filter “How Do I 2016” in Dynamics Page https://www.youtube.com/user/msdyncomm/search?query=NAV+2016

    ..and you are welcome !!!

    Some NAV 2016 Videos (“Bold Titles” are my favorites!)

    How Do I: Create and use Workflow in Microsoft Dynamics NAV 2016

    How Do I: Integrate Microsoft Dynamics CRM in Microsoft Dynamics NAV 2016

    How Do I: Work Natively with CRM in Microsoft Dynamics NAV 2016

    How Do I: Use Events in Microsoft Dynamics NAV 2016

    How Do I: Set Up Microsoft Dynamics NAV to Send Electronic Documents

    How Do I: Subscribe to CAL database, Page and System Events in Microsoft Dynamics NAV 2016

    How Do I: Use the Posting Preview in Microsoft Dynamcis NAV 2016

    How Do I: Create and use Incoming Documents in Microsoft Dynamics NAV 2016

    How Do I: Configure and Access the PowerBI.com Cont Package for Microsoft Dynamics NAV 2016

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 121 How Do I: Get Started with the Universal App for Microsoft Dynamics NAV 2016

    How Do I: Develop Using a Device Camera and Location in Microsoft Dynamics NAV 2016

    How Do I: Design pages for Use on all Devices in Microsoft Dynamics NAV 2016

    …also on Linkedin Pulse

    https://www.linkedin.com/pulse/microsoft-dynamics-youtube-roberto- stefanetti?trk=pulse_spock-articles Saurav Dhyani – Microsoft Dynamics Navision: Microsoft Dy...

    Thursday, November 05, 2015 Sorgente: Saurav Dhyani – Microsoft Dynamics Navision: Microsoft Dynamics NAV 2016 – Data Migration. Best news and features about NAV 2016 C/AL code editor

    Thursday, November 12, 2015 Best news and features about NAV 2016 C/AL code editor

    With NAV 2016 have been added these new features:

    • Line numbers & syntax highlighting • Indicators notifications, a yellow line indicates the lines of code that have been changed but not yet saved. After saving the object, the line is green. (Like .VB net, C# Net & SQL Server Editor Technology) • Intellisense wirh autocompletion of code. Intellisense technology greatly simplifies life for developers, which can save time and reduce writing errors.

    122 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) • Undo, The combination of CTRL + Z is now also active in the editor of NAV, allowing you to undo any changes to the code. good. NAV Product Suggestions (by Connect)

    Friday, November 13, 2015 As anticipated at Directions EMEA, Microsoft listens to our requests and as was done for other beta programs time ago (ex: NAV 2009 RTC Beta1.. and SQL Server 2008 Beta), has launched a “ Connect” page dedicated to the collection of requests\suggestionsfor NAV future improvements.

    You can find “NAV Connect” page here: https://connect.microsoft.com/dynamicssuggestions/

    Two tasks are available: 1) Search existing suggestions (Knowledge Base) 2) Insert new suggestions (insert a new one)

    Feedback\Filtering Page ex: Most Voted, My Feedback https://connect.microsoft.com/dynamicssuggestions/Feedback

    ex: my old Personal Dashboard

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 123 enjoy !! Datazen with Dynamics NAV and BI Integrations

    Saturday, November 14, 2015 About Datazen “Microsoft Acquires Datazen, Microsoft accelerates its strategy to help every company create a data culture and ensure insights reach every individual in every organization.” Datazen solution is now available with the latest version of SQL Server 2014 Enterprise (free to use, embedded on SQL Server)

    Datazen Topics KPI Repository For quick, timely insights – Showing the latest values and trends – Related dashboards provide detailed analysis

    BI Dashboards Data visualization and analysis – Interactive visualizations – Detailed analysis and drill-throughs – Perfect scaling to any screen form-factor

    Team Collaboration Stay on top of BI hub activity – Participate in KPI & dashboard conversations – See when new dashboards & KPIs are published – Collaborate on the go from any device

    Single Point of Publishing – Connect to your data sources via the Datazen Publisher app, create dashboard layouts for master, tablet & phone views, then publish to all devices

    124 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) “NB: ALL Content is accessible via the mobile clients, IOS, Windows Phone or Android, and web browsers !! ..great !”

    Datazen is working with NAV ? … sure !! .. you can use NAV “OData” publishing technology to connnect Datazen Server to NAV Server .. you can also use SQL Native (and ODBC) connectors.

    NAV and Datazen Integration

    Excellent presentation of NAV and Datazen Integration during yesterday’s event @ MicrosoftItaly “NAV 2016 What’s New” by SQL MVP Davide Mauri .

    Microsoft “to-be Dashboarding & Mobile BI” Integration Scenario

    Applications Integration “Scope”

    • Reporting Services (Paginated Reports) MAIN REPORTS\DASHBOARDS\KPI OBJECTS REPOSITORY (also on SharePoint if necessary…) • Power BI (Interactive Reports and ETL Scheduling) • Datazen (Mobile reports.dashboard & KPI) • Excel (Power Pivot, Power Query etc. ) Analitycal and charts Links Datazen http://www.datazen.com/

    Datazen Publisher (and Viewer) APS https://www.microsoft.com/it-it/store/apps/datazen-publisher/9wzdncrdkv41

    … nice post here The Future of Power BI Looks Bright! http://www.erpsoftwareblog.com/2015/06/future-power-bi-looks-bright/

    My Video in Youtube NAV 2016 What’s New on My Youtube

    Monday, November 16, 2015 NAV 2016 What’s New

    My first short “Slideshare” about NAV 2016 What’s New on my new YouTube channel.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 125 Subscribe to my channel ! https://www.youtube.com/user/bobilcyb NAV 2016 Word Layout “HOW-TO”

    Monday, November 16, 2015 NAV 2016 Word Layout “HOW-TO”

    Word Layout (WRL) è un tool di NAV per la stampa dei documentiin formato Word, è stato inserito a partire dalla versione 2015 di NAV.

    Si parte da un report di tipo RDLC già esistente oppure da un nuovo report; nel caso di nuovo report i campi devono essere dichiarati sotto il DataItem.

    NB: “Il report deve essere compilato”

    – L’attivazione avviene richiamando una lista denominata “ Selezione Layout Report” che contiene l’elenco di tutti i report dell’applicativo (mapping report type)

    Il campo “ Layout selezionato” viene impostato inizialmente in “ RDLC” e va modificato a seconda delle esigenze richieste.

    Esistono altre due opzioni oltre a quella di default (RDLC): “Layout personalizzato” e Word.

    – La prima opzione permette di creare o modificare il modello direttamente da NAV

    – La seconda (Word) importa il modello senza la possibilità di effettuare modifiche all’interno.

    Una volta effettuato la scelta è possibile passare alla visualizzazione del layout.

    (Cambiamo il tipo da DRLC a Layout personalizzato)

    Una volta impostato il corretto tipo di layout si procedere alla personalizzazione del modello premendo l’apposito bottone “ Layout Personalizzati” posto nella barra multifunzione nella parte superiore della pagina.

    126 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) In questa sessione è possibile importare un layout di Word preesistente(*.docx) scaricando ad esempio un modello da Internet, oppure crearne uno nuovo. Es: Creiamo un “nuovo Layout”

    Selezioniamo un nuovo documento con il tipo layout = Word.

    Una volta creato possiamo passare alla fase di costruzione del nuovo layout.

    – Esempio Nuovo documento word vuoto

    In particolare, nell’etichetta “ Sviluppo” c’è un apposito bottone che permette di evidenziare i campi del DataItem.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 127 In questo caso selezioniamo l’opzione con il nome del DataItem principale.

    I campi dei DataItem solo gli stessi elencati nel programma sorgente e conservano la stessa struttura.

    Proviamo ora a caricare un layout preparato in precedenza:

    128 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Inseriamo un campo di tipo “Immagine” con il logo dell’azienda prendendo il dato dal campo “ Picture” della tabella “ Company Information”.

    Premendo il tasto destro del mouse viene proposto un menù con alcune opzioni.

    Nel nostro caso si potrà scegliere tra Immagine, Testo Normale e Formato RTF

    “ Testo Normale” viene usata per tutti i campi e le variabili di tipo testo o formattate.

    “ Formato RTF” viene utilizzato per campi o variabili di tipo “ Decimal” in modo da poter utilizzare la formattazione standard NAV per quanto riguarda i campi delle tabelle mentre, nel caso di variabili, usando delle apposite funzioni…

    Selezionare l’opzione “ Immagine” e poi “ Inserisci controllo contenuto”.

    Dopo aver inserito i campi della testata passiamo alla gestione delle righe.

    In questo caso occorre dire al sistema che deve gestire un ciclo.

    Posizioniamo il puntatore e selezioniamo tutta la riga dove inseriremo i dati e utilizziamo l’opzione “Ripetuto”. In questo modo viene indicato al sistema che la riga selezionata verrà ripetuta per tutto il contenuto del DataItem.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 129 Word Layout dà la possibilità di creare cicli nidificati.

    Per fare questo occorre creare il primo nodo ….

    E poi quelli contenuti all’interno.

    In questo modo per ogni riga stampata per il DataItem padre verranno stampate una o più righe del sottoinsieme. Naturalmente il tutto dovrà essere fatto rispettando la struttura originale del Report sorgente.

    130 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Inseriamo ora gli altri campi:

    E terminiamo la progettazione del layout.

    In qualsiasi momento è possibile effettuar una stampa di prova selezionando il bottone “Esegui Report”:

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 131 Gestione del piè di pagina finale (FOOTER)

    Word Report Layout non ha una gestione del piè di pagina con funzioni specifiche. La soluzione utilizzata per ovviare a questa mancanza potrebbe essere quella di utilizz are una casella di testo posta in fondo alla pagina con all’interno la struttura e i dati che verranno inseriti solo sull’ultima pagina (vedi esempio).

    Costanti in lingua:

    Non esiste una vera e propria gestione delle costanti in lingua ma è possibile utilizzare delle costanti a programma configurate con le apposite traduzioni oppure utilizzando direttamente le Caption dei campi delle tabelle (es: FIELDCAPTION (nome campo)).

    CASE HISTORY: Inserire nel layout alcune parti condizionati da una scelta iniziale.

    – L’esempio utilizzato è una conferma d’ordine dove, al momento dell’esecuzione può essere scelta la possibilità di stampare o meno il castelletto dell’IVA.

    132 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Con NAV 2009 Classic o versioni precedenti si poteva usare l’opzione “ CurrReport.showoutput” impostata a False o True a seconda, mentre per i report RDLC si può usare una variabile e condizionare la sessione “Visibility”.

    Per quanto riguarda i dati è abbastanza semplice perché basta fare in modo che il programma trovi il DataItem vuoto ma il problema solo le costanti di testata e le varie cornici che vengono stampate comunque.

    Io ho risolto inserendo due DataItem (VATTestata e VATPiede) prima e dopo VATAmountLine utilizzando variabili e costanti del codice sorgente.

    image066 image067

    Per evitare che vengano stampati i dati di testata e piede ho inserito il codice “IF NOT InfoIVA THEN CurrReport.SKIP;” nel DataItem VATTestata e VATPiede.

    Nella parte di progettazione layout ho inserito un ciclo per la testate e uno per il piede ma siccome la variabile “Number” del DataItem di tipo integer è impostata a 1, anche in caso si volesse stampare il castelletto dell’Iva la testata ed il piede vengono ripetuti una volta sola.

    MSDN NAV 2016 Word Layout LINKS

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 133 Designing Word Report Layouts

    https://msdn.microsoft.com/en-us/library/dn789519(v=nav.90).aspx

    How to: Create a Word Report Layout for a Report

    https://msdn.microsoft.com/en-us/library/dn789701(v=nav.90).aspx

    My Video on Youtube Which is the major innovation of NAV 2016 ?

    Friday, November 20, 2015 Take Our Poll Visual Studio Community 2015 (Free Visual Studio 2015 with Windows ...

    Saturday, November 28, 2015 Visual Studio 2015 with Windows developer tools

    Use a free, full-featured Visual Studio Community 2015 client that already includes the Windows 10 developer tools to get started creating innovative and compelling Universal Windows apps and Classic Windows applications. These tools include universal app templates, a code editor, a powerful debugger, Windows Mobile emulators, rich language support, and more, all ready to use in production. Includes the Windows Standalone SDK and mobile emulators.

    • Get Visual Studio Community • Or install Visual Studio Professional or Visual Studio Enterprise (with developer tools) NAV 2016 Workflow Video

    Saturday, November 28, 2015 VIDEO LINK https://www.youtube.com/watch?v=lLZ1EMFnwMQ

    134 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) NAV 2016 Videos – updated List

    Tuesday, December 01, 2015 NAV 2016 Videos – updated list

    The following videos are available on Microsoft Dynamics Learning Portal. Go to Dynamics Learning Portal and search for the title to run a video.

    Dynamics NAV 2016 Video Series How Do I: Configure and Access the PowerBI.com Content Package for Microsoft Dynamics NAV 2016?

    How Do I: Create an Invoice Using the Lexmark Invoice Capture Service for Microsoft Dynamics NAV 2016?

    How Do I: Create and Use a Workflow for Incoming Documents in Microsoft Dynamics NAV 2016?

    How Do I: Create and Use Incoming Documents in Microsoft Dynamics NAV 2016?

    How Do I: Modify, Assign and Process Email for Word Forms in Microsoft Dynamics NAV 2016?

    How Do I: Automate the Daily Test Execution in Microsoft Dynamics NAV 2016?

    How Do I: Create an Extension Package in Microsoft Dynamics NAV 2016?

    How Do I: Create and Use Workflow in Microsoft Dynamics NAV 2016?

    How Do I: Deploy and Manage Extensions in Microsoft Dynamics NAV 2016?

    How Do I: Design Pages for Use on All Devices in Microsoft Dynamics NAV 2016?

    How Do I: Develop Using a Device Camera and Location in Microsoft Dynamics NAV 2016?

    How Do I: Get Started with the Universal App in Microsoft Dynamics NAV 2016?

    How Do I: Implement Deep-Linking to Pages or Records in Microsoft Dynamics NAV 2016?

    How Do I: Integrate CRM in Microsoft Dynamics NAV 2016?

    How Do I: Integrate Microsoft Dynamics CRM in Microsoft Dynamics NAV 2016?

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 135 How Do I: Make Sure my Development Doesn’t Break Existing Functionality in Microsoft Dynamics NAV 2016?

    How Do I: Perform a Two-Person Approval for Printing Checks with Microsoft Dynamics NAV 2016?

    How Do I: Run Microsoft Dynamics NAV Integration Setup in Microsoft Dynamics CRM?

    How Do I: Set Up Microsoft Dynamics NAV to Send Electronic Documents?

    How Do I: Set Up the Currency Exchange Rate Service in Microsoft Dynamics NAV 2016?

    How Do I: Setup Microsoft Dynamics NAV 2016 to Work with Azure SQL Database?

    How Do I: Subscribe to the C/AL Database, Page, and System Events in Microsoft Dynamics NAV 2016?

    How Do I: Use Events in Microsoft Dynamics NAV 2016?

    How Do I: Use Positive Pay in Microsoft Dynamics NAV 2016?

    How Do I: Use the Deferrals Functionality in Microsoft Dynamics NAV 2016?

    How Do I: Use the Posting Preview in Microsoft Dynamics NAV 2016?

    How Do I: Work Natively with Microsoft Dynamics CRM in Microsoft Dynamics NAV 2016?

    What Has Changed in the Microsoft Dynamics NAV 2016 Web Client? (The Highlights)

    What You Need to Know About the Universal App for Microsoft Dynamics NAV 2016 in 90 Seconds?

    Managed Service for Partners

    How Do I: Back Up and Restore Tenants in Microsoft Dynamics NAV Management Portal?

    How Do I: Create a New Application and Application Version in Microsoft Dynamics NAV Management Portal?

    How Do I: Create a New Application Service in Microsoft Dynamics NAV Management Portal?

    How Do I: Create New Tenants in Microsoft Dynamics NAV Management Portal?

    How Do I: Run Objects from Microsoft Dynamics NAV Management Portal?

    How Do I: Upgrade Tenants in Microsoft Dynamics NAV Management Portal?

    How Do I: Use Microsoft Dynamics NAV Management Portal Web Services with Microsoft

    136 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Visual Studio?

    How Do I: Use Microsoft Dynamics NAV Management Portal Web Services with Microsoft Windows Power Shell?

    Source: Videos NAV 2016 About NAV 2016 Limited Users

    Wednesday, December 02, 2015 “Limited Users” get restricted access to the ERP Solution to complete only the following tasks:

    • “ Read” access to any data contained in the ERP solution and • “ Write” access to a maximum of 3 table objects with the following exceptions: Limited users are not authorized to write directly or indirectly to the following tables: General Ledger Entry (table number 17), Permission Set (table number 2000000004), Permission (table number 2000000005) or Access Control (table number 2000000053); and • Tables described in Appendix:” Limited User Included Tables” do not count towards the 3 table objects. Writing the transactions of a Limited User to a temporary table then having a Full User (or a system process) post those transactions to table 17 is an example of indirect write access to table 17, which is not permitted. Transations created by a Limited User are not considered indirect write access if (i) they are needed by a Full User as in an input to perform their job function and (ii) transactions are processed individually (not in a batch) “The Limited User” Included Tables should allow you to perform the following tasks:

    Sales

    • Create a Customer with relevant contact details, based on a template or from scratch. • Create an Opportunity for an existing Campaign, and relate it to Sales Quotes or Orders. Quotes:

    • Create a Sales Quote for an existing or a new Customer. • Send a Sales Quote by email, send it for approval, or convert it to a Sales Order. Orders:

    • Create a Sales Order for an existing or a new Customer. • Send a Sales Order for approval. Purchase

    • Create a Vendor with relevant contact details, based on a template or from scratch. • Create a Purchase Order for an existing or a new Vendor. • Send a Purchase Order for approval. Other Tasks

    • Fill in an existing timesheet • Perform Document Capture – Expense reporting by scanning an invoice to create an

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 137 incoming document Role Centers

    • Use the charts on two role centers: Order Processor (for Sales scenarios) and Purchasing Agent (for Purchase scenarios). However, if your specific deployment requires more than 3 tables not part of the Included range in order to fulfill these tasks, a Full User will be required.

    Any access beyond these limitations requires Full User access.

    When assig ning security rights to users, the system administrator will designate them as Full Users or Limited Users.

    Appendix A: “Limited User Included Tables”

    “The following tables do not count towards the maximum of three permitted for Limited Users in Microsoft Dynamics NAV 2016.”

    Table #Table NameDated AddedTable #Table NameDate Added18 Customer 6-Oct- 2015 5065 Interaction Log Entry 1-Oct-2012 19 Cust. Invoice Disc. 6-Oct-2015 5072 Campaign Entry 1-Oct-2012 23 Vendor 6-Oct-2015 5075 Logged Segment 1-Oct-2012 24 Vendor Invoice Disc. 6-Oct-2015 5078 Segment History 1-Oct-2012 36 Sales Header 26-Jan-2015 5080 To-do 1-Oct-2012 37 Sales Line 6-Oct-2015 5086 Cont. Duplicate Search String 1-Apr-2012 38 Purchase Header 26-Jan-2015 5092 Opportunity 17-Sep- 2015 39 Purchase Line 6-Oct-2015 5093 Opportunity Entry 17-Sep-2015 43 Purch. Comment Line 20-Nov-2012 5106 Document Dimension Archive 1-Oct-2012 44 Sales Comment Line 20-Nov-2012 5107 Sales Header Archive 1-Oct-2012 51 User Time Register 1-Oct-2012 5108 Sales Line Archive 1-Oct-2012 97 Comment Line 1-Oct-2012 5109 Purchase Header Archive 1-Oct-2012 130 Incoming Document 6-Oct-2015 5110 Purchase Line Archive 1-Oct-2012 133 Incoming Document Attachment 6-Oct-2015 5123 Inter. Log Entry Comment Line 1-Oct-2012 222 Ship-to Address 6-Oct-2015 5125 Purch. Comment Line Archive 1-Oct-2012 224 Order Address 6-Oct-2015 5126 Sales Comment Line Archive 1-Oct-2012 225 Post Code 6-Oct-2015 5127 Deferral Header Archive 6-Oct- 2015 249 VAT Registration Log 6-Oct-2015 5128 Deferral Line Archive 6-Oct-2015 308 No. Series 6-Oct-2015 5150 Integration Page 1-Oct-2012 309 No. Series Line 1-Oct- 2012 5151 Integration Record 1-Oct-2012 336 Tracking Specification 20-Nov-2012 5199 Attendee 1-Oct-2012 337 Reservation Entry 1-Oct-2012 5200 Employee 1-Jan-2014 348 Dimension 6-Oct-2015 5201 Alternative Address 1-Jan-2014 355 Dimension Ledger Entry 1-Oct-2012 5203 Employee Qualifications 1-Jan-2014 356 Journal Line Dimension 1-Oct-2012 5205 Employee Relative 1-Jan-2014 357 Document Dimension 1-Oct-2012 5207 Employee Absence 1-Jan-2014 358 Production Document Dimension 1-Oct-2012 5214 Misc. Article Information 1-Jan-2014 359 Posted Document Dimension 1-Oct-2012 5648 FA Allocation Dimension 1-Oct-2012 361 G/L Budget Dimension 1-Oct-2012 5765 Warehouse Request 6-Oct-2015 389 Service Contract Dimension 1-Oct-2012 5766 Warehouse Activity Header 1-Oct-2012 405 Change Log Entry 1-Oct-2012 5772 Registered Whse. Activity Hdr. 1-Oct-2012 454 Approval Entry 6-Oct-2015 5773 Registered Whse. Activity Line 1-Oct-2012 455 Approval Comment Line 20-Nov-2012 5806 Contact Duplicate Search 1-Apr-2014 480 Dimension Set Entry 1-Oct-2012 5809 Item Charge Assignment (Sales) 6-Oct-2015 481 Dimension Set Tree Node 1-Oct-2012 5814 Inventory Period 20-Nov-2012 487 Business Chart User Setup 15-Aug-2015 6550 Whse. Item Tracking Line 1-Oct-2012 760 Trailing Sales Orders Setup 6-Oct-2015 7002 Sales Price 6-Oct-2015 762 Account Schedules Chart Setup 15-Aug-2015 7004 Sales

    138 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Line Discount 6-Oct-2015 763 Acc. Sched. Chart Setup Line 6-Oct-2015 7012 Purchase Price 6-Oct-2015 770 Analysis Report Chart Setup 15-Aug-2015 7014 Purchase Line Discount 6-Oct-2015 771 Analysis Report Chart Line 6-Oct-2015 7135 Item Budget Dimension 1-Oct-2012 869 Cash Flow Chart Setup 15-Aug-2015 7310 Warehouse Journal Batch 20-Nov-2012 900 Assembly Header 6-Oct-2015 7311 Warehouse Journal Line 20-Nov-2012 901 Assembly Line 6-Oct-2015 7312 Warehouse Entry 1-Oct-2012 904 Assemble-to-Order Link 6-Oct-2015 7313 Warehouse Register 1-Oct-2012 906 Assembly Comment Line 6-Oct-2015 7318 Posted Whse. Receipt Header 1-Oct-2012 950 Time Sheet Header 6-Oct-2015 7319 Posted Whse. Receipt Line 1-Oct-2012 951 Time Sheet Line 6-Oct-2015 7320 Warehouse Shipment Header 1-Oct-2012 952 Time Sheet Detail 1-Oct-2012 7321 Warehouse Shipment Line 1-Oct-2012 953 Time Sheet Comment Line 1-Oct-2012 7322 Posted Whse. Shipment Header 1-Oct-2012 954 Time Sheet Header Archive 6-Oct-2015 7323 Posted Whse. Shipment Line 1-Oct-2012 955 Time Sheet Line Archive 6-Oct-2015 7324 Whse. Put-away Request 1-Oct-2012

    Software License Terms for Microsoft Dynamics NAV 2016 and Microsoft Dynamics C5 2016 https://msdn.microsoft.com/en-us/library/dn892088(v=nav.90).aspx

    TYPES OF USER LICENSES. Except as otherwise specified, the types of user licenses for the software are as follows:

    1. Access Licenses (CALs and SALs). In addition to the server software license, you must acquire and assign an Access License to each user that accesses the ERP solution directly or indirectly. You need an Access License for each user that directly or indirectly accesses the ERP solution through a third party application. Access Licenses are specific to an ERP solution and may not be used with or shared among different ERP solutions. Types of CALs. There are two types of CALs: Full CALs and Limited CALs. A “Full CAL” is a license that entitles a user to perform the tasks of a Full User. 2. A “Limited CAL” is a license that entitles a user to perform only the tasks of a Limited User. You may license up to 4 Limited CALs per Full CAL. 1. A “Standard SAL” is a base SAL license that entitles a user to perform Full User tasks across the ERP Solution using all of the functionality included in the Starter Pack, as described in the Microsoft Dynamics NAV 2015/2016 Licensing Guide located at go.microsoft.com/fwlink/?LinkID=509810 . 2. An “Extended Use Additive SAL” is a license, additive to the Standard SAL, which entitles a user to perform Full User tasks using the functionality included in the Extended Pack, as described in the Microsoft Dynamics NAV 2015/2016 Licensing Guide. 3. A “Limited SAL” is a license that entitles a user to perform only the tasks of a Limited User. 1. “Concurrent CALs” are licenses that allow any user to access the ERP solution. The number of concurrent CALs licensed refers to the maximum number of users that may access the ERP solution simultaneously. You may select the Full CAL or Limited CAL as concurrent CAL types. Concurrent CALs can only be licensed under the Perpetual License Model. 2. “User SALs” are licenses that are specific to each user and may not be shared with other users. You may select the Standard SAL, the Extended Use Additive SAL, or the Limited SAL as user SAL types. If you select the Extended Use Additive SAL, You must license Extended Use Additive SALs for all Standard SALs. The Limited

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 139 SAL grants access to the same set of functionalities that are available to users performing Full User tasks, subject to the restrictions listed in the Limited User definition. Microsoft grants you, at no charge, two SALs of the same type used by your Full Users: one specifically for an External Accountant User, and one specifically for a System Administrator User. You may permanently reassign your user SAL from one user to another. You may temporarily reassign your user SAL to a temporary user while the permanent user is absent. The External Accountant User and the System Administrator User cannot be used for any other purposes. User SALs can only be licensed under the Subscription License Model. 3. “External Users” You do not need Access Licenses for external users. External users must be designated in the user table for the software, and cannot use any clients provided by the Microsoft Dynamics NAV Application Programming Interface (API), such as the Microsoft Dynamics NAV 2016 Windows client, or the Microsoft Dynamics NAV 2016 Web client. External User licenses must not be used for business process outsourcing purposes. For additional information about the types of user licenses and the license restrictions regarding user licenses, see the Microsoft Dynamics NAV 2015/2016 Licensing Guide located at go.microsoft.com/fwlink/?LinkID=509810 Why do Dynamics NAV users need visual scheduling?

    Friday, December 04, 2015 Learn why Microsoft Dynamics NAV users need visual scheduling for production orders, jobs, service orders and resource planning.

    Source: Why do Dynamics NAV users need visual scheduling? VSTM (Visual Studio Team Services) Agile Tools

    Tuesday, December 08, 2015 Great updated MSDN help pages about VSTM !

    Agile tools : Scrum & Kanban can work fine happy togheter ! …

    “As a project manager you can plan and track the work required to bring your applications from idea to completion. Agile tools provide you with the power, flexibility, and responsiveness you need to stay on top of changing priorities, deadlines, and

    140 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) requirements.

    To use these tools, you need to first create a team project. You can do that either in the cloud with Visual Studio Team Services , or by creating one on an on-premises Team Foundation Server (TFS) .”

    Overview: https://msdn.microsoft.com/library/vs/alm/work/overview

    Summary

    Backlogs • Create your backlog • Add work items • Manage bugs • Organize your backlog • Storyboarding • Productivity tips Scrum • Define sprints • Plan sprints • Capacity planning • Task board • Sprint burndown • Velocity & forecasting • Customize task board cards Kanban • Kanban basics • Task checklists • Add columns • WIP limits • Split columns • Expedite work • Definition of done • Customize cards Track • Queries (work items) • Charts • Dashboards • Alerts • Tags • History & auditing • Query by date or sprint Scale • Culture • Multiple teams • Manage team assets • Portfolio management • Practices that scale • Scaled Agile Framework

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 141 “NAV Universal APP” on different devices

    Thursday, December 10, 2015 “NAV Universal APP” on different devices

    “When we talk about Universal APP then we mean that it works on different devices but behaviors are different depending on what device, what OS and etc.”

    If we run universal app on windows computerwith keyboard attached, then it will show web client interface where is print preview available and from preview direct printing too.

    If we run universal app on computer without keyboard (tablet mode), then preview is not available and direct print to, then only saves as pdf and print using available viewer and printer; the same is if used other OS or devices and NOT Windows.”

    Source: Microsoft

    Differences and Limitations When Developing Pages for the Microsoft Dynamics NAV Universal App Developing for the Microsoft Dynamics NAV Tablet client and Microsoft Dynamics NAV Phone client is not much different from developing for the Microsoft Dynamics NAV Windows client, or Microsoft Dynamics NAV Web client. There are, however, some natural limitations on tablets and phones, such as not having a physical keyboard and mouse, as well as a smaller screen. In addition to this, there are some differences and limitations in developing pages for Microsoft Dynamics NAV Tablet client and Microsoft Dynamics NAV Phone client. The differences and limitations listed are additional to the differences and limitations that exist on the Microsoft Dynamics NAV Windows client and Microsoft Dynamics NAV Web client.

    Differences and Limitations Overview The following table describes some of the most common differences and limitations that you might experience when developing for Microsoft Dynamics NAV Tablet client and Microsoft Dynamics NAV Phone client.

    ConceptOn TabletOn PhoneExampleRecommendationActivity buttons Only the Home activity button is shown. Only the Home activity button is shown. Home, Departments, and Posted Documents on the Sales Order Processor Role Center. Design pages to expose the workflows needed by the user. For example, configure the profile to show the important list pages under the Home activity button. Alternatively, consider designing a new Role Center if the activities for the activity button greatly vary from activities in other

    142 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) activity buttons. Selecting multiple records in lists Not available. Not available. Ctrl+A or Ctrl+Click on rows in a list using Microsoft Dynamics NAV Windows client. Avoid scenarios requiring selecting multiple rows on a list. Also, try to minimize actions on lists. Ribbon actions Only Promoted actions are shown. Only Promoted actions are shown. On the Small Business Role Center. Use the development environment to promote actions. Alternatively, configure the profile and add actions to the Home ribbon tab. FactBoxes Not shown on List pages or Worksheet pages. Not shown on List pages or Worksheet pages. Customer list on the Small Business Role Center. Make sure the same information is visible on the corresponding card page of the given record. Advanced filters No column-specific filtering is available. No column-specific filtering is available. On the Customer list page. Send data to Excel and do the complex filtering there. Page search Not available. Not available. On Microsoft Dynamics NAV Windows client or Microsoft Dynamics NAV Web client. Design pages to expose the workflows needed by the user. For example via list places, tiles or actions. Cue and action tiles The number of tiles that are shown is based on the size of the screen, no possibility to scroll. The number of tiles on the phone is in theory unlimited because you can scroll. On most Role Center pages. Design Role Center pages to avoid having important tiles at the area end. Assume you have no control over how many tiles are displayed and consider that only the first few tiles will be made visible on the tablet. Fields in fast tabs Fields in fast tabs on list pages are not shown. Only the repeater control is shown in the content area of the page. Not available. Design List pages to avoid having important columns on the far right of the column list. Assume you have no control over how many columns are displayed and consider that only the first few columns will be made visible. Links and Notes Not available. Not available. On Sales Orders. Similar to Factboxes, make sure the same information in the field group is visible on the corresponding card page of the given record. Select from full list Not available on lookups. Users are not able to run actions on a lookup page, and they cannot access the full set of records. Not available on lookups. Users are not able to run actions on a lookup page, and they cannot access the full set of records. On the Item Card when selecting the Base Units of Measure. Make sure the appropriate columns are visible on the lookup. The user is still able to filter, scroll, and search through the lookup. Search across list columns Partly supported. Search will not include FlowFields. Partly supported. Search will not include FlowFields. On the Customer list page. Report Viewer and CurrReport.PREVIEW There is no Preview functionality available on the Microsoft Dynamics NAV Tablet client. CurrReport.PREVIEW cannot be reliably used to identify whether a report was run as a draft or as a final printed document. There is no Preview functionality available on the Microsoft Dynamics NAV Phone client. CurrReport.PREVIEW cannot be reliably used to identify whether a report was run as a draft or as a final printed document. See example in report 280. Lookups Available. Available, with the difference that advanced and simple lookups behave similarly on the phone. The lookup will not bring up the card, show factboxes, or any field groups. See examples on the Customer Card page. Matrix controls Not available. Not available. See example in G/L Budget. File download Available. Cannot download multiple files at the same time. Available. Cannot download multiple files at the same time. Trial Balance report in the Print to Excel check box. Worksheet pages Available. Not available; an error message is displayed. Sales Price Worksheet or Cash Flow Worksheet. Run this type of page from the Microsoft Dynamics NAV Windows client, Microsoft Dynamics NAV Web client, or Microsoft Dynamics NAV Tablet client. Lists Available. Available, with the difference that these are displayed in a brick layout with a number of differences and limitations. For an overview, see How to: Display Data as Bricks on Phone. Customers or Sales Orders pages. Indentation in repeater controls Available. Not available. The repeater control will be rendered as a regular flat brick layout. Chart of Accounts and Contacts List pages. Scope of actions

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 143 Available. Available, but there are some behavioral differences regarding the Scope Property. Also, see Defining Action Scope for Microsoft Dynamics NAV Pages. Use of camera and location Available in the Microsoft Dynamics NAV Universal App on devices with a camera and GPS capabilities.

    Note

    Not available on Microsoft Dynamics NAV Windows client or Microsoft Dynamics NAV Web client.

    Available in the Microsoft Dynamics NAV Universal App on devices with a camera and GPS capabilities.

    Note

    Not available on Microsoft Dynamics NAV Windows client or Microsoft Dynamics NAV Web client.

    On the Accounting Manager profile, under Incoming Documents.

    Source MSDN link : https://msdn.microsoft.com/en- us/library/dn757104(v=nav.90).aspx Local Functionality for Microsoft Dynamics NAV 2016

    Tuesday, December 15, 2015 Local functionality for the following countries/regions is available in Microsoft Dynamics NAV 2016.

    … some people have asked info about localizations of NAV2016.

    In my experience, I installed NAV in some of these countries, sometimes using of foreign partners (who always recommend to use!) and sometimes not ( depending on the case,

    144 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) from Project location and complexity\timing of the project

    NB : There are also o thers localizations NOT present in the link below and directly managed by foreign NAV partners (ex: China etc.) below the MSDN official links:

    Local Functionality (official) • Australia Local Functionality • Austria Local Functionality • Belgium Local Functionality • Canada Local Functionality • Denmark Local Functionality • Finland Local Functionality • France Local Functionality • Germany Local Functionality • Iceland Local Functionality • Italy Local Functionality • Mexico Local Functionality • Netherlands Local Functionality • New Zealand Local Functionality • Norway Local Functionality • Russia Local Functionality • Spain Local Functionality • Sweden Local Functionality • Switzerland Local Functionality • United Kingdom Local Functionality • United States Local Functionality Source Application Help for NAV 2016 https://msdn.microsoft.com/en-us/library/hh922908(v=nav.90).aspx Introduction to Microsoft Dynamics NAV – MVA – ...

    Sunday, December 20, 2015

    Nice “ Basic NAV Course” by Steven Renders @srenders is available on MVA.

    Introduction to Microsoft Dynamics NAV : “Learn Microsoft Dynamics NAV in this high- level overview course. Discover basic concepts, user personalization, sales processes

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 145 and more with Dynamics NAV”

    Source: Introduction to Microsoft Dynamics NAV – Microsoft Virtual Academy C/AL Editor, Development Environment and Windows client Keyboard Sh...

    Tuesday, December 22, 2015 Nice post by jatin Patel – reblogged

    Source: C/AL Editor, Development Environment and Windows client Keyboard Shortcuts in NAV 2016 – Jatin Patel – Microsoft Dynamics NAV LE NOVITA’ IN MICROSOFT DYNAMICS NAV 2016

    Saturday, January 02, 2016 LE NOVITA’ IN MICROSOFT DYNAMICS NAV 2016

    Microsoft Dynamics NAV 2016 presenta importanti novità che lo rendono ancora più veloce nella sua implementazione, aumenta la facilità d’uso e supporta sempre di più il raggiungimento dei tuoi obbiettivi più ambiziosi!

    Ecco alcune delle principali novità presenti in Microsoft Dynamics NAV 2016.

    Per maggiori dettagli scarica il documento completo.

    Source: LE NOVITA’ IN MICROSOFT DYNAMICS NAV 2016 | Roberto Stefanetti | LinkedIn Microsoft Dynamics NAV Online Resources

    Monday, January 04, 2016 Hi Guys,

    happy new year and welcome to my first post of 2016 !

    146 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Why i’m talking about Microsoft Dynamics NAV Online Resources ?

    … some people asked me some information about links and resourcesavailable for NAV on network (links, blogs, forums, socials and so on..), also in the community forum of NAV you can find some user requests on this subject.

    … below a short list of usefull resources for NAV (i hope !)

    MICROSOFT DYNAMICS COMMUNITY – NAV NAV Community Root Page https://community.dynamics.com/NAV

    NAV Community Sections Forum https://community.dynamics.com/nav/f

    Blogs https://community.dynamics.com/nav/b

    Videos https://community.dynamics.com/nav/b/navvideos

    Wiki https://community.dynamics.com/nav/w/

    Expert https://community.dynamics.com/nav/p/experts

    OTHERS RESOURCES NAV Developer Center https://msdn.microsoft.com/dynamics/nav

    NAV on MSDN (NAV Help Online, How-to use NAV, Scenarios etc.) https://msdn.microsoft.com/en-us/library/hh173988(v=nav.90).aspx

    NAV Team Blog

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 147 https://blogs.msdn.microsoft.com/nav/

    MDLP (Microsoft Dynamics Learning Portal) https://mbspartner.microsoft.com/NAV/WhatsNew/2

    NAV Product Suggestions By Connect Page https://connect.microsoft.com/dynamicssuggestions/

    Virtual Academy – Dynamics NAV https://mva.microsoft.com/

    Featured Dynamics NAV MVPs https://msdn.microsoft.com/en-us/dynamics/nav/dn781204.aspx

    YOUTUBE Dynamics Youtube Channel https://www.youtube.com/user/msdyncomm

    PARTNERS MBS PartnersourceCustomersource https://mbs.microsoft.com/partnersource/ https://mbs.microsoft.com/customersource/

    Download NAV Direct link https://mbs.microsoft.com/partnersource/northamerica/deployment/downloads/product- releases/msdnav2016download

    NAV Localization Portal https://mbs.microsoft.com/customersource/northamerica/nav/support/support- news/GFMLocalizationPortalMC_nav

    NAV Support RequestsIncidents https://mbs.microsoft.com/customersource/northamerica/nav/support

    TWITTER

    Microsoft Dynamics

    https://twitter.com/MSFTDynamics

    Microsoft Dynamics NAV Support

    https://twitter.com/MSDynNAVSupport

    FACEBOOK

    https://www.facebook.com/msftdynamics

    OTHERS USERGROUPS\FORUMS

    Mibuso

    148 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) http://www.mibuso.com/

    Dynamics User Group http://dynamicsuser.net/

    NAVUG https://www.navug.com/

    …you are welcome ! Description of the Number of Databases You Are Allowed to Run with ...

    Tuesday, January 05, 2016 Scenario:NAV with test & production environments … using customer license in more databases. …many questions about this topic in Microsoft Dynamics Community. look at this post: https://community.dynamics.com/nav/f/34/t/186285

    “Correct Answer” by Microsoft

    “ Each Microsoft Dynamics NAV production database requires a separate Microsoft Dynamics NAV license file.”

    With one Microsoft Dynamics NAV license, you are allowed to run one Microsoft Dynamics NAV database. If you have multiple Microsoft Dynamics NAV production databases, you must purchase a Microsoft Dynamics NAV license for each database.

    You are allowed to use a Microsoft Dynamics NAV license on copies of your Microsoft Dynamics NAV production database as long as the copies of the database are used for:

    • Backup

    • Storage of historical data

    • Testing

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 149 • Internal use only development

    The databases must not be used in production.

    Directly from public Microsoft CustomerSource section: Description of the Number of Databases You Are Allowed to Run with a Microsoft Dynamics NAV License – Microsoft Dynamics CustomerSource Some SQL date calculation scripts for NAV Linked Tables

    Saturday, January 09, 2016 Some SQL date calculation scripts for NAV Linked Tables

    Dato che alcuni utilizzano le viste SQL come tabelle collegate in NAV, riporto alcuni script SQL relativi all’utilizzo delle date; inserendo un campo virtuale in una vista SQL e richiamando una “function” esistente o personalizzata nel campo (es: la uf_DaysDifference sotto indicata) è possibile creare delle viste SQL molto utili da utilizzare in NAV.

    esempio di alcune viste da me utilizzate in cruscotti di avanzamento – Avanzamento Ordini Vendita\Acquisto\Commesse\Timesheets – Avanzamento Fasi di Produzione – Avanzamento Shop Floor etc..

    SQL Date Scripts

    Calcolare l’ultimo giorno di un mese

    DECLARE @oggi DATETIME SET @oggi = GETDATE()

    SELECT CONVERT(varchar, DATEADD ( dd , -1 , CONVERT (VARCHAR(6), DATEADD( mm , 1 , @oggi ) , 112 ) + ’01’ ) ,103)

    Se @oggi = 09/01/2016 La select ritorna = 31/01/2016

    Details: — Aggiungo 1 mese alla data odierna:

    150 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) SELECT DATEADD( mm , 1 , getdate())

    — Visualizzo la data senza il giorno: SELECT CONVERT (VARCHAR(6), DATEADD( mm , 1 , getdate()) , 112 )

    — Imposto il primo giorno del mese: SELECT CONVERT (VARCHAR(6), DATEADD( mm , 1 , getdate()) , 112 ) + ’01’

    — Tolgo 1 giorno dalla data ottenuta: SELECT DATEADD ( dd , -1 , CONVERT (VARCHAR(6), DATEADD( mm , 1 , getdate()) , 112 ) + ’01’ )

    — Formatto il risultato in italiano (gg/mm/aaaa): SELECT CONVERT(varchar, DATEADD ( dd , -1 , CONVERT (VARCHAR(6), DATEADD( mm , 1 , getdate()) , 112 ) + ’01’ ) ,103)

    Calcolare il numero giorni di un mese declare @data datetime set @data = getdate() select day(dateadd(month,1,@data)-(day(@data)-1)-1) as NumGiorniMese

    — Trovo la data da elaborare aumentata di un mese: select dateadd(month,1,@data) — Imposto la nuova data con giorno = 1: select dateadd(month,1,@data)-(day(@data)-1) — Tolgo un giorno alla data: select dateadd(month,1,@data)-(day(@data)-1)-1 — Leggo il numero di giorni: select day(dateadd(month,1,@data)-(day(@data)-1)-1)

    Calcolare differenza giorni

    /* Differenza in giorni */ CREATE FUNCTION uf_DaysDifference (@dataIniziale DATETIME, @dataFinale DATETIME) RETURNS INT AS BEGIN RETURN ( SELECT CASE WHEN DATEADD(DAY, DATEDIFF(DAY, @dataIniziale, @dataFinale), @dataIniziale) > @dataFinale THEN DATEDIFF(DAY, @dataIniziale, @dataFinale) – 1 ELSE DATEDIFF(DAY, @dataIniziale, @dataFinale) END ) END GO

    /* Ad esempio: */

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 151 select dbo.uf_DaysDifference(‘20160109′,’20160114’) as NumGiorni select dbo.uf_DaysDifference(‘20060109’,getdate()) as NumGiorni select dbo.uf_DaysDifference(‘20060109’,CURRENT_TIMESTAMP) as NumGiorni

    IsZero Funzione che converte 0 in altro numero, utile in viste o stored procedures.

    CREATE FUNCTION IsZero ( @Number FLOAT, @IsZeroNumber FLOAT )

    RETURNS FLOAT AS BEGIN IF (@Number = 0) BEGIN SET @Number = @IsZeroNumber END

    RETURN (@Number) END

    es: isZero(; 1) –> converte o in 1 Sending SMS from NAV

    Monday, January 11, 2016 Sending SMS from NAV two useful links about sending SMS from NAV. Sending SMS from Dynamics NAV with 5 lines of code (Windows Mobile Automation)

    What you need: Outlook 2010, Exchange 2010, NAV (any version supporting automations…), Mobile phone with Windows Mobile 6.1 (with some update) or 6.5 http://dynamicsuser.net/blogs/kine/archive/2 011/01/18/sending-sms-from-dynamics-nav- with-5-lines-of-code.aspx

    Using Web Service to send SMS from NAV(Web Services) method to send SMS notification through the Webservice using service provider interface protocols. http://x-dynamics.blogspot.it/2011/07/using-web- service-to-send-sms-from-nav.html

    152 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Eventing and Extensions in Dynamics NAV 2016, Webinar, Thu. Jan 28

    Friday, January 15, 2016 NAV 2016 Webinar: “Eventing and Extensions in Dynamics NAV 2016”

    Thu, Jan 28, 2016 4:00 PM – 5:00 PM CET

    “These webinars will be hosted by NAV MVPs who are experienced in the subject. Over 100 NAV professionals registered for the first session, presented by Mark Brummel on December 10, 2015”

    Webinar Details http://libertygrove.com/microsoft-dynamics-nav/webinar-extensions- eventing-dynamics-nav-2016-2/

    Registration old session video

    NAV 2016 Webinar: “Eventing and Extensions in Dynamics NAV 2016” Free ebook: “Enterprise Cloud Strategy” ...

    Sunday, January 17, 2016 MICROSOFT PRESS publishes on Microsoft tools & technologies, plus programming best practices. Our blog offers book info, links to ebooks, & other good stuff. Enjoy!

    Source: Free ebook: Enterprise Cloud Strategy – Microsoft Press – Site Home – MSDN Blogs Progress Indicator vs window

    Friday, January 22, 2016 ..nice old “but actual” post about NAV progress indicator !

    ExampleProgress indicator based on Item DataItem Create a report with Item as the dataitem. Put the code below in the prescribed triggers. Define the variables, Run the report The TotalCount will adjust per the filters you enter on the report so the progression bar is always on time. Variables Name DataType Window Dialog TotalCount Integer

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 153 Counter Integer Item - OnPreDataItem() Window.OPEN('Processing: @1@@@@@@@@@@@@@@@'); TotalCount := COUNT; Item - OnAfterGetRecord() Counter := Counter + 1; Window.UPDATE(1,ROUND(Counter / TotalCount * 10000, 1)); Item - OnPostDataItem() Window.CLOSE; How-to use Dialog Box with Progress Indicator Try using a dialog box, but instead of using (ex. '#1######') you use ( ex. @1@@@@@@@@@@@@@). The "@" sign signifies that you want to use progress bar indicator. Source http://groups.yahoo.com/group/Navision-Knowledge- Village/ Sharing the knowledge on Navision > Visit www.frappr.com/navision for navison friends http://groups.yahoo.com/group/Navision-Knowledge-Village/ based on this question : "When running a long processing report, I usually open a window & update it with the entry no I am processing. Instead of using this, is there a function that can create a progress indicator type bar instead with a % done (for example, like the one you see when importing a file)?" Power BI Windows 10 universal app for desktops, tablets, and smartp...

    Wednesday, January 27, 2016 Power BI is a cloud-based business analytics service that enables anyone to visualize and analyze data with greater speed, efficiency, and understanding. It connects users to a broad range of live data through easy-to-use dashboards, provides interactive reports, and delivers compelling visualizations that bring data to life. Power BI Desktop is a powerful new visual data exploration and interactive reporting tool. It provides a free-form canvas for drag-and-drop exploration of your data and an extensive library of interactive visualizations, while streamlining report creation and publishing to the Power BI service.

    Native Windows 10 experience The Power BI universal app is designed from the ground up to run on Windows 10 using the capabilities you already know and love, such as pressing and holding on your dashboard index to open the context menu, or gaining quick access to a dashboard simply by pinning it to your device home screen as a tile.

    Continuum mode adapts to your display The new Windows 10 continuum mode for phones brings a whole new experience to the Power BI app. When you connect your phone to a display dock, Power BI will adjust the presentation to best fit your screen size and resolution. This means you can take your data with you on the goand seamlessly share it during a meeting without the need for a larger computer.

    Get started with Power BI Universal app for Windows 10 mobile

    • Download the Power BI mobile apps • Follow @MSPowerBI on Twitter • Join the conversation at the Power BI Community Source: http://blogs.msdn.com/b/powerbi/archive/2016/01/26/power-bi-windows-10- universal-app-for-desktops_2c00_-tablets_2c00_-and-smartphones-now-available.aspx

    Video: https://www.youtube.com/watch?v=K01B4MEV7e8&feature=player_embedded

    154 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) NAV 2015 TRACKING SESSIONS, USERS ACTIVITY, CHANGE LOG

    Thursday, January 28, 2016 Roberto Stefanetti NAV Blog

    NAV 2015 TRACKING SESSIONS, USERS ACTIVITY, CHANGE LOG

    A simple post about NAV 2015 Tracking Technology, based on MSDN NAV Online Help.

    1) TRACKING SESSIONS

    NAV 2015 Active Sessions Table

    “Active Session”Table

    “ Specifies sessions that are currently active and are connected to a Microsoft Dynamics NAV Server instance. An active session can be in use or idle.

    This table can contain sessions that are not active, before those are removed from the table. For example, if a Microsoft Dynamics NAV Server instance stops responding, then the table can contain sessions that are not active. When the Microsoft Dynamics NAV Server instance restarts, it deletes from the table the sessions that are not active. If the Microsoft Dynamics NAV Server instance never restarts, then other the Microsoft Dynamics NAV Server instances delete the sessions that are not active.”

    https://msdn.microsoft.com/en-us/library/hh895997(v=nav.80).aspx

    FieldLocation Session ID Field…

    View original post 413 more words Portable Kanban and Kanban for Outlook Addins

    Saturday, January 30, 2016 What is Kanban ? Is it possible to use it for personal task management ? … Sure !

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 155 Kanban Board:

    Definition here: http://guide.agilealliance.org/guide/kanban.html#sthash.ipfukUPU.dpuf

    Source: http://guide.agilealliance.org/guide/kanban.html

    Nice book about Kanban: “ Agile Project Management with Kanban (Developer Best Practices) 1st Edition” http://www.amazon.com/Project-Management-Kanban-Developer- Practices/dp/0735698953/

    Nice Blog here: http://kanbanblog.com/explained/

    …….

    Below some Applications and Outlook Addins to simulate “ Kanban Boards” for personal planning, tracking & control; for teams management the better solution is Always an “Agile Integrated Online Solution” ex: “Kanbantools, Asana, Visual Studio Online and Others good solutions…)

    “Portable Kanban” … a great tool by Dmitry Ivanov, free to use.

    Visit the post for more: Dmitry Ivanov

    Direct Download link: https://drive.google.com/uc?export=download&id=0BwUfh6wcVgWKVHRDLWtKZy1HUG c

    “Kanban for Outlook Addin (2013, 365) from Microsoft”

    156 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) “ Kanban Board is a visualizing tool for the Outlook, which splits tasks upon their status.”

    .. a nice kanban addin for Outlook.

    Direct Download link: https://store.office.com/kanban-for-outlook- WA104354490.aspx?assetid=WA104354490 my Best Choice !!! “ Kanban Task Manager for Outlook 2″

    .. a great kanban addin for Outlook !! .. the best choice!

    Direct Download link: http://kanban-task-manager-for- outlook.windows10compatible.com/download

    Kanban in Visual Studio Online e in Team Foundation Server https://msdn.microsoft.com/Library/vs/alm/work/kanban/kanban-basics

    ..another nice free solution is “personal kanban-with-google-spreadsheet”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 157 Direct Download link: http://www.jellybend.com/2013/01/02/personal-kanban-with-google- spreadsheet-and-google-apps-script/

    …the last tool.. “ my-personal-kanban”… a great free tool with nice cloud support.. :“My Personal Kanban”

    My Personal kanban: “This is a one page HTML/JavaScript application for people who would like to use simple and basic Kanban board for their personal stuff” Direct Download link: http://greggigon.github.io/my-personal-kanban/

    ..you are welcome ! RUNREQUESTPAGE, EXECUTE, PRINT, SAVEAS in NAV

    Monday, February 01, 2016 …nice reporting functions are available from NAV 2015: EX: RUNREQUESTPAGE, EXECUTE, PRINT, SAVEAS

    MY BEST FUCTION IS: “RUNREQUESTPAGE” -> “ This function lets you run a request page for a report, without actually running the report. When the user clicks OK, the function simply returns a text value, which is an XML document describing the user’s selection and filters of the request page.”; you can use this function also to schedule a report on Job Queue (OnDemand report schedule)

    ex: areports launcher page, scope of this page is run selected reports and generate PDF files after reports printing (or after preview mode report printing)

    158 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) The system use fiunction REPORT.RUNREQUESTPAGE to read and retrieve reports parameters

    RUNREQUESTPAGE

    XmlParameters:= REPORT.RUNREQUESTPAGE(intIDReport);

    … after you get the following XML document as a result:

    EXECUTE

    Now is time to run report with EXECUTE function. This function runs a report without showing a request page. It receives the parameters as an argument of type text, and you can feed the results of the RUNREQUESTPAGE to it. If the report you are executing is a processing-only report, then it will simply silently execute . If it’s a printable report, then it runs in the preview mode.

    SAVEAS

    SAVEAS function: “It does the same as SAVEASXML, SAVEASPDF, SAVEASEXCEL, and SAVEASWORD, only it does it without showing the request page”.

    SOME EXAMPLES:

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 159 REPORT.RUNREQUESTPAGE

    XmlParameters:= REPORT.RUNREQUESTPAGE(intIDReport);

    // Use the REPORT.SAVEAS function to save the report as a PDF file

    REPORT.SAVEAS (intIDReport,XmlParameters, REPORTFORMAT::Pdf,OStream);

    // Use the REPORT.EXECUTE function to preview the report

    REPORT.EXECUTE (intIDReport,XmlParameters);

    // Use the REPORT.Print function to print the report

    REPORT.PRINT (intIDReport,XmlParameters);

    DEMO FUNCTION: “ SaveReportPDF”

    SaveReportPDF (intIDReport : Integer;txtNomeFile : Text;blnPreview : Boolean;blnPrint : Boolean;blnSavePDF : Boolean;txtPath : Text)

    //DEMO .sn

    // Use the REPORT.RUNREQUESTPAGE function to run the request page to get report parameters

    CLEAR(XmlParameters);

    XmlParameters := REPORT.RUNREQUESTPAGE(intIDReport);

    CurrentUser := USERID;

    // Use the REPORT.SAVEAS function to save the report as a PDF file

    IF blnSavePDF THEN

    BEGIN

    Content.CREATE(txtPath + txtNomeFile+DELCHR(FORMAT(CURRENTDATETIME,0,'-- ..’),’=’,’-:/. ‘)+’.pdf’);

    Content.CREATEOUTSTREAM(OStream);

    REPORT.SAVEAS(intIDReport,XmlParameters,REPORTFORMAT::Pdf,OStream);

    Content.CLOSE;

    MESSAGE(‘PDF File written > OK’);

    END;

    160 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) // Use the REPORT.EXECUTE function to preview the report

    IF blnPreview THEN

    REPORT.EXECUTE(intIDReport,XmlParameters);

    // Use the REPORT.Print function to print the report

    IF blnPrint THEN

    REPORT.PRINT(intIDReport,XmlParameters);

    //DEMO .en Connecting Dynamics NAV 2013/2015 to the NAV content pack in PowerB...

    Thursday, February 04, 2016 Suvidha-blogpost

    PowerBI.com has a Dynamics NAV content pack which connects to Dynamics NAV 2016 out of the box. I’ve discussed about it here.

    Customers using NAV 2013 or NAV 2015 can also connect to this NAV Content pack in powerbi.com.

    View original post 342 more words Directions EMEA 2016, The Biggest NAV event, Prague

    Wednesday, February 17, 2016 Directions EMEA 2016, The Biggest NAV event, Prague http://directionsemea.com Directions EMEA 2016 will take place in Prague, October 12-14, 2016. You can register by clicking REGISTER NOW. At registration, you will be requested to enter your Microsoft Voice ID. Attendee Registration Page https://www.regonline.co.uk/register/checki n.aspx?EventId=1783245&RegTypeID=994 163

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 161 sp_whopro™ – SQL Server Activity Monitoring and Logging S...

    Monday, February 22, 2016 sp_whopro™– SQL Server Activity Monitoring and Logging Stored Procedure

    Great SQL Script !

    Source: SQLDownload Download Microsoft Forum 2016, 19 Aprile 2016, FieraMilanoCity

    Thursday, February 25, 2016

    Microsoft Forum 2016, 19 Aprile 2016, FieraMilanoCity

    “AccelerateYourBusiness”: a “ Microsoft Forum” la tecnologia incontra il business. Scopri le soluzioni di Microsoft e dei suoi Partner. Diventa protagonista, oggi.

    Microsoft Forum 2016 http://www.microsoftforum.it

    Iscrizioni: https://www.microsoftevents.com/profile/form/index.cfm?PKformID=0x103893e0fa Proactive Monitoring with Task Scheduler | Dynamics NAV Team Blog

    Monday, March 07, 2016 “Proactive Monitoring with Task Scheduler”, very nice post by NAV Team.

    Here in Part V of the “Monitoring and Admin” coffee breaks, we will schedule a Windows PowerShell script with these two purposes:

    • Check for heartbeat (check if Dynamics NAV is still running), and • Check for a threshold value, for example MEM or CPU exceeding a max value Source and read all @ Coffee Break: Proactive Monitoring with Task Scheduler | Dynamics NAV Team Blog

    162 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) “Top Reasons” to Upgrade to Microsoft Dynamics ...

    Tuesday, March 08, 2016

    “Top Reasons” to Upgrade to Microsoft Dynamics NAV 2016

    .. and NAV 2015/2016 best Features …nice Microsoft official document about “ NAV 2016 Upgrade Top Reasons” below.

    Source: http://qssd.com/images/uploads/MSDNAV2016_TopReasonsUpgrade_Factsheet.pdf

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 163 ..another good link bout moving to NAV 2016 top reasons here:

    5 Top Reasons to Move to Dynamics NAV 2016

    Source http://cybereaglemanagement.com.au/erp/5-Top-Reasons-to-Move-to-Dynamics- NAV-2016

    “With the launch of Dynamics NAV 2016, Microsoft has made it more compelling for NAV users to make the move to NAV 2016.”

    1. Native integration with CRM Online

    It is looking bright for the management of customer engagements as NAV 2016 will be natively integrated with CRM. This means less work on integration work using clunky or third-party tools and just getting that long-awaited seamless integration between these two systems. Manage leads and opportunities in CRM, process orders in NAV and access customer data from either.

    2. Work natively with Azure

    Now you can just configure NAV 2016 with Azure SQL. You get all the advantages of Azure including high availability, built-in redundancy, security, and value.

    3. Access from all your devices

    Apart from your desktop and tablet, you will also be able to access NAV 2016 from your smartphone with native apps and support for Windows, IOS, and Android. Browser enhancements also bring improvements to performance and user productivity. Access NAV 2016 from any device from anywhere you are connected.

    4. Business Workflows

    Using workflows you can automate routings for approvals of business documents such as Purchase Orders that are over a defined threshold or Sales orders that have gone beyond a customer’s credit limit. Using workflows you can now define notifications that

    164 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) are triggered by business events that keep you on top of your business. Processes can also be automated to trigger things as basic as doing a calculation or executing an action.

    5. e-Everything

    From electronic invoicing to OCR, you now get powerful tools for document management.

    ..another good site about “Last NAV releases 2015/2016” best features below:

    What’s New in MS Dynamics NAV 2015 & 2016 (Best Features)

    Source: http://skelia.com/whats-new-in-ms-dynamics-nav-2015-2016

    MS Dynamics NAV is an ERP system intended to help small and medium enterprises with manufacturing, finance, supply chain and customer relationship management, ecommerce and analytics. Its latest version NAV 2015 provides significant capabilities but Microsoft is planning to offer much more in NAV 2016.

    But in this article, I will primarily summarize enhancements in NAV 2015 and 2016 that introduce considerable advantages to performance and usability. Also, an emphasis will be placed on the main improvements that have been done and will be done.

    Performance

    It is widely known that, in old versions of Dynamics NAV, performance deteriorated while the database increased in size. Now, some performance bottlenecks are unblocked due to newly implemented three-tier architecture. So, let’s take a closer look at some of the most noticeable advantages of the 2015 and 2016 upgrades:

    · In NAV 2015, improved Server and Service Tiers help to decrease the amount of traffic among SQL Server, Dynamics NAV Server and client. This enables better network performance – business logic runs only on the NAV Server tier now.

    · Starting from NAV 2013 R2, WEB client has already provided better performance because most of the processes are executed by the Dynamics NAV WEB server.

    · New Dynamics NAV versions have improved SQL Server performance:

    1. Changed cache usage: Now, Dynamics NAV Server is responsible for caching the requested data for all users; in old versions, every connection required its own cache every time. 2. MARS (multiple active results sets) implemented: Functions Find(‘-’), Find(‘+’), Next

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 165 work faster. 3. Filtering on FlowFields mainly processed with a single SQL statement: Previously, filtering on FlowFields was called as an SQL statement for each filtered FlowField and for each record in the table in order to calculate the filtered FlowFields. 4. Added a new Object – NAV Query: It allows building queries in a single SQL command and getting read-only results which work faster than table-based data. Usability & Other Features

    The following global improvements were added:

    · NAV 2015 client is available on Tablets and NAV 2016 client will be also available on mobile devices.

    · Both Nav 2015 & 2016 provide excellent integration with native Business Intelligence and Office 365.

    · Excel capabilities and Power BI allow you to analyze and visualize data.

    · Word Templates help you create your own templates for any kind of document reports and import them to NAV.

    · In NAV 2016, it will be possible to integrate with Online Dynamics CRM to extend enterprise possibilities.

    · Starting from NAV 2015, you can easily schedule reports in the Report Inbox section of Role Center. For printed reports it is also possible to choose the output format of the Layout – Word, Excel or PDF.

    · In NAV 2015, the Mandatory Field property was added. Now, it is easier to manage the user interface without adding a new checking code to triggers and functions. Also, it becomes user-friendly interpretation of such fields.

    · In NAV 2015, Bank Data Conversion Service on Microsoft Azure enables automatic processes for electronic payments. There were prepared some template functions for the biggest banks to make Dynamics NAV flexible for export/import payments and receipts.

    · In NAV 2016, workflow enhancements are expected to improve customized automation around billing, HR and Payroll, financial and other critical functions.

    · And the last quite useful and important feature of NAV 2015 is the possibility to simplify the user interface in the UI Removal feature. You can delete unused fields and/or actions on the pages. And that makes pages easier to observe and navigate.

    MY NAV 2016 SURVEY RESULTS

    (FROM MY BLOG – BEST VOTED NAV 2016 TECHNICAL FEATURES)

    166 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) … and the winners are (best 5 most voted):

    • Eventing in C/AL Workflow

    Extensions

    Universal APP

    Best in “Others Features”: Intellisense for C/AL

    NAV 2016 Le Novità (What’s New) https://www.linkedin.com/pulse/le-novita-microsoft-dynamics-nav-2016-roberto-stefanetti http://www.soluzioniedp.it/admin/public/articolo/9f8e89cdc3e55c820ba8b6017cf1b842/file s/WhatsNew_NAV2016.pdf

    You are welcome! “HOW TO RESET” NAV “BAD” USER

    Thursday, March 10, 2016

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 167 “HOW TO RESET” NAV “BAD” USER

    If you have some issues with NAV single user (ex; can’t login, permissions lost, errors on pages etc.), you can delete ALL user configuration and after recreate a new user.

    Follow procedure below.

    use DB

    GO

    1) FIRST: SELECT [User Security ID] from USERNAME

    retrieve User Security ID (User ID by uniqueidentifier)

    select [User Security ID] from [dbo].[User] where [User Name] = ‘DOMAINUSER1’

    –> example: User Security ID output: 49089BA8-91C5-4BD2-A322-7797760736B2 (User ID by uniqueidentifier)

    2) SECOND: DELETE users configuration using [User Security ID] extracted from user name

    delete [dbo].[Access Control] where [User Security ID] = N’49089BA8-91C5-4BD2-A322- 7797760736B2′

    delete [dbo].[Page Data Personalization] where [User SID] = N’49089BA8-91C5-4BD2- A322-7797760736B2′

    delete [dbo].[User Metadata] where [User SID] = N’49089BA8-91C5-4BD2-A322- 7797760736B2′

    delete [dbo].[User Property] where [User Security ID] = N’49089BA8-91C5-4BD2-A322- 7797760736B2′

    delete [dbo].[User Personalization] where [User SID] = N’49089BA8-91C5-4BD2-A322- 7797760736B2′

    delete [dbo].[User Default Style Sheet] where [User ID] = N’49089BA8-91C5-4BD2-A322-

    168 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 7797760736B2′

    GO

    NB: STOP NAV SERVICE BEFORE DELETING from SQL !!/

    STOP NAV SERVER Service (you can’t delete users from SQL with NAV server active- “USER” table is locked)

    3) LAST: delete user (and after recreate form NAV User Page) delete [dbo].[User] where [User Name] = ‘DOMAINUSER1’

    GO

    ** If you have NAV pending services, use KIll service script below:

    KILLING PENDING SERVICE PROCEDURE

    Kill Service Script sc queryex MicrosoftDynamicsNavServer$ITA result –> Service Name

    Process ID : PID 10484 taskkill /PID 10484 /F result –> process killed

    Have a nice day ! Power BI Integration – Microsoft Dynamics NAV 2016 Content Package

    Tuesday, March 15, 2016

    “Connect your Microsoft Dynamics NAV data with Power BI” to visualize your company’s key data and discover actionable insights.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 169 Source: Power BI Integration – Microsoft Dynamics NAV | Microsoft Power BI

    Power BI Content package for NAV 2016 Download

    Source: http://www.socius1.com/powerbi-content-package-for-microsoft-dynamics-nav- 2016

    NAV Team Blog Source Post: https://blogs.msdn.microsoft.com/nav/2015/10/07/powerbi- content-package-for-microsoft-dynamics-nav-2016

    CONNECTION PROCEDURE STEPS

    1. Sign in to PowerBI.com. 2. Select the content package for Microsoft Dynamics NAV. 3. Connect a Microsoft Dynamics NAV instance to the content package. 1) From My WorkSpace select “Content Package (Dynamics NAV)”

    2) look at “Web Services” in Web Services List (exiting in Cronus Demo)

    3) Connect to NAV Server Instance (Ddata)

    Wait and … Bingo !

    170 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) SCM (Source Control Management) with NAV

    Friday, March 18, 2016 SCM (Source Control Management) with NAV do you need to use NAV with SCM (Source control Management) integration ?

    …you can use two applications to reach this goal.

    – Visual Studio Online (and team foundation server) (free for 5 users) https://www.visualstudio.com/en-us/products/visual-studio-team-services-pricing-vs.aspx

    – GIT (free and open source) https://www.git-scm.com/about/free-and-open-source

    You can find a script on codeplex for using GIT and NAV (integration with TFS and GIT) …. and Others nice free scripts at links below (always on codeplex repository)

    1) NAV Powershell scripts and TFS Build Template https://navscripts.codeplex.com/

    2) TFS Build Template for GIT repository https://navscripts.codeplex.com/wikipage?title=TFS%20Build%20Template&referringTitle =Home

    Some parts of the scripts are based on work (Waldo) see http://www.waldo.be/tag/powershell/

    Some parts are based on PowerShell scripts from module “Microsoft.Dynamics.Nav.Ide” made by Microsoft people.

    My GIT@ https://github.com/rstefanetti https://github.com/rstefanetti/NAV_SQL

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 171 Some links about NAV 2016 “Extensions”

    Thursday, March 31, 2016 Some links about NAV 2016 “Extensions”

    from MSDN Online NAV Section

    Extending Microsoft Dynamics NAV Using Extension Packages https://msdn.microsoft.com/en-us/library/mt574417(v=nav.90).aspx

    Extension Packages Capability Support Matrix https://msdn.microsoft.com/en-us/library/mt574414(v=nav.90).aspx

    Extensions “How-to” links How to: Develop an Extension https://msdn.microsoft.com/en-us/library/mt574395(v=nav.90).aspx

    How to: Create an Extension Package https://msdn.microsoft.com/en-us/library/mt600264(v=nav.90).aspx

    How to: Publish and Install an Extension https://msdn.microsoft.com/en-us/library/mt600252(v=nav.90).aspx

    Extensions Cmdlets Development Cmdlets for Microsoft Dynamics NAV Extensions https://msdn.microsoft.com/en-us/library/mt584152(v=nav.90).aspx

    Administration Cmdlets for Microsoft Dynamics NAV Extensions https://msdn.microsoft.com/en-us/library/mt584148(v=nav.90).aspx

    NAV Team Blog

    Introducing extensions in NAV 2016 https://blogs.msdn.microsoft.com/nav/2015/10/12/introducing-extensions-in-microsoft- dynamics-nav-2016/

    Videos

    Introduction to Eventing and Extensions in Dynamics NAV 2016

    Microsoft Dynamics NAV 2016 Extensions Explained

    How Do I: Create an Extension Package in Microsoft Dynamics NAV 2016

    172 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) How Do I: Deploy and Manage Extensions in Microsoft Dynamics NAV 2016

    …also some links about “Events” Introducing Events https://msdn.microsoft.com/en-us/library/mt299398(v=nav.90).aspx

    Best Practices with Microsoft Dynamics NAV Events https://msdn.microsoft.com/en-us/library/mt299402(v=nav.90).aspx

    Walkthrough: Publishing, Raising, and Subcribing to an Event in Microsoft Dynamics NAV https://msdn.microsoft.com/en-us/library/mt299404(v=nav.90).aspx

    Walkthrough: Implementing New Workflow Events and Responses https://msdn.microsoft.com/en-us/library/mt574349(v=nav.90).aspx

    Integration Events in Microsoft Dynamics NAV 2016 https://blogs.msdn.microsoft.com/nav/2015/10/15/integration-events-in-microsoft- dynamics-nav-2016/

    Introduction to Eventing and Extensions in Dynamics NAV 2016https://www.youtube.com/watch?v=djYR2toCqzE Microsoft SQL Server Developer Edition is now free | SQL Server Blog

    Friday, April 01, 2016 Official News from Microsoft’s Information Platform

    Source: Microsoft SQL Server Developer Edition is now free | SQL Server Blog Project Madeira “IS ON” – try public ...

    Tuesday, April 05, 2016

    https://lnkd.in/ejtwSYH https://madeira.microsoft.com/en-us/

    Business solution re invented

    “Microsoft is reinventing business productivity with Project “Madeira.” Start the preview to see how easy it is to connect business processes with familiar Microsoft productivity tools to grow sales, manage finances, and streamline your operations—in the office, or on the go.”

    Run your business within Office 365

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 173 “Project “Madeira” offers an embedded experience within Office 365 so you can create customers, vendors, quotes, and invoices without leaving Outlook. Export data to Excel for analyzing and create your outgoing documents in Word.”

    Today we are proud to announce the public preview of code name Microsoft “Project Madeira,” a completely reinve nted business management solution for small and midsize businesses (SMBs).

    “Project Madeira” will be available in public preview over the next several months as we collect feedback and fine-tune the user experience. The “ Project Madeira” team is looking forward to hearing from you! Sign up in seconds now, and use the feedback forums to let us know what you think.

    https://community.dynamics.com/b/msftdynamicsblog/archive/2016/04/12/project- madeira-public-preview-now-available

    Let us know what you think of Project Madeira Microsoft Project ‘Madeira’ – General Feedback

    https://ideas.projectmadeira.com/forums/350115-microsoft-project-madeira-general- feedback

    Project Madeira “APP” Preview

    “….Manage your sales, finances, billing, purchasing, and inventory — all without leaving Outlook”! … great !

    “ Microsoft is on a mission to reinvent productivity with a comprehensive business management solution that works right within Office 365. Start your preview of Project “Madeira” to see how easy it is to manage your sales, finances, billing, purchasing, and inventory — all without leaving Outlook. This Project “Madeira” for Windows app extends the experience to your mobile and touch-enabled devices for productivity on the go.”

    Try Madeira @ .. https://madeira.microsoft.com

    174 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 175 How to limit multisessions logins in NAV (from NAV 4 to NAV 2009 R2...

    Thursday, April 07, 2016 How to limit multisessions logins in NAV (from NAV 4 to NAV 2009 R2 Classic)

    OnCompanyOpen_Trigger

    Variables Name DataType Subtype recUser Record User recSessions Record Session CanLogin Boolean

    //MultiLogin Check

    IF recUser.GET(UPPERCASE(USERID)) THEN BEGIN recSessions.SETRANGE(“User ID”, UPPERCASE(USERID)) ; //utente connesso recSessions.SETRANGE(“Application Name”,’Microsoft Dynamics NAV Classic client’); //controllo solo per classic client recSessions.SETRANGE(“Login Type”, recSessions.”Login Type”::Database); //solo per utenti DB IF recSessions.COUNT > 1 THEN IF recUser.MultiLogin = FALSE THEN //se NO multilogin esce BEGIN //MESSAGE(‘Utente sta usando già 1 Licenza NAV, MultiLogin NON Permesso per questo utente’); CloseDB; //Chiude le session NAV con WSHELL Automation END; END;

    Function CloseDB()

    // Using WShell Automation

    Variables Name DataType Subtype Length WSHell Automation ‘Windows Script Host Object Model’.WshShell

    176 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) CREATE(WSHell); WSHell.Popup(‘Utente sta usando già 1 Licenza NAV, MultiLogin NON Permesso per questo utente’); WSHell.SendKeys(‘%{F4}’); CLEAR(WSHell); End Function New Book – “Implementing Dynamics NAV 2016&...

    Friday, April 15, 2016

    Source: New Book – Implementing Dynamics NAV 2016 – Confessions of a Dynamics NAV Consultant

    Packtpub.com link https://www.packtpub.com/big-data-and-business-intelligence/implementing-microsoft- dynamics-nav-third-edition Italy Local Functionality – NAV 2016

    Friday, April 22, 2016 …some people have asked me about the “ Italian localization of NAV”, the features are explained in the help of NAV on MSDN online.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 177 “The following topics describe the local functionality in the Italian version of Microsoft Dynamics NAV 2016.”

    Page Source: NAV on MSDN Online https://msdn.microsoft.com/en- us/library/hh937837(v=nav.90).aspx

    Below the sections with directs links:

    What’s New

    Vendor Payments and Customer Bills Overview Fiscal Inventory Valuation Italian Fixed Assets Interest on Arrears Overview Italian VAT How to: Set Up Withholding Tax How to: Set Up Journal Templates and Batches How to: Set Up Company Information How to: Set Up Payment Terms How to: Define Debit and Credit Amounts How to: Close a Fiscal Year Reversing Journal Entries Italian Subcontracting

    See Also Italy Local Functionality Tables, Reports, Batch Jobs, and Windows

    Objects\Batch Detsils

    https://msdn.microsoft.com/en-us/library/hh929872(v=nav.90).aspx

    Example of functionalities, two links:

    “Fiscal Inventory Valuation” > https://msdn.microsoft.com/en- us/library/hh937828(v=nav.90).aspx

    “Italian VAT” > https://msdn.microsoft.com/en-us/library/hh937826(v=nav.90).aspx Le soluzioni che abbiamo presentato al MSFORUM2016

    Thursday, April 28, 2016 Scopri le soluzioni che con il Consorzio NAV-lab abbiamo presentato al #MSFORUM2016. TempoZero per Microsoft Dynamics NAV 2016 e IEM Industrial Equipment Manufacturing, soluzioni che aiutano le aziende…

    Tempo Zero 2016

    178 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) http://www.soluzioniedp.it/file/tempo-zero- defpptx/bd6d3106ba83448a7dedc6c595cc77ea/

    IEMIndustrial Equipment Manufacturing http://www.soluzioniedp.it/admin/public/articolo/abd875e9063acf13eb39abbdeb256d82/fil es/IEM_SEDP.pdf

    Sorgente: Le soluzioni che abbiamo presentato al MSFORUM2016 “Microsoft Flow” Preview

    Friday, April 29, 2016

    “Work less, do more with Microsoft Flow”

    Create automated workflows between your favorite apps and services to get notifications, synchronize files, collect data, and more.

    Automate tasks by integrating your favorite apps with Microsoft Flow. Make repetitive tasks easy with workflow automation.

    …you are welcome !

    Source https://flow.microsoft.com/en-us/ PRODUCTION ORDERS IN NAV

    Sunday, May 01, 2016 PRODUCTION ORDERS IN NAV …a short guide about NAV Production Orders, based on MSDN Online NAV help.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 179 PRODUCTION ORDER PURPOSE General Definiton : “Production Order – an order that initiates the manufacturing process”

    Wikipedia Defintion: “ A production order is an order issued within a company to produce a specific quantity of material within a certain timeframe. A production order may be issued pursuant to a sales order, and its issuance triggers a number of events. If components in the bill of materials are in stock, reservations are generated for those items; if they are not in stock, then requisition orders may be generated. Requisition orders may also be generated for production that occurs externally to the firm. Planned costs for the order are also generated and capacity requirements are generated for the work centers.” https://en.wikipedia.org/wiki/Production_order

    NAV PERSPECTIVE: “Produc tion orders are the central components of the Microsoft Dynamics NAV’s manufacturing functionality. Produ ction orders can be used to capture cost. However, there are other ways to capture costs, it depends upon business requirements.”

    NAV PRODUCTION ORDERS FEATURES Production orders contain the following information: -Products planned for manufacturing -Materials required for the planned production orders -Products that have just been manufactured -Materials that have already been selected -Products that have been manufactured in the past -Materials that were used in previous manufacturing

    Production orders are the starting point for: -Planning future manufacturing -Controlling current manufacturing -Tracking of finished manufacturing

    Production orders go through five different statuses: -Simulated -Planned -Firm Planned -Released -Finished NB: is not possible to change the status of a production order manually.

    PRODUCTION ORDERS TYPES Simulated Production Order – SPO The Simulated Production Order (SPO) is unique based on the following characteristics: -It is not real. -It does not influence order planning.

    “As its name implies, it is not real and the main purpose is for quoting and costing,” SPO does not influence the planning of orders. Planning (MPS and MRP, discussed in other chapters) neither considers nor is affected by simulated production orders. Also, a simulated production order cannot be used as a template because it disappears when its status changes.

    180 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Planned Production Order – PPO The Planned Production Order (PPO) has the following characteristics: -PPOs affect capacity requirements. -PPOs serve as good workload estimates. -PPOs need careful planning.

    PPOs are similar to released production orders and provide input to capacity requirements planning by showing the total capacity requirements by work center or machine center. A PPO represents the best estimate of the future work center or machine center load based on available information. Typically, they are generated from planning, but can also be created manually. Because they are erased during subsequent planning generations, manual creation is not practical. The PPO generation in planning results in a suggested “planned order release” that includes quantity, release date, and due date. The planning system logic is based on the replenishment system, reorder policies, and order modifiers that it encounters in the net requirements planning process.

    Firm Planned Production Order – FPPO The Firm Planned Production Order (FPPO) has the following characteristics: -FPPOs can be manually changed. -FPPOs are placeholders. -FPPOs are created from planning, manual creation, or sales orders. -FPPO creation results in a planned order release.

    Planning cannot change an FPPO, but the Production Planner can make changes manually to the production order. The Production Planner can automatically create an FPPO from a sales order.

    An FPPO acts as a placeholder in the planning schedule for some future job released to the floor. An FPPO can be generated from planning or created manually or from sales orders. They are not erased during subsequent planning. An FPPOs generation in planning results in a suggested planned order release that includes quantity, release date, and due date. The planning system logic is based on the replenishment system, reorder policies, and order modifiers that it encounters in the net requirements planning process. To view an FPPOs impact in Microsoft Dynamics NAV 2009, look at the load for each work center or machine center on the firm planned production order’s routing.

    Released Production Order – RPO The Released Production Order (RPO) has the following characteristics: -RPOs do not indicate product removal. -RPOs are not always created immediately after a sales order. -RPOs can record material consumption from a product output.

    “When a production order has been released, it does not necessarily mean that materials have been picked or the job has physically moved to its first operation.” In an MTO (Make-to-Order) environment, it is not unusual to create a released production order immediately after the entry of the sales order. Actual material consumption and product output can be recorded manually with an RPO. In addition, automatic flushing of consumption and product output only occurs for RPOs.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 181 Finished Production Order – FPO The Finished Production Order (FPO) has the following characteristics: FPOs are terminal. An FPO is an order that, for some reason, has been terminated. Usually, the order has already been manufactured. FPOs can track back to other orders. FPOs are used for statistical reporting and to maintain the ability to track back to other orders (for example, sales, production, and purchase). FPOs can never be changed. The ability to track back to a finished production order allows you to review the detailed history.

    NB:Finished Production Orders cannot be posted to or deleted. The status of a production order is changed to Finished to maintain historical information and to complete accounting and/or automatic flushing entries.

    Production order: Source Types Note that the Source Type for this order is Item. Three Source Types are available for a production order: -Item -Family -Sales Header

    Item – An item production order is wanted when one production order for each individual line of a sales order is appropriate. Family – A Family production order is needed when a group of items always needs to be manufactured together. Sales header – A sales header production order is appropriate when you want to produce all items of a sales order from one production order. This is useful in a large project environment where there is a relatively long manufacturing leadtime.

    Scheduling\Rescheduling a production order

    – Backward scheduling begins from the ending date and proceeds backward to the required starting date. – Forward scheduling begins at the starting date and proceeds forward to the finishing date.

    “The program automatically schedules the order to be completed one day before the due date.”

    PRODUCTION SCHEDULING PROCESS FLOW

    182 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 25 Best Dynamics NAV Blogs of 2016 – My blog is in the li...

    Tuesday, May 03, 2016 Great Win ! My blog in TOP 25 NAV Sites of 2016 !

    “We are proud to present you our annual list of the top Dynamics NAV websites for 2016. Congratulations to the blogs that made it and continue to support this business solution. Microsoft Dynamics NAV has come a long way recently and only continues to see further development from its predecessor Navision. From the launch of NAV in 2006, to the latest and greatest version Dynamics NAV 2016, this product’s ever expanding versions just keep on getting better. ”

    Source: https://www.dynamics101.com/top-25-dynamics-nav-blogs-2016/

    Top 25 Dynamics NAV Websites Last Updated May 2nd, 2016

    • Magno’s Blog • TharangaC – Dynamics NAV Blog • Eric Wauters’s Dynamics NAV Blog • Alex Chow’s Confessions of a Dynamics NAV Consultant • Tomas’ Navisionary • Roberto Stefanetti NAV Blog • Jatin Patel – Microsoft Dynamics NAV • Luc van Vugt’s dynamiXs • Olof Simren’s Dynamics NAV Blog • Vjekoslav Babic’s Dynamics NAV Blog • Gunnar Gestsson’s Dynamics NAV Blog • Aleksandar Totović’s NAV4Construction • Arend-Jan Kauffmann’s Dynamics NAV Thoughts • Erik Hougaard’s Applied Hacking • Jörg Stryk’s NAV/SQL Performance • Kerry Rosvold’s Dynamics NAV Financials • Mohana Yadav’s Dynamics NAV Blog • Saurav Dhyani’s Dynamics NAV Blog • Soren Klemmensen’s Thinking NAV • Mark Brummel’s Dynamics NAV Blog • Peter Wibeck’s Dynamics NAV Blog • Ron van der Wijngaard and Satya Srikant Mantha’s Agile.NAV • Kamil Sacek’s Dynamics NAV Blog • AJ Ansari’s Let’s Talk NAV

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 183 • Snehanshu Mandal’s NAV – The Fun Starts Here .. you are Welcome !!!

    09-05-2016 Novita’

    Intervista a Roberto Stefanetti: Miglior Blogger Dynamics NAV! My iterview on SEDP Site

    http://www.soluzioniedp.it/articolo/novita/intervista-a-roberto-stefanetti-miglior-blogger- dynamics-nav/6e9f498f73ff6f461c942e3d3a612363/ “Gestione magazzino fiscale”, NAV Italian Local...

    Tuesday, May 03, 2016 “Gestione magazzino fiscale”, NAV Italian Localization

    In questo post sono fornite informazioni tecniche sui concetti e sui principi utilizzati nelle funzionalità di magazzino fiscale presente nella localizzazione italiana di NAV.

    Il costing di magazzino, detto anche gestione costing riguarda la registrazione e il reporting dei costi operativi business.

    Valutazione magazzino fiscale (tipologia di costi gestibili)

    “È necessario inviare un report annuale che mostra il valore monetario degli articoli di magazzino per l’anno fiscale. In base alle normative italiane per la valutazione fiscale di magazzino”, è possibile calcolare le seguenti tipologie di costi:

    · Costo medio annuale

    · Costo medio ponderato

    · Costo FIFO

    · Costo LIFO

    · Costo LIFO discreto

    PROCESSI NAV MAGAZZINO FISCALE – MAPPA MENTALE BASIC RS

    184 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) MENU’ VALUTAZIONE MAGAZZINO FISCALE

    SETUP MAGAZZINO

    Setup della modalità e del periodo di aggiornamento costi tramite registrazioni di aggiustamenti magazzino. In questo esempio aggiornamento automatico dei costi al posting dei documenti (SEMPRE) e gestione del costo medio giornaliero per articolovariantemagazzino (giornaliero in questo caso)

    CAMPO UBICAZIONE OBBLIGATORIA

    Specifica se gli articoli devono avere un codice ubicazione per essere registrati ( soluzione consigliata). Inserire un segno di spunta nel campo se si desidera che venga richiesta l’immissione di un codice di ubicazione durante la registrazione di transazioni relative agli articoli.

    SETUP COSTING ARTICOLO

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 185 PERIODI DI MAGAZZINO

    Specifica un periodo di tempo durante il quale è possibile registrare modifiche ai valori di magazzino. Un periodo di magazzino è definito dalla data in cui termina, ovvero la data di fine. Quando si chiude un periodo di magazzino, non è possibile registrare modifiche al valore di magazzino, previsto o fatturato, né registrare nuovi valori nel magazzino precedenti alla data di fine. Se nel periodo chiuso sono presenti movimenti articoli aperti, ovvero quantità positive non ancora consumate da, o collegate a, transazioni in uscita, è ancora possibile collegare quantità in uscita a questi movimenti, anche se il periodo è chiuso.

    COSTO PRIMA DELL’INIZIO (BEFORE NAV COSTING)

    Specifica le informazioni sui costi articolo presenti prima che l’utente abbia iniziato a utilizzare Microsoft Dynamics NAV nella propria organizzazione. Queste informazioni sono necessarie per la valutazione di magazzino nel primo anno dopo l’implementazione di Microsoft Dynamics NAV.

    È possibile utilizzare questa tabella per immettere le informazioni relative agli articoli di magazzino, ad esempio i costi dei componenti, dei cicli di produzione e quelli generali.

    NBA: Saranno usati dal report di valutazione magazzino (costi di startup magazzino in NAV). I Valori sono globali (NON distinti per singolo magazzino)

    186 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) PERIODI CONTEGGIO INVENTARIO FISICO

    Calcola la periodicità dell’inventario fisico

    CALCOLO VALORE MAGAZZINO WIP (da Produzione)

    Calcola il valore WIP della produzione utilizzando gli ordini di produzione filtrabili per tipologiaperiodo analisi.

    Calcola costi fine anno

    In provvisorio è lanciabile per piu periodi e per più volte, calcola il valore di magazzino; se lanciata in definitiva CHIUDE l’anno fiscale di magazzino.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 187 RISULTATO à CARICAMENTO TABELLA “STORICO COSTI ARTICOLI”

    Ogni volta che si calcola il magazzino viene alimentata la tabella del costo storico

    Se lancio in definitivo del calcolo

    È sempre da lanciare a fine anno fiscale di magazzino es: lancio al “31/12/15” (per chiudere l’anno 2015);

    Se si lancia parziale segnala l’errore.

    CHIUSURA PERIODO MAGAZZINO

    Prima di chiudere occorre eseguire questa serie di attività:

    1) Lanciare aggiornamento costi NAV (“Adjust Cost Entries” report)

    2) Stampare il “report di test”

    Esempio di esito del report di test

    image022 image021

    188 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 3) Lanciare il “ Chiudi Periodo”

    PERIODI DI MAGAZZINO CHIUSI

    Flag indica la chiusura del periodo

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 189 MOVIMENTI PERIODI MAGAZZINO

    Movimenti relativi al periodo di magazzino

    RIAPERTURA PERIODO CHIUSO

    E’ possibile riaprire un periodo se necessario per sistemare costigiacenze errate.

    REGISTRI DI MAGAZZINO

    Storico movimenti di magazzino (scritture raggruppate per blocco data posting)

    Storia delle transazioni con operatoredata

    190 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) RISULTATO FINALE PROCEDURA à REPORT VALUTAZIONE “MAGAZZINO FISCALE”

    Si appoggia alle tabelle sopra se compilate per dare un “ costo certo” archiviato in dati storici.

    OPZIONI STAMPA (tutte le tipologie)

    STAMPA VALUTAZIONE MAG. AL “COSTO FISCALE CALCOLATO”

    “la data di competenza serve per recuperare il costo fiscale calcolato e registrato nellatabella Storico costo articolo, il filtro data è richiesto per calcolare la giacenza del periodo richiesto”. S e non viene indicato il filtro data il report restituisce un messaggio di errore tecnico al lancio dello stesso.

    NB: dato che non è ben documentata la gestione dei filtri di lancio del report (e lo scopo\modo di utilizzo degli stessi) è stata suggerita una modifica all’ help italiano di NAV che dovrebbe, a detta di Microsoft, essere modificato a breve.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 191 RISULTATO DEL REPORT

    Article is also available on TECHNET WIKI

    https://social.technet.microsoft.com/wiki/contents/articles/36541.dynamics-nav-2016- gestione-magazzino-fiscale-it-it.aspx Comparing Dynamics NAV 2016 and SAP Business One 9.1

    Friday, May 06, 2016 ….nice post about NAV 2016 Vs SAP Bone 9.1 comparision.

    192 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) “We have completed a comparison of Microsoft NAV with SAP Business One, the comparison is based on public information sourced between Nov 2015 and Jan 2016.”

    Source: “ Comparing NAV and SAP Bone” http://www.advantage.co.uk/blog/dynamics-nav-2016-sap-business-one-9-1/ ABOUT NAV 2016 NAS AND REPORTS SCHEDULING

    Tuesday, May 10, 2016 ABOUT NAV 2016 NAS AND REPORTS SCHEDULING

    A little “ how-to” post about NAV NAS Configuration and Report Scheduling, below some info, links and some screens for simple configuration.

    NAV 2016 NAS

    – “ NAS services are a middle-tier server component that executes business logic without a user interface or user interaction. NAS services in Microsoft Dynamics NAV Server support applications such as Microsoft Office Outlook Integration and the NAV Job Queue.

    – “NAS” stands for NAV Application Server, which was a component in earlier versions of Microsoft Dynamics NAV. NAS services replace the NAS component, and this requires you to modify any use of server-side COM.”

    …nice posts\pages about NAS below:

    NAV Help on MSDN Online

    “Configuring NAS Services” https://msdn.microsoft.com/en-us/library/dd355183(v=nav.90).aspx

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 193 About Job Queues

    https://msdn.microsoft.com/en-us/library/hh879489(v=nav.90).aspx

    How to: Set Up Job Queues

    https://msdn.microsoft.com/en-us/library/hh879053(v=nav.90).aspx

    How to: Create Job Queue Categories

    https://msdn.microsoft.com/en-us/library/hh179528(v=nav.90).aspx

    Video: How Do I: Implement the Job Queue Entry Pattern

    https://msdn.microsoft.com/de-de/dynamics/nav/dn864863

    “Background Posting and Job Queue in Microsoft Dynamics NAV 2013” by NAV Team Blog, old but nice post about background posting.

    http://blogs.msdn.com/b/nav/archive/2012/08/31/background-posting-and-job-queue-in- microsoft-dynamics-nav-2013.aspx

    …some screens about “NAS CONFIGURATION AND SETUP”

    NAS SERVER SETUP

    RETRY ATTEMPS PER DAY

    RUN NAS WITH ADMIN RIGHTS

    “Specifies whether NAS services run operations with administrator rights instead of the rights granted to the Microsoft Dynamics NAV Server service account.”

    • If you select this setting, NAS services will have full permissions in Microsoft Dynamics NAV, similar to the permissions that are granted by the SUPER permission set. The Microsoft Dynamics NAV Server service account is not required to be set up as a user in Microsoft Dynamics NAV. • If you clear this setting, the Microsoft Dynamics NAV Server service account must be added as a user in Microsoft Dynamics NAV and assigned the permissions that are required to perform the operations.

    194 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) STARTUP ARGUMENT

    “Specifies a string argument that will be used when NAS services start. The argument typically specifies an application type, sometimes with additional configuration information.” Example values: "OSYNCH" , " JOBQUEUE"

    STARTUP CODEUNIT

    Specifies the codeunit that contains the method that will be called by the NASStartupMethod setting.

    Example values:

    0 > When NASStartupCodeunit is set to 0, NAS Services do not start. This is the default value.

    1 > When NAS services start, they run the trigger specified by the NAS Startup Method in codeunit 1

    450 > When NAS services start, they run codeunit 450 (Job Queue – NAS Start Up), and call the method specified by NASStartupMethod.

    STARTUP METHOD

    Specifies the method that will be called in the NASStartupCodeunit.

    Example values:

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 195 "" > If no start method is specified (null string), the OnRun trigger is called.

    StartNAS > NAS services runs the StartNAS method in the NAS Startup Codeunit.

    NB: NAV Help is incorrect for options STARTUP CODEUNIT\STARTUP METHOD

    Microsoft: “The reason being change in NAV 2016, in the Codeunit 1 there no NAShandler function anymore, it has shifted to Codeunit 450. If you still define Codeunit 1, then there has to be code defined in Codeunit 1, or if you define any other codeunit then you provide it here as you know this already. This is BUG in the documentation about configuration parameters, will be fix soon.”

    NAV NAS CONFIGURATION

    LISTA CATEGORIE CODE PROCESSI

    CODE PROCESSI

    MOVIMENTI CODA PROCESSI

    MOVIMENTI LOG CODA PROCESSI

    196 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) DEFINE A NAS PROCESS QUEUE : “EX NOTIFICA”

    EX: NOTIFICATION ENTRY DISPATCHER CARD

    ABOUT REPORT SCHEDULING

    • You can send a report in process scheduling using “ ScheduleProgrammazione” option • Schedule option is available both for RDLC and Word Layout Reports EX: LISTA CLIENTI TOP 10

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 197 REPORTS ELABORATI IN “REPORT ELABORATI”

    … to open a report > “Click on link” !

    …my old post about NAV 2013 NAS configuration here:

    http://blogs.dotnethell.it/dynamicsnav/Configuring-NAS-to-use-Job-Queue__19619.aspx NAV 2016 TESTING NOTIFICATION SYSTEM

    Wednesday, May 11, 2016 Roberto Stefanetti NAV Blog

    “ Something about NAV 2016 Notification system”

    BEST IMPROVEMENTS

    • Approvals: Approval Groups, Auto Delegation, Pool of approvers, Skipping Sequence • Notifications: part of workflow system, notification Scheduling • FULL Integrated Solutions between Workflow & Notification System … IS NOT A GUIDE!!

    You can find ALL detailed information on MSDN:

    “How-to” Manage Notifications Templates

    https://msdn.microsoft.com/en-us/library/hh179441(v=nav.90).aspx

    Setting Up Workflow Notifications

    https://msdn.microsoft.com/en-us/library/dn951472(v=nav.90).aspx

    Walkthrough: Setting Up and Using a Purchase Approval Workflow

    198 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) https://msdn.microsoft.com/en-us/library/dd338778(v=nav.90).aspx

    NAV 2016 NOTIFICATION MENTAL SCHEMA

    NOTIFICATIONS MENU’ ELEMENTS

    DOCUMENT APPROVAL MENU’ ELEMENTS

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 199 ACTIVATE JOBQUEUE TO SEND NOTIFICATIONS

    • For send notifications you need to activate “notification manager” passing MAILNOTIFY parameter to Job queue (in this case NAS runs on my NAV Session, not n NAS Background Session)

    NOTIFICATIONS SETUP AND SCHEDULING

    • Define “ How to” notification system works: assigning notification template and notification scheduling typology (ex: Polling, Batch execution)

    NOTIFICATIONS TEMPLATES

    You can define notifications Delivery Model:…

    View original post 43 more words Roberto Stefanetti’s Reviews: “Implementing Mic...

    Wednesday, May 11, 2016 Roberto Stefanetti’s Reviews: “Implementing Microsoft Dynamics NAV – Third Edition”, Goodreads

    200 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Implementing Microsoft Dynamics NAV – Third Edition by Alex Chow

    Amazon LInk https://www.amazon.it/Implementing-Microsoft-Dynamics-NAV- Third/dp/1784397555?ie=UTF8&camp=3370&creative=23322&creativeASIN=178439755 5&linkCode=as2&redirect=true&ref_=as_li_tf_tl&tag=robertostefan-21

    Roberto Stefanetti ‘s review

    May 11, 2016 bookshelves: nav-2016 , nav-2016-books , nav-2016-implementing Read from May 03 to 10, 2016

    Implementing Microsoft Dynamics NAV – Third Edition “Explore the capabilities of Dynamics NAV 2016 and discover all you need to implement it”Third Published: April 2016, Actual Author: Alex Chow

    My Opinion: “Nice book, for beginners & medium expertise NAV users”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 201 The book is suitable for those who want to start using NAV 2016, does not require a previous technical\functional knowledge, even those who are new to the NAV environment can learn a lot from this book; is a book for everyone.

    “What’s New” in NAV 2016 “core” of the book … nice chapter about NAV 2016 new features: Cue with colors indicator, Rapidstart, OCR Service, CRM Native integration, Workflow, Deferreals, Approvals, Posting Preview, Web, Tablet Clients, Universal App.

    Nice chapter about Powershell cmdlets and upgrade automation it is explained how to perform a release upgrade automatically, good!

    ..another good chapter about Project Management : difference about Waterfall & Agile Approach Waterfall & Agile Approach, use best of them ! , Microsoft Sure Steps > Waterfall & Agile on Microsoft Vision.

    Good chapter about “data migration” Many methods described: by powershell, rapidstart, excel templates, xmlports.. a nice section about “going live in middle of fiscal year” !!

    Upgrading Dynamics NAV Upgrade process checklist … from 3.60 to NAV 2016 “ALL” about NAV Upgrade, reference to Merge Tools (nice tool also for NAV 2016), Merge tools Section, nice section about utilization of Merge tools, actually a good merging\versioning system for NAV Uograde.

    NAV 2016 Debugging Section My favorite section, all aspects of debugging with NAV 2016 are illustrated, for me is the better part of the boook.

    Popular reporting options Good vision about NAV integrations (query, Charts, Web Services OData , Power Pivot and Power BI, Jet Report Express)

    Positive notes Many topics are covered, from the NAV history to NAV 2016 new features, some new features, however, are only listed. A lot of arguments about Financials Management, Sales & Marketing, Purchase,Warehouse, Manufacturing, Jobs, Resource Planning, Service.

    Negative notes\suggestions The section relating to NAV Administration could be more substantial, Workflow is just listed, the notification system is not treated, are also references to multitenant management and NAV on Azure DB.

    Conclusions In conclusion i would say that the overview of topics covered in the book is good for novice\medium expert user who wants to explore NAV’s world.

    Rating: 3.8/5 stars, nice book anyway.

    Roberto Stefanetti

    202 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) you cand find my review here: https://www.goodreads.com/review/show/1633485542 OnDemand NAS Codeunits Scheduling

    Thursday, May 12, 2016 OnDemand NAS Codeunits Scheduling

    With a little modification of standard NAV “ Scheduling Report Page”, is possible to schedule also codeunits !

    You don’t need IT department to schedule you applications handled by codeunits (ex: interfaces, intercompany entries, copy company functions etc.), user can schedule codeunits in his NAS session without use of Process Queue management console. Some standard codeunits have HideDialog functions defined, you can use these functions to bypass client input parameters (es: confirm messages etc.), you are in NOT GUIALLOWED mode with NAS.

    Examples of utilizations:

    • we use OnDemand schedule to launch OnDemand Web Services synchronizations and multicompanies data deployments, we won’t use reports to do this, and we need to handle transactions with great rollback by design (codeunits). Example

    OnDemand schedule of codeunit “ 99000853 Calc. Low-level code”, that require user input confirmation (Confirm)

    Modifications:

    Codeunit 99000853 Calc. Low-level code

    OnRun()

    // Set Hidedialogs TRUE for NAS execution (NAV Service and NAS for user sessions)

    IF NOT GUIALLOWED THEN

    SetHideDialogs(TRUE);

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 203 SetHideDialogs(NewHideDialogs : Boolean)

    HideDialogs := NewHideDialogs;

    //Standard HideDialogs Function

    Custom Page 50001 “Schedule a Codeunit” (new page from “Schedule a Report” Page 682)

    Triggers and functions

    OnOpenPage()

    IF NOT FINDFIRST THEN BEGIN

    INIT;

    ReportEditable := TRUE;

    OutPutEditable := TRUE;

    Status := Status::”On Hold”;

    VALIDATE(“Object Type to Run”,”Object Type to Run”::Codeunit);

    INSERT(TRUE);

    END ;

    Object ID to Run – OnLookup(VAR Text : Text) : Boolean // Show Codeunits List

    IF LookupObjectID(NewObjectID) THEN BEGIN

    Text := FORMAT(NewObjectID);

    EXIT(TRUE);

    END;

    EXIT(FALSE);

    ScheduleACodeunit(CodeunitId : Integer;RequestPageXml : Text) : Boolean

    ScheduleACodeunit.SetParameters(CodeunitId,RequestPageXml);

    EXIT(ScheduleACodeunit.RUNMODAL = ACTION::OK);

    SetParameters(ReportId : Integer;RequestPageXml : Text)

    INIT;

    Status := Status::”On Hold”;

    204 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) VALIDATE(“Object Type to Run”,”Object Type to Run”::Codeunit);

    VALIDATE(“Object ID to Run”,ReportId);

    INSERT(TRUE);

    Example OnDemand Schedule for codeunit 99000853 “Low Level Code Calculation”

    • Select codeunit from list

    After Selection

    • Validate Codeunit • Insert Scheduling Timing

    Check in Process Queue entries

    • You can find your OnDemand Schedule

    Check NAS Log

    • Completed !

    Download Txt Page from here: Page_50001

    You are Welcome !

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 205 NAV 2015 Basic Flowsheets for dummies (IT-IT) – TechNet A...

    Sunday, May 15, 2016 Technical articles, content and resources for IT Professionals working in Microsoft technologies

    Below some NAV 2015 Basic Flowsheets (ITA) … only simple and basic mental schema for newbies (and dummies…)

    Flowsheets Topics

    • Service • CRM NAV • Sales & Shipments • Purchase & Receiving • Manufacturing Source: NAV 2015 Basic Flowsheets for dummies (IT-IT) – TechNet Articles – United States (English) – TechNet Wiki Scrum with Asana in 7 steps | Jose Barato

    Tuesday, May 17, 2016 GREAT POST! SCRUM with ASANA.

    In this post, in only seven steps, I will try to show how I use Scrum with Asana, just by using lists. Here is a short video in Spanish. When I start a Scrum Project, the first thing I do is to create

    Sorgente: Scrum with Asana in 7 steps | Jose Barato | LinkedIn RDLC Report and Performance in Microsoft Dynamics NAV 2015 and 2016...

    Friday, May 20, 2016 RDLC Report and Performance in Microsoft Dynamics NAV 2015 and 2016

    Great post by Duilio Tacconi !

    Source: RDLC Report and Performance in Microsoft Dynamics NAV 2015 and 2016 | Dynamics NAV Team Blog

    206 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Open Pages and Reports with filters using NAV Command lines

    Monday, May 23, 2016 You can have directs shortcuts (or hyperlinks in your emails) to open directly pages & reports passing filters.Example (page):– Base Command dynamicsnav://server.local:port/Db/Compan y/runpage?page=9307 – Filter parameter $filter=%27Purchase%20Header%27.%27 No.%27%20IS%20%27OF16000933%27 – View Mode mode=View Sample Full Command dynamicsnav://server.local:port/Db/Company/runpage?page=9307&$filter=%27Purchase %20Header%27.%27No.%27%20IS%20%27OF16000933%27&mode=View Results > in this case system runs on NAV Client Page “9307 Order List” , the page is filtered on purchase Order No.’ OF16000933‘ ..you can build parametric strings to launch your pages\reports from command line (like existing features in NAV Approval Workflow).

    GESTIONE ASSEMBLAGGI IN NAV (SIMPLE “HOW-TO”)

    Wednesday, May 25, 2016 GESTIONE ASSEMBLAGGI IN NAV (SIMPLE “HOW-TO”)

    ASSEMBLY Vs MANUFACTURING

    “assembly, light manufacturing, and kitting”

    Nice post from NAV Team blog about these different features https://blogs.msdn.microsoft.com/nav/2012/11/20/assembly-management-versus- manufacturing-in-microsoft-dynamics-nav-2013/

    FAST & SIMPLE” HOW-TO” IN ITALIAN LANGUAGE

    GESTIONE ASSEMBLAGGI IN NAV

    In NAV è possibile utilizzare gli ordini di assemblaggio nelle variazioni dei seguenti tipi di business.

    TipoDescrizioneProduzione leggera Spostare o differire le operazioni leggere da reparti a warehouse o centri di distribuzione ( Light Manufacturing) KittingAssembly Prelevare e imballare articoli vendibili come kit oppure creare un assemblaggio di parti per comporre

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 207 ESEMPIO\SCENARIO DI UTILIZZO ES: utile per i KIT (es: vendita del cesto di frutta, vendita del pigiama, Tavolo montato dal cliente)

    ASSUNZIONI\LIMITAZIONI rispetto a gestione con Ordini di Produzione (es: Fase di ASSEMBLAGGIO)

    Ø Necessita di distinta base di assemblaggio

    Ø Non gestisce ordini di produzione

    Ø Non gestisce cicli di lavorazione

    Ø Non gestisce codici legami

    Ø Non gestisce conto lavorazione

    Ø Non gestisce trasferimenti

    Ø Minor controllo sui costiscostamenti

    ORDINE DI ASSEMBLAGGIO – SPECIFICA FUNZIONALE “Specifica quali e quanti articoli assemblare e quali componenti (articoli o risorse) rientrano nell’articolo di assemblaggio.”

    Come gli ordini di produzione, gli ordini di assemblaggio son o ordini interni non destinati a fornitori o clienti e vengono utilizzati per gestire la creazione di articoli vendibili impostati come articoli di assemblaggio. Gli ordini di assemblaggio differiscono da altri tipi di ordine perchéprevedono sia l’output, o rettifica positiva, che il consumo, o rettifica negativa, in fase di registrazione. A questo proposito, la testata ordine di assemblaggio si comporta analogamente a una riga ordine di vendita e le righe ordine di assemblaggio si comportano in modo analogo alle righe registrazioni consumi.

    SETUP ASSEMBLAGGIO Ø Codificare numeratori offerteordiniordinI registrati di assemblaggio

    Ø Dimensioni

    Ø Magazzino Default per ordini di assemblaggio

    208 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) ARTICOLO DI ASSEMBLAGGIO Ø Configurare l’articolo come di assemblaggio (Sistema rifornimento e Politica di Produzione)

    DIBA ASSEMBLAGGIO Ø Configurare la DIBA di Assemblaggio

    Ø È possibile inserire Articoli, Risorse, Note

    Ø È possibile calcolare un COSTO STANDARD di Assemblaggio

    ESPLOSIONE DB Ø È possibile esplodere i livelli inferiori per articoli componenti con DIBA

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 209 CALCOLO COSTO STANDARD ASSEMBLAGGIO Ø È possibile utilizzare il calcolo del costo standard di assemblaggio

    COSTO STANDARD CALCOLATO SU ARTICOLO

    DETTAGLIO COSTI ASSEMBLAGGIO (esplosione)

    210 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) REPORT DETTAGLIO DISTTIBUZIONE DEI COSTI

    ORDINE DI VENDITA – ASSEMBLAGGIO AD “ORDER” Ø In riga ordine inserire un “Articolo di Assemblaggio” es: ART_ASS (in questo caso di tipo ASSEMBLAGGIO SU ORDINE)

    Ø Dopo aver inserito la qtà (nel caso “Assemblaggio su Ordine”) > viene lanciato il calcolo della qtà assemblabile

    Ø Sistema chiede nel caso di NON disponibilità dei componenti se dichiarare comunque l’assemblaggio

    RIGHE ORDINE

    Ø Inserire la QTA’ Assemblaggio su ordine

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 211 Ø Cliccando sul campo “ qtà per assemblaggio su ordine” è possibile vedere i componenti della DIBA

    STAMPA CONFERMA ORDINE Ø È possibile stampare anche le righe relative all’assemblaggio

    212 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) STAMPA ISTRUZIONI DI PRELIEVO Ø Sono inseriti anche i componenti di assemblaggio

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 213 ORDINE DI ASSEMBLAGGIO Ø L’ordine è stato generato in automatico dall’ordine di vendita

    image107 image108

    PAGINA ORDINE DI ASSEMBLAGGIO

    STAMPA ORDINE DI ASSEMBLAGGIO

    214 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) ANALISI DISPONIBILITA’ ARTICOLO PER LIVELLO DB Ø Utile per capire la fattibilità degli assemblaggi

    REGISTRAZIONE ORDINI DI ASSEMBLAGGIO Ø Rilascio

    Ø Registra

    Ø Registra Batch (più ordini assieme)

    NB: è possibile registrare assemblaggi sono se NON LEGATI ad ordine (cioè assemblaggi per magazzino)

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 215 SE PROVO CON ASSEMBLAGGIO SU ORDINE:

    L’ASSEMBLAGGIO VIENE REGISTRATO ALL’EVASIONE DELL’ORDINE Ø Al momento dell’evasione dell’ordine (spedizione)

    Ø Durante la registrazione da ordine,

    Ø Da spedizione warehouse

    Ø Da spedizione raggruppata

    Ø L’ordine di assemblaggio è stato registrato (in questo caso con Spedizione Parziale 2/10 > residuo 8)

    image116 image117

    MOVIMENTI CONTABILI ARTICOLI A fronte di un assemblaggio da Odine I movimenti contabili articoli generati sono di 3 tipi

    Ø Output Assemblaggio > Carico prodotto finito

    Ø Consumo per Assemblaggio > Consumo componenti per produzione del finito

    216 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Ø Vendita > Spedizione da ordine – scarico prodotto finito

    ORDINI DI ASSEMBLASGGIO REGISTRATI Ø È possibile vederestampare gli ordini di assemblaggio registrati

    STATISTICHE ORDINE DI ASSEMBLAGGIO REGISTRATO

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 217 ASSEMBLAGGIO A “STOCK” Ø Nel caso di assemblaggio a stock (per magazzino), l’ordine viene creato slegato dall’ordine di vendita

    Ø Viene dichiarata sia la Qta del documenti che la Qtà da Assemblare

    ANNULLAMENTO ASSEMBLAGGIO (solo per Assemblaggi a Stock) Ø Per gli assemblaggi a Stock è possibile utilizzare la funzione “ Annulla Assemblaggio”

    Ø

    image067 image121

    MOVIMENTI CONTABILI ARTICOLI DI STORNO Ø 1) Vengono generati movimenti contrari per stornare assemblaggio e consumo

    Ø 2) L’ordine di assemblaggio torna in ordini di assemblaggio non registrato

    218 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) PROSPETTO DI PIANIFICAZIONE (MPS PER ARTICOLI DI ASSEMBLAGGIO) Ø Prospetto di pianificazione

    Ø Sistema estrae solo lo stock in quanto l’assemblaggio da ordine è già stato creato

    Es calcolo con articoli ART_ASS|ART_ASS_STOCK (da ordine e da Stock)

    RISULTATO DELLA PIANIFICAZIONE

    TRACCIABILITA’ ORDINE Ø Navigando nella tracciabilità sistema fa comuque vedere l’ordine (ordini) generanti il fabbisogno, nessun legame con gli ordino però è stato generato.

    CREAZIONE ORDINI DI ASSEMBLAGGIO DA PROSPETTO PIANIFICAZIONE Ø Funzione “Esegui Messaggi di Azione”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 219 Ø L’ordine è stato creato dalla pianificazione e se vede in “ Lista Assemblaggi”

    GESTIONE IMPEGNI PER ASSEMBLAGGIO Ø È Possibile impegnare sia il prodotto finito che i componenti utilizzando le procedure standard di NAV

    Ø L’impegno può essere fatto manualmente dalle maschere di assegnazione impegno

    Ø Nel caso di Assemblaggio su Ordine l’impegno è automatico ( riserva per Ordine)

    ESEMPI DI IMPEGNO

    Ø Impegno su Prodotto finito

    220 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) IMPEGNO AUTOMATICO (O DA RIGA CORRENTE)

    SCELTA DA DISPONIBILE DA IMPEGNARE

    Ø Impegno su componenti

    Da funzione “Riga” > Impegno

    Il concetto è lo stesso visto per i prodotti finiti

    image132 image133

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 221 My video here:

    On SlideShare

    Gestione Assemblaggi in NAV from Roberto Stefanetti Microsoft Dynamics Youtube Channel

    Friday, May 27, 2016 Microsoft Dynamics Youtube Channel

    https://www.youtube.com/user/msdyncomm/

    NAV 2016 Videos https://www.youtube.com/user/msdyncomm/search?query=nav+2016

    Source: Microsoft Dynamics Dynamics NAV 2016 Workflow – YouTube

    Saturday, May 28, 2016 My NAV 2016 Workflow video on Youtube NAV 2016 Managing Sending Documents Features

    Monday, May 30, 2016 NAV 2016 Managing Sending Documents Features

    In NAV 2016 managing mailing & sending documents process has been improved.

    222 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Compared to the NAV 2015 version, you can send documents to printer, via email and via EDI in a single operation, also you can set a default “document sending template” for each customer. For this purpose new NAV objects have been introduced.

    “Old” NAV 2015 > E-mail Dialog 9700

    New Pages NAV 2016

    New &Updated Codeunits

    .. below some examples of NAV 2016 new possibilities

    Document “Sending Profiles”

    Ø You can define separate “Sending Profiles”, for example EMAIL, PDF, EDI, FULL Sending : PRINT+EDF+EMAIL+EDI …

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 223 Page Detail Configuration

    Ø With “Sendig Options” you can define each separate configuration: PRINTER, EMAIL, ATTACH, DISK, EDI

    “How-to” set-up a document sending profile

    FieldDescriptionCode Specify a code to identify the document sending profile in the system. Description Describe the document sending profile. Default Specify if the document sending profile will be used as the default profile for all customers.

    The Default check box can only be selected for one Document Sending Profile record. To deselect a check box, select another check box.

    Printer Specify if the document is printed when you choose the Post and Send button. You can choose between the following options:

    o No: The document is not printed.

    o Yes (Use Default Settings): The document is printed according to the default printer setup.

    o Yes (Prompt for Settings): The document is printed according to settings that you make on the printer setup dialog.

    Email Specify if the document is sent by e-mail to the customer when you choose the Post and Send button. You can choose between the following options:

    o No: An e-mail is not created.

    o Yes (Use Default Settings): The document is attached to an e-mail to the customer according to the default settings for e-mail sending.

    o Yes (Prompt for Settings): The document is attached to an e-mail according to settings that you make in the Send Email window. In the E-Mail Attachment field, select the type of file to attach.

    Disk Specify if the document is saved to a file location when you choose the Post and Send button. You can choose between the following options:

    o No: No file is saved.

    224 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) o PDF: The document is saved as PDF to the location that you specify. o Electronic Document: The document is saved as an electronic documernt to the location that you specify. In the Format field, select the format of the electronic document.

    Electronic Document Specify if the document is sent as an electronic document that the customer can import into their system when you choose the Post and Send button.

    You can choose between the following options: o No: An electronic document is not created. o Through Document Exchange Service: The document is sent as an elekctronic document. In the Electronic Format field, select the format of the electronic document.

    Electronic Format Specify

    EDI Format

    Ø It’s possible to define EDI formats (PEPPOL 2.0 AND 2.1)

    “Send a document”

    Ø with “Send” Button (in this example on “Posted Sales Invoice” List page) you can send your documents

    Only Mail + PDF export

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 225 Full MAIL + PDF + EDI Export

    Customer’s Default

    On Customer Page you can set “Default Profile” for each customer.

    To specify a “sending profile” on a customer card On the Communication FastTab, in the Document Sending Profile field, select a profile that you have set up as described in the previous procedure.

    After you can retrieve Customer’s Default Sending Profile during sending documents

    226 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) process.

    Welcome to Dynamics NAV and Dynamics C5 App Update Version 2.2

    Wednesday, June 01, 2016 An update to Dynamics NAV and Dynamics C5 for tablet and phone is now available on the Windows Store and Google Play with the App Store to follow shortly. If you already have the Dynamics NAV or Dynamics C5 app installed, this will automatically be updated to v.2.2 (unless you specifically selected not to update automatically on your device). This is what you get with the new update:

    New in this version • Added support for iPad Pro. • Added support for Android 6 “Marshmallow”. • Added support for Windows 10 Mobile. • Added support for iOS 9. Bug fixes in this version • Fixed issue when switching to and from Tablet Mode when signing in with AAD. • Fixed issue where Service URL parameters are lost when signing in with AAD. • Fixed security vulnerabilities on Android. • Other minor bug fixes. Get Dynamics NAV today

    Get Dynamics C5 today

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 227 Google Play is a trademark of Google Inc. Apple and the Apple logo are trademarks of Apple Inc., registered in the U.S. and other countries. App Store is a service mark of Apple Inc.

    Source: Welcome to Dynamics NAV and Dynamics C5 App Update Version 2.2 New Youtube Playlist “NAV-lab #MSForum2016”

    Saturday, June 04, 2016 New Youtube Playlist “NAV-lab #MSForum2016”

    NAV-lab al Microsoft Forum 2016 – #MSForum2016 Playlist

    NAV-lab on Youtube

    NAVlabDynamics Youtube Channel

    https://www.youtube.com/user/NAVlabDynamics

    ALL NAV-lab Videos

    https://www.youtube.com/user/NAVlabDynamics/videos

    “Follow” NAV-lab Group

    https://www.youtube.com/user/NAVlabDynamics SQL Server 2016 is generally available

    Sunday, June 05, 2016

    Official News from Microsoft’s Information Platform

    Best News

    228 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) • A new platform for intelligent applications • Benchmark leadership through efficient use of modern hardware • Large performance improvements from prior versions • Unmatched security record • Unmatched value proposition • Gartner Magic Quadrant for Operational DBMS Leader Datasheet http://www.microsoft.com/it-it/server-cloud/products/sql-server-2016/

    Source: SQL Server 2016 is generally available today Retrieve Data from .NET Dialog with .NET integration

    Monday, June 06, 2016 Retrieve Data from .NET Dialog with .NET integration

    You can simply retrieve data from .NET Dialogs using NAV .NET Integration.

    Example: Object 50002 Get Value from .NET Input Dialog

    On Page Action, declare .NET variables

    DotNet variables are linked to standard System.Windows.Formsclass.

    Open Page

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 229 Click on Button

    Input Data > insert “TEST”

    Retrieve Data from .NET Command Prompt

    230 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Source C/AL Code

    OBJECT Page 50002 Get Value from .NET Input Dial

    {

    OBJECT-PROPERTIES

    {

    Date=06/06/16;

    Time=10.49.25;

    Modified=Yes;

    Version List=NAV9;

    }

    PROPERTIES

    {

    CaptionML=ENU=Get Value From .NET Input Dialog;

    ActionList=ACTIONS

    {

    { 1101340000; ;ActionContainer;

    CaptionML=ITA=-;

    ActionContainerType=NewDocumentItems }

    { 1101340001;1 ;Action ;

    Name=Get Value From .NET Dialog Input;

    Promoted=Yes;

    PromotedIsBig=Yes;

    PromotedCategory=Process;

    OnAction=VAR

    PromptInput@1101340000 : DotNet “‘System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.System.Windows.Forms.Form” RUNONCLIENT;

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 231 PageBordStyle@1101340001 : DotNet “‘System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.System.Windows.Forms.ButtonBorderStyle” RUNONCLIENT;

    PageStartPos@1101340002 : DotNet “‘System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.System.Windows.Forms.FormStartPosition” RUNONCLIENT;

    lblInputData@1101340004 : DotNet “‘System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.System.Windows.Forms.Label” RUNONCLIENT;

    txInputData@1101340008 : DotNet “‘System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.System.Windows.Forms.TextBox” RUNONCLIENT;

    Confirmation@1101340011 : DotNet “‘System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.System.Windows.Forms.Button” RUNONCLIENT;

    DialogResult@1101340012 : DotNet “‘System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.System.Windows.Forms.DialogResult” RUNONCLIENT;

    BEGIN

    //Creating .NET Page

    PromptInput := PromptInput.Form();

    PromptInput.Width := 500;

    PromptInput.Height := 300;

    PromptInput.StartPosition := PageStartPos.CenterScreen;

    //Creating Controls on Page

    lblInputData := lblInputData.Label();

    lblInputData.Text(‘Enter DataText:’);

    lblInputData.Left(70);

    lblInputData.Top(70);

    PromptInput.Controls.Add(lblInputData);

    232 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) //Adding Labels and text boxes txInputData := txInputData.TextBox(); txInputData.Left(200); txInputData.Top(70); txInputData.Width(180);

    PromptInput.Controls.Add(txInputData);

    //Adding Confirmation Button

    Confirmation := Confirmation.Button();

    Confirmation.Text(‘OK’); //OK

    Confirmation.Left(200);

    Confirmation.Top(150);

    Confirmation.Width(150);

    Confirmation.DialogResult := DialogResult.OK;

    PromptInput.Controls.Add(Confirmation);

    PromptInput.AcceptButton := Confirmation;

    // Getting data from prompt dialog

    IF (PromptInput.ShowDialog().ToString() = DialogResult.OK.ToString()) THEN

    MESSAGE(txInputData.Text); //TEST *** Print message retrieved from prompt

    PromptInput.Dispose();

    END;

    }

    }

    }

    CONTROLS

    {

    }

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 233 CODE

    {

    BEGIN

    {

    //Retrieve Data from .NET Dialog Input

    //with .NET integration

    }

    END.

    }

    } Monitoring Microsoft Dynamics NAV 2015 Server Using “Perf...

    Sunday, June 12, 2016 Roberto Stefanetti NAV Blog

    Monitoring Microsoft Dynamics NAV 2015 Server Using “Performance Counters”

    Nice page about NAV 2015 performance counters !

    “ Performance counters” provide information about how well Microsoft Dynamics NAV Server is operating. By using monitoring tools such as Windows Performance Monitor and System Center Operations Manager, you can use the Microsoft Dynamics NAV performance counters to collect data on Microsoft Dynamics NAV Server instances, and then use the data to identify conditions that are affecting performance and make adjustments.

    234 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Microsoft Dynamics NAV also provides a Data Collector Set template that you can use to easily create Data CollectorSets that contain all the Microsoft Dynamics NAV performance counters.

    Source MDSN https://msdn.microsoft.com/en-us/library/dn414713(v=nav.80).aspx

    How to: Set up Performance Counters in Windows Performance Monitor https://msdn.microsoft.com/en-us/library/dn271687(v=nav.80).aspx

    Working with “Data Collector” Sets

    “A Data Collector Set organizes data collection points, such as performance counters and event trace data, into a single collection. Data Collector Sets enable…

    View original post 68 more words “Microsoft Cloud”, Solutions for empowering bus...

    Sunday, June 12, 2016 “Microsoft Cloud”, Solutions for empowering business

    “When it comes to the cloud, trust and security are Paramount.”

    We’re creating technology that becomes essential but invisible, to help you build something amazing — whether you need on-demand scalability, technology to connect your people, or real-time data insights. The Microsoft Cloud is designed to empower your business, so you can do more and achieve more.

    Source: Microsoft Cloud Scaling Professional Scrum with “Visual Studio Team Servi...

    Saturday, June 18, 2016 Scaling Professional Scrum with “Visual Studio Team Services” with Martin Hinshelwood

    Webcast Date: June 27, 2016, 14:00 EST (18:00 UTC)

    “In this interactive webcast, Visual Studio ALM MVP and Ranger Martin Hinshelwood enlightens us on scaling professional Scrum with Visual Studio Team Services.”

    Tools don’t solve problems, but they can help reduce the friction of Scaling Professional Scrum. The only way to successfully scale across multiple teams, maybe in multiple countries, is to create robust automation and orchestration for minimising the risks, and time, of manual tasks. Visual Studio Team Services allows you to create a robust, platform agnostic, support structure that can start where you are, and grow as your needs mature. One Scrum Team, One Nexus, or many…See how it grows…

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 235 Source: Scrum Pulse

    Webcast Register Page: https://attendee.gotowebinar.com/register/5828311402116766723 HR (Human Resources) module in Dynamics NAV

    Saturday, June 18, 2016 HR (Human Resources) module in Dynamics NAV

    Some people have asked me about the HR NAV module, below some definitions and links.

    HR Module’s Topics Details The Human Resources feature lets you keep detailed records of your employees. You can register and maintain employee information, such as employment contracts, confidential information, qualifications, and employee contacts. You can also use Human Resources to register employee absences, which allows you to analyze registered absences as necessary. To start using Human Resources, you must set up employees and other basic information. You can also associate various codes to an employee, which allows you to filter information and view specific employees.

    Best Goals of Module – Candidate profiling (skills matrix) – Employees confidential information – Managing employees absences – Tracking of expensive equipments (assignements of benefits..etc.) – Possibile integration with NAV resources (ex: timesheets) – Possibile integration with external payroll system (NAV addons or Others..)

    MSDN, NAV 2016 Human Resources Help Page https://msdn.microsoft.com/en-us/library/hh167801(v=nav.90).aspx

    nice PDF here http://libertygrove.com/wp-content/uploads/2012/02/microsoft-dynamics-nav-human- resources.pdf

    nice yuoutube videos here

    NAV Project Management Module with resources integration

    Jobs & Projects https://msdn.microsoft.com/en-us/library/hh172378(v=nav.90).aspx

    Best Topics The Jobs area supports common project management tasks, such as configuring a job and scheduling a resource, as well as providing the information needed to manage budgets and monitor progress.

    236 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) With the Jobs feature, you can manage long-term projects that involve the use of man hours, machine hours, inventory items, and other types of usage that you want to keep track of. You can track machine and employee hours on the project by using time sheets. Using the Jobs functionality will provide a good overview, not only of individual jobs, but also of the allocation of employees, machinery and other resources being used in all projects. You can also use this functionality for many types of services and consultancy tasks.

    Task with resources Create, schedule and manage resources Integrate time sheets with job orders

    Resource Planning Topics https://msdn.microsoft.com/en-us/library/hh175161(v=nav.90).aspx

    Create and price resources, both persons and machines Set up time sheets and the approval process. Introducing Microsoft Power BI – Free ebook from SQLBI

    Saturday, June 18, 2016 Introducing Microsoft Power BI is a book that covers the basics of the tool and, at the same time, shows you what the main capabilities of Power BI are. The first chapters are similar to a step-by-step guide to start using the service, but the goal is also to show you all available features and the business scenarios covered by them.

    This book is targeted to a variety of readers. There are information workers and people who are totally new to the BI world. For those readers, the book acts as a simple introduction to the concepts that are the foundation of BI. Yet, another target category is that of IT professionals and database administrators who might need to drive the decisions of the company in adopting Power BI, because their users are asking for it. For them, this book acts as both a simple introduction to the basic concepts, explaining why users are so interested in Power BI, and as an overview of the capabilities and tools available in Power BI, so that readers can make educated choices in adopting it.

    Book content:

    • Introducing Power BI • Sharing the dashboard • Understanding data refresh • Using Power BI Desktop • Getting data from services and content packs • Building a data model • Improving Power BI reports • Using Microsoft Power BI in your company Download standard PDF https://aka.ms/IntroPowBI/StndPDF

    Mobile PDF release https://aka.ms/IntroPowBI/MobPDF

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 237 Source: Introducing Microsoft Power BI – SQLBI PARAMETRI DI PIANIFICAZIONE IN NAV 2016

    Thursday, June 23, 2016 PARAMETRI DI PIANIFICAZIONE IN NAV 2016

    Il processo di pianificazione di NAV 2016 considera diversi elementi per gestire correttamente la pianificazione; saranno sotto elencati i campi più significativi presenti in scheda Articolo\Setup Manufacturing utilizzati da questo processo.

    Sommario punti

    1 PIANIFICAZIONE IN NAV 2016. 3

    1.1 ELEMENTI IN GIOCO PRINCIPALI IN PIANIFICAZIONE.. 3

    3 Setup CAMPI ARTICOLO PER PIANIFICAZIONE E COSTING.. 3

    3.1 Scheda Articolo. 3

    3.2 Valutazione Magazzino NAV.. 4

    3.3 Metodo di Costing in NAV.. 4

    3.4 Metodo di Costing in NAV Dettaglio. 5

    3.5 Valutazione Magazzino Fiscale Rif. Codice Civile. 6

    3.6 Parametri di rifornimento. 7

    3.7 Sistema di rifornimento. 7

    3.8 Calcolo Lead Time. 7

    3.9 Politica di produzione. 8

    3.10 Motodo di consuntivazione. 9

    238 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 3.11 % Scarto. 11

    3.12 Dimensione Lotto (di Produzione) 12

    3.13 Parametri generali pianificazione da Setup Manufacturing. 12

    3.14 Quantità di smorzamento di default 12

    3.15 Periodo di stabilizzazione di default 13

    3.16 Assemblaggio. 13

    3.17 Parametri di pianificazione. 14

    3.18 Metodo di riordino. 14

    3.19 Pianificazione delle ubicazioni senza utilizzare USK.. 16

    3.20 Politica di tracciabilità. 16

    3.21 Impegno. 16

    3.22 Periodo di stabilizzazione. 17

    3.23 Qtà di smorzamento (e di Default) 17

    3.24 Articolo Critico. 18

    3.25 Lead Time Sicurezza. 18

    3.26 Scorta Sicurezza. 19

    3.27 Parametri Lotto-Per-Lotto. 20

    3.28 Periodo accumulo lotti 20

    3.29 Periodo di riprogrammazione. 21

    3.30 Parametri punti di riordino. 21

    3.31 Qtà di riordino. 22

    3.32 Giacenza massima. 22

    3.33 Livello di overflow.. 23

    3.34 Intervallo di tempo. 24

    3.35 Moltiplicatori ordini (per tipologie “<> Ordine”) 24

    3.36 Qtà minina ordine. 24

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 239 3.37 Qtà massima ordine. 25

    3.38 Molteplicità ordine. 25

    1 PIANIFICAZIONE IN NAV 2016

    Il processo di pianificazione di NAV 2016 considera diversi elementi per gestire correttamente la pianificazione; saranno sotto elencati i campi più significativi presenti in scheda Articolo\Setup Manufacturing utilizzati da questo processo.

    1.1 ELEMENTI IN GIOCO PRINCIPALI IN PIANIFICAZIONE I principali elementi in gioco nel processo di pianificazione sono:

    • Giacenze di Magazzino (da flag “Includi giacenza” per riordino a MAKE-TO-STOCK) • Ordini di Vendita • Ordini di Vendita Programmati • Ordini di Acquisto • Ordini di Acquisto Programmati • Ordini di Trasferimento • Commesse in essere • Ordini di produzione in essere • Ordini di Assistenza • Gestione Scorta Minimaparametri di riordino articolo • SKU (Stock Keeping Units) con relativa parametrizzazione (come per articolo) • Richieste di Approvvigionamento (queste non vengono tenute conto nel calcolo MRP, sono cancellabili e ricreabili al lancio) 3 Setup CAMPI ARTICOLO PER PIANIFICAZIONE E COSTING

    Saranno ora documentati i singoli campi più significativi utilizzati dal processo di pianificazione; la definizione della funzionalità del singolo campo è quella presente nell’help Online di NAV; le informazioni sono state aggregate per presentarle in un solo blocco; utilizzando la funzionalità standard “Online Help” di NAV sul campo è possibile visualizzare le stesse analoghe informazioni.

    3.1 Scheda Articolo Scheda Articolo

    240 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 3.2 Valutazione Magazzino NAV “Specifica il metodo di valutazione magazzino utilizzata per calcolare il costo dell’articolo. Le opzioni includono Medio ponderato, Medio, FIFO, LIFO e LIFO discreto.

    Sono gestiti i metodi classici di valutazione regolati dal codice civile italiano

    Ø Medio Ponderato, Medio, FIFO, LIFO, LIFO Discreto

    3.3 Metodo di Costing in NAV “Specifica come viene registrato il flusso del costo dell’articolo e se un valore effettivo o a budget viene capitalizzato e utilizzato nel calcolo dei costi.

    Il metodo di costing che viene scelto determina la modalità in cui viene calcolato il costo unitario tramite presupposizioni sul flusso degli articoli nell’azienda. “

    Ø Le opzioni includono FIFO, LIFO, Specifico, Medio, Standard

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 241 3.4 Metodo di Costing in NAV Dettaglio “Il Metodo di costing sulla scheda articolo definisce come viene registrato il flusso del costo dell’articolo e se un valore effettivo o a budget viene capitalizzato e utilizzato nel calcolo dei costi.”

    Nella seguente tabella vengono fornite le procedure consigliate sulla modalità di impostazione del campo Metodo di costing.

    Opzione di setupProcedura consigliataCommentoFIFO Utilizzare quando il costo del prodotto è stabile. Utilizzare per articoli con una durata a scaffale limitata, poiché le merci più vecchie devono essere vendute prima della data di scadenza. Il costo unitario di un articolo è il valore effettivo di tutto il carico dell’articolo, selezionato secondo la regola FIFO. Nella valutazione di magazzino si presuppone che il primo articolo posizionato nel magazzino venga venduto per primo. Nota Quando i prezzi salgono, nei conti patrimoniali viene mostrato un valore maggiore. Ciò significa che la soggettività tributaria aumenta mentre il punteggio del credito e la capacità di prendere in prestito soldi migliora. LIFO Utilizzare quando i livelli di inventario vengono gestiti in modo coerente o aumentano nel tempo. Il costo unitario di un articolo è il valore effettivo di tutto il carico dell’articolo, selezionato secondo la regola LIFO. Nella valutazione di magazzino si presuppone che gli ultimi articoli posizionati nel magazzino vengano venduti per primo. Nota Quando i prezzi salgono, il valore nel conto economico diminuisce. Ciò significa che la soggettività tributaria diminuisce mentre la capacità di prendere in prestito soldi peggiora. Importante Operazione non consentita in molti paesi, perché può essere utilizzata per ridurre il profitto. Media Utilizzare quando il costo del prodotto non è stabile. Utilizzare quando gli inventari sono impilati o mischiati e non è possibile differenziarli, ad esempio con gli agenti chimici. Il costo unitario di un articolo è il costo esatto con la particolare unità è stata ricevuta. Specifico Utilizzare nella produzione o nel commercio di articoli facilmente identificabili a costi unitari abbastanza elevati. Utilizzare gli articoli che sono soggetti a regolazione. Utilizzare per articoli con numeri di serie. Il costo unitario di un articolo viene calcolato come il costo unitario medio in ogni momento dopo un acquisto. Per la valutazione magazzino si presuppone che tutte le giacenze siano vendute simultaneamente. Standard Utilizzare quando il controllo costi è fondamentale. Utilizzare nella produzione ripetitiva per stimare i costi di materiale diretto, di manodopera diretta e i costi generali di produzione. Utilizzare quando esiste una disciplina e del personale per gestire gli standard. Il costo unitario di un articolo è prestabilito in base a una stima. Quando il costo effettivo viene realizzato successivamente, il costo standard deve essere rettificato con il costo effettivo tramite i valori di scostamento

    3.5 Valutazione Magazzino Fiscale Rif. Codice Civile Le rimanenze di magazzino e la loro valutazione in bilancio

    Secondo la classificazione del Codice civile, le rimanenze di magazzino includono le materie prime, sussidiarie e di consumo, i prodotti in corso di lavorazione e semilavorati, i lavori in corso su ordinazione, i prodotti finiti e merci, gli acconti.

    Articoli 2424-2426

    242 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) L’articolo 2424 del Codice, inoltre, classifica le rimanenze nella macroclasse C) dell’attivo patrimoniale. Il Codice civile si occupa della valutazione delle suddette rimanenze all’articolo 2426, mentre l’Oic ha elaborato il principio contabile Oic13, che si occupa di illustrare la valutazione e rappresentazione della stessa voce contabile

    Punto di vista fiscale

    Da un punto di vista fiscale, le rimanenze devono essere raggruppate in categorie omogenee per natura e per valore e a ciascun gruppo deve essere attribuito il valore che si ottiene dall’applicazione del metodo adottato in bilancio e, cioè: del “LIFO a scatti annuale”, del “FIFO” o, in alternativa, del “costo medio ponderato”.

    Se in un esercizio il valore medio dei beni determinato con uno di questi tre metodi risulta superiore al valore medio di mercato, tutti i beni potranno essere iscritti in bilancio al valore normale. La svalutazione al valore normale e’ sempre facoltativa. La valutazione al valore normale resta efficace anche per gli esercizi successivi a meno che nel bilancio non venga ripristinato un valore superiore.

    Deroghe e cambiamenti – Art. 2423-bis

    Una volta scelto il criterio di valutazione che si vuole adottare, questo de ve essere mantenuto negli esercizi successivi e, dunque, si potranno cambiare i criteri di valutazione solo se giustificati da particolari motivi preventivamente comunicati all’agenzia delle Entrate ( articolo 2423-bis del Codice civile). Le deroghe devono essere obbligatoriamente descritte nella nota integrativa, da cui si deve poter leggere anche l’influenza del cambiamento sulla rappresentazione della situazione patrimoniale e finanziaria del risultato economico.

    Vedi questo post sul Magazzino Fiscale per L’Italia https://robertostefanettinavblog.wordpress.com/2016/05/03/gestione-magazzino-fiscale- nav-italian-localization/

    3.6 Parametri di rifornimento Saranno spiegati i parametri di rifornimento per gli articoli

    Sezione TAB NAV > Rifornimento

    3.7 Sistema di rifornimento “Specifica il tipo di ordine di approvvigionamento che viene creato dal sistema di pianificazione quando è richiesto il rifornimento dell’articolo. Sono disponibili le seguenti opzioni:

    • Acquisto: fornire l’articolo con un ordine di acquisto. • Ordine prod. fornire l’articolo con un ordine di produzione.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 243 • Assemblaggio: fornire l’articolo con un ordine di assemblaggio.

    3.8 Calcolo Lead Time “Specifica una formula di data per il calcolo del tempo necessario per il rifornimento dell’articolo. Questa formula verrà utilizzata per calcolare i campi delle date nelle righe degli ordini e delle proposte d’ordine.”

    I campi delle date nelle righe dell’ordine o della proposta d’ordine sono calcolati come segue:

    Ø In una riga dell’ordine di acquisto, Data ordine + Calcolo lead time = Data carico pianificato.

    Ø In un ordine di assemblaggio, Data inizio + Calcolo lead time = Data fine.

    Ø In una riga dell’ordine di produzione, Data inizio + Calcolo lead time = Data fine.

    NB:

    Se un articolo prodotto utilizza un ciclo, tale ciclo verrà utilizzato per calcolare la data di fine. Il calcolo del lead time viene utilizzato soltanto nel caso in cui non sia definito un ciclo per l’articolo.

    Priorità di utilizzo

    Se il campo Calcolo lead time viene compilato in diverse finestre, le priorità verranno definite nel modo seguente:

    1. Scheda del fornitore dell’articolo 2. Scheda unità di stockkeeping 3. Scheda magazzino 4. Scheda articolo ES:

    Se un acquisto viene ordinato il 20 dicembre (Data ordine: 20/12) e il lead time è due giorni (calcolo del lead time: 2D), la consegna degli articoli acquistati dovrebbe avvenire presso l’indirizzo di consegna il 22 dicembre (Data carico pianificato: 22/12).

    3.9 Politica di produzione “ Determina se vengono calcolati ordini aggiuntivi per tutti i componenti correlati. Questa impostazione include gli ordini di produzione, creati manualmente o derivanti da ordini di vendita, e le proposte d’ordine di produzione generate dai calcoli di pianificazione.”

    244 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Opzioni

    Ø Prod. Per Magazzino

    Ø Prod. Per Ordine

    DETTAGLIO

    Politica di produzioneDescrizioneProd. per Magazzino (Make to Stock) Considera il primo livello della distinta base (DB) e ogni ordine di produzione può contenere un solo articolo. Un articolo di questo genere viene prodotto per livelli di magazzino. Tipicamente si tratta di articoli standard con un lead time di produzione relativamente breve o articoli che vengono utilizzati come sotto assemblaggi necessari per altri articoli. Questa politica di produzione in genere viene utilizzata con i meto di di riordino Qtà riordino fissa o Qtà massima. Prod. su Ordine (Make to Order) La distinta base viene esplosa e viene creata una riga aggiuntiva nell’ordine di produzione o nella proposta d’ordine di produzione per ogni livello della struttura DB in cui la politica di produzione di tale articolo è stata definita come produzione su ordine. Se si emettono ordini di produzione multilivello, la politica di produzione per l’articolo padre e per gli articoli componenti a tutti i livelli deve essere produzione su ordine. Viene creato un impegno automatico tra il fabbisogno e la proposta d’ordine di rifornimento corrispondente. In questo modo vengono mantenute le informazioni personalizzate sugli ordini rilevanti, che verranno collegati a scopo di inventario e costing. Questa politica di produzione in genere viene utilizzata con il metodo di riordino Ordine o Lotto-per-Lotto. Nota Un metodo correlato nella scheda articolo che implica l’associazione ordine-a- ordine è il metodo di riordino Ordine.

    3.10 Motodo di consuntivazione “Specifica il metodo che è utilizzato per calcolare e gestire il consumo dell’articolo come componente dei processi di produzione.”

    Quando le operazioni di produzione sono integrate con i processi della warehouse, tramite collocazioni oppure stoccaggi e prelievi guidati, la collocazione da cui i componenti sono consumati è la collocazione definita in ogni riga del componente ordine di produzione. Tutti i componenti obbligatori devono essere disponibili in tale

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 245 collocazione. In caso contrario, la registrazione del consumo manuale o automatico viene interrotta per tale componente.

    Per ulteriori informazioni sul modo in cui i metodi di consuntivazione incidono sul flusso dei componenti nelle collocazioni di produzione, vedere il campo “ Cod. collocazione” nelle righe del componente dell’ordine di produzione.

    Opzioni

    Ø Manuale

    Ø Avanti

    Ø Indietro

    Ø Prelievo + avanti

    Ø Prelievo + indietro

    DETTAGLIO

    OpzioneDescrizioneManuale Richiede di inserire manualmente e registrare il consumo nella registrazione di consumo. Avanti Inserisce automaticamente il consumo in base alle righe nelle righe del componente dell’ordine di produzione. Per default, la registrazione del consumo di componenti si verifica quando si modifica lo stato di un ordine di produzione in Rilasciato. Tuttavia, se si utilizza il campo Cod. legame ciclo-DB nelle righe del componente dell’ordine di produzione, le registrazioni si verificano per operazione quando inizia l’operazione. Nota Per la consuntivazione in avanti, la registrazione specifica per l’operazione che è possibile ottenere con i codici di legame tra ciclo e DB si basa sulla quantità prevista definita nella riga del componente. Per informazioni sulla consuntivazione specifica per l’operazione basata sull’output effettivo, vedere la descrizione di Aut. fine in questo argomento. Se l’ubicazione o le risorse in cui il componente è consumato sono impostate con una struttura di collocazione di default, l’articolo viene consumato dalla collocazione produzione aperta. AttenzioneLa consuntivazione in avanti si verifica inoltre quando si fa clic su Aggiorna in un ordine di produzione rilasciato creato da zero. In questi ordini di produzione rilasciati creati direttamente non è possibile modificare le informazioni di collocazione perché le righe del componente ordine produzione vengono generate quando si aggiorna l’ordine, che esegue contemporaneamente la consuntivazione in avanti dei componenti. Di conseguenza, se si desidera modificare le informazioni di collocazione nelle righe del componente dell’ordine di produzione prima della consuntivazione in avanti, tale ordine dovrà essere creato con lo stato Pianificato o Confermato. indietroCalcola automaticamente e registra il consumo in base alle righe nelle righe del componente dell’ordine di produzione. Per default, il calcolo e la registrazione del consumo di componenti si verifica quando si modifica lo stato di un ordine di produzione rilasciato in Completato. Tuttavia, se si utilizza il campo Cod. legame ciclo-DB nelle righe del componente dell’ordine di produzione, il calcolo e la registrazione si verificano una volta completata ogni operazione. Nota La consuntivazione a ritroso e i codici di legame tra ciclo e distinta base possono combinarsi in modo che la quantità di cui è stata effettuata la consuntivazione per operazione sia proporzionale all’effettivo output di tale operazione. Per ulteriori

    246 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) informazioni, vedere Procedura: Eseguire la consuntivazione dei componenti in base all’output dell’operazione. Se l’ubicazione o le risorse in cui il componente è consumato sono impostate con una struttura di collocazione di default, l’articolo viene consumato dalla collocazione produzione aperta. Prelievo+Aut.Inizio Uguale al metodo di consuntivazione in avanti, con l’eccezione che funziona solo per le ubicazioni che utilizzano stoccaggi e prelievi guidati. Il consumo viene calcolato e registrato dalla collocazione definita nel campo Cod. coll. art. per produzione nell’ubicazione o nel centro di lavoro dopo che il componente è stato prelevato dalla warehouse. Nota Se un componente è impostato con il metodo Prelievo + Consuntivazione in avanti, non potrà disporre di un codice legame ciclo-DB per un’operazione impostata con il metodo di consuntivazione in avanti. Il componente viene quindi consuntivato automaticamente quando comincia l’operazione, che rende impossibile richiedere l’attività di prelievo. Prelievo+Aut.Fine Uguale al metodo di consuntivazione a ritroso, con l’eccezione che funziona solo per le ubicazioni che utilizzano stoccaggi e prelievi guidati. Il consumo viene calcolato e registrato dalla collocazione definita nel campo Cod. coll. art. per produzione nell’ubicazione o nel centro di lavoro dopo che il componente è stato prelevato dalla warehouse.

    3.11 % Scarto “ Specifica la percentuale dell’articolo che si prevede verrà scartata nel processo di produzione. Viene utilizzato per calcolare i prezzi unitari e i fabbisogni netti.”

    Se si tratta di un articolo padre, la percentuale di scarto rappresenta l’output scartato prima dello stoccaggio in magazzino. Se l’articolo è un componente, la percentuale di scarto rappresenta il consumo scartato al momento del prelievo da magazzino.

    Se si definisce una percentuale di scarto di un articolo componente, significa che saranno ritirati dal magazzino più componenti di quanti siano richiesti dall’ordine di produzione.

    Nota Lo scarto definito negli articoli componenti aumenta la quantità prelevata per il consumo. Non aumenta la quantità di output prevista dell’articolo padre.

    3.12 Dimensione Lotto (di Produzione) “Specifica quante unità dell’articolo vengono elaborate, per default, in un’unica operazione di produzione.”

    È possibile modificare la dimensione lotto nelle singole righe del ciclo o nelle singole righe del ciclo ordine di produzione (operazioni).

    La dimensione del lotto modifica il tempo di lavorazione immesso nelle righe del ciclo moltiplicando il valore nel campo Tempo lavorazione per la dimensione del lotto per riflettere, ad esempio, che ci vuole il doppio del tempo per elaborare due pezzi per operazione.

    Nota Si noti che, benché non sia un elemento temporale produttivo, anche il valore nel campo Tempo di setup nelle righe del ciclo di produzione viene moltiplicato per la

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 247 dimensione del lotto.

    Se il ciclo di produzione articolo include costi fissi, ad esempio il tempo di setup, il valore di questo campo verrà utilizzato per calco lare il costo standard e distribuire i costi fissi di produzione dell’articolo.

    3.13 Parametri generali pianificazione da Setup Manufacturing Esistono dei parametri generali di pianificazione da Setup Manufacturing.

    Sotto i principali:

    3.14 Quantità di smorzamento di default Per limitare la quantità di suggerimenti di pianificazione per le modifiche non significative degli ordini esistenti, utilizzare il campo Quantità di smorzamento di default, che è una percentuale della dimensione di lotto.

    NOTA: Questa impostazione si applica globalmente, ad eccezione degli articoli che hanno un valore diverso nel campo Quantità di smorzamento della scheda articolo.

    3.15 Periodo di stabilizzazione di default Specifica un periodo di tempo durante il quale non deve essere proposta alcuna azione di ripianificazione in avanti degli ordini di approvvigionamento esistenti.

    Il periodo di stabilizzazione limita il numero di inutili ripianificazione dell’approvvigionamento esistente a una data successiva se la nuova data è compresa nel periodo di stabilizzazione. La funzione del periodo di stabilizzazione viene avviata solo se l’approvvigionamento può essere riprogrammato a una data successiva e non se può essere riprogrammato in una data anteriore.

    Di conseguenza, se la nuova data di approvvigionamento suggerita è successiva al periodo di stabilizzazione, il suggerimento di riprogrammazione non è bloccato.

    3.16 Assemblaggio Criteri di Assemblaggio

    “Specifica il flusso dell’ordine di default utilizzato per fornire questo articolo di assemblaggio. Di seguito sono elencate le opzioni disponibili.”

    248 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Opzioni

    Ø Assemblaggio per magazzino

    Ø Assemblaggio su ordine

    DETTAGLIO

    Criteri di assemblaggioDescrizioneAssemblaggio per magazzino Gli ordini di assemblaggio per l’articolo vengono creati come ordini di approvvigionamento destinati al magazzino. Vengono creati manualmente, come la creazione di kit per una campagna stagionale, automaticamente tramite il sistema di pianificazione per l’approvvigionamento della domanda o in base al rifornimento di magazzino. Nota Benché non sia il flusso dell’ordine di default, è possibile impostare le assemblaggio di un articolo con assemblaggio per magazzino direttamente a fronte di un ordine di vendita, ad esempio come combinare la quantità con le quantità per assemblaggio su ordine che sono già nella riga ordine di vendita. Assemblaggio su ordine Gli ordini di assemblaggio per l’articolo vengono creati in risposta a una riga di ordine di vendita e sono collegati in modo da consentire al gestore ordini di personalizzare i componenti e le risorse di assemblaggio per l’ordine di vendita. Nota Per default, l’ordine di assemblaggio collegato è stato creato per l’intera quantità della riga di vendita perché è presupposto che tutti gli articoli debbano essere assemblati. Tuttavia, è possibile modificare la quantità da assemblare, ad esempio quando si è a conoscenza che alcuni articoli sono già disponibili, diminuendo o aumentando il valore nel campo Qtà per assemblaggio su ordine sulla riga dell’ordine di vendita.

    3.17 Parametri di pianificazione Saranno spiegati i parametri di pianificazione per gli articoli.

    Sezione TAB Pianificazione

    3.18 Metodo di riordino “ Specifica il metodo di riordino. Quando le quantità devono essere rifornite, il metodo di riordino viene utilizzato per calcolare la dimensione lotto per periodo di pianificazione (intervallo di tempo).”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 249 Opzioni

    Ø Nessuna

    Ø Qtà Riordino fissa

    Ø Qtà Massima

    Ø Ordine

    Ø Lotto per Lotto

    DETTAGLIO

    OpzioneDescrizioneQtà Riordino Fissa Utilizzare la quantità specificata nel campo Qtà di riordino come dimensione del lotto standard. È possibile che questa quantità venga modificata al fine di soddisfare ulteriori fabbisogni o il livello di magazzino specificato. Il campo di Qtà di riordino viene utilizzato per il calcolo del livello di overflow. Qtà Massima Utilizzare la quantità specificata nel campo Giacenza massima per determinare la dimensione del lotto massima. È possibile che questa quantità venga modificata al fine di soddisfare ulteriori fabbisogni o il livello di magazzino specificato. Il campo Giacenza massima viene utilizzato per il calcolo del livello di overflow. Ordine Genera un ordine per ogni fabbisogno e non utilizza il periodo di pianificazione. Viene creato un impegno automatico tra il fabbisogno e la proposta d’ordine di rifornimento corrispondente. In questo modo vengono mantenute le informazioni personalizzate sugli ordini rilevanti, che verranno collegati a scopo di inventario e costing. La creazione di un impegno manuale è un altro metodo per accantonare articoli in magazzino e definirli per l’utilizzo di un ordine specifico. Nota Il metodo correlate per gli articoli di produzione a più livelli è l’opzione Prod. su Ordine nel campo di Politica di produzione. Lotto-per-Lotto Viene generata una proposta d’ordine con una quantità in grado di soddisfare la somma dei fabbisogni che scadono nel periodo di pianificazione. Nota Utilizzando il punto di riordino con questa opzione è possibile creare proposte d’ordine di rifornimento aggiuntive (in surplus). VuotoNon calcola le proposte d’ordine per questo articolo. Occorrerà pianificare manualmente l’utilizzo di questo articolo.

    Le quantità finali della proposta d’ordine possono essere rettificate in base ai seguenti campi che determinano una modifica dell’ordine:

    • Quantità minima ordine • Quantità massima ordine • Molteplicità ordine Nota Si verifica quando si seleziona l’opzione relativa al metodo di riordino Qtà Massima. Tuttavia, se il campo Giacenza massima viene utilizzato come espressione restrittiva della capacità di magazzino massima, i campi che determinano la modifica non

    250 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) devono essere utilizzati. Se si passa a un’opzione relativa al metodo di riordino diversa, è possibile che vengano disattivati i campi di alcuni parametri di pianificazione che in precedenza erano attivi e contengono ancora gli ultimi valori utilizzati. I valori verranno ignorati dai calcoli di pianificazione.

    3.19 Pianificazione delle ubicazioni senza utilizzare USK Se si utilizza la pianificazione della domanda per un’ubicazione diversa dal campo Componenti nell’ubicazione e non si utilizzano unità di stockkeeping, verrà utilizzata l’opzione relativa al metodo di riordino Lotto-per-lotto con parametri di pianificazione vuoti. Gli articoli che utilizzano il metodo di riordino Ordine continuano a utilizzare tale metodo di riordino.

    3.20 Politica di tracciabilità 3 tipologie di tracciabilità possibile

    Ø Nessuna

    Ø Solo Tracciabilità

    Ø Tracciabilità e messaggi d’azione

    “Specifies if and how order tracking entries are created and maintained between supply and its corresponding demand.”

    Select one of the following options.

    OptionDescription None Specifies that neither tracking entries nor action messages are created. Tracking Only Specifies that the system will create tracking entries for this item, but will not issue any action messages. Tracking & Action Msg. Specifies that the system will create and maintain tracking entries and will also issue action messages for this item. Nota This option is also referred to as Dynamic Order Tracking.

    3.21 Impegno 3 tipologie di impegno possibile

    Ø Mai

    Ø Opzionale

    Ø Sempre

    Indica se l’articolo può essere impegnato. Sono disponibili le seguenti opzioni:

    CampoDescrizioneMai Non è possibile impegnare l’articolo. Opzionale L’articolo non viene impegnato automaticamente. È possibile impegnare l’articolo manualmente. Sempre L’articolo viene sempre impegnato automaticamente.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 251 3.22 Periodo di stabilizzazione Ø Input valore formula es: 7G

    Specifica un periodo di tempo durante il quale non deve essere proposta alcuna azione di ripianificazione in avanti degli ordini di approvvigionamento esistenti.

    Il periodo di stabilizzazione limita il numero di inutili ripianificazioni dell’approvvigionamento esistente a una data successiva se la nuova data è compresa nel periodo di stabilizzazione.

    La funzione del periodo di stabilizzazione viene avviata s olo se l’approvvigionamento può essere riprogrammato a una data successiva e non se può essere riprogrammato in una data anteriore. Di conseguenza, se la nuova data di approvvigionamento suggerita è successiva al periodo di stabilizzazione, il suggerimento di riprogrammazione non è bloccato.

    Informazioni aggiuntive

    Nota Se il periodo di accumulo lotti è inferiore periodo di stabilizzazione, quest’ultimo viene impostato in modo dinamico affinché corrisponda al periodo di accumulo lotti. Ciò non è indicato nel valore immesso nel campo Periodo di stabilizzazione.

    La quantità richiesta nel periodo di accumulo lotti viene utilizzata per determinare se la data di potenziale approvvigionamento rientra nel periodo di stabilizzazione.

    Nota Se questo campo è vuoto, il viene applicato il valore nel campo Periodo di stabilizzazione di default nella finestra Setup manufacturing.

    Il valore immesso nel campo Periodo di stabilizzazione deve essere una formula relativa alla data in cui un giorno (1D) corrisponde al periodo più breve consentito.

    3.23 Qtà di smorzamento (e di Default)

    Ø Valore

    Specifica una quantità di stabilizzazione per bloccare i suggerimenti di modifica non significativi per un approvvigionamento esistente se la quantità di cui l’approvvigionamento cambierebbe è inferiore a quella di stabilizzazione.

    Se la modifica di quantità suggerita è superiore alla quantità di stabilizzazione, il suggerimento non è bloccato.

    Se questo campo risulta vuoto, viene applicato il valore nel campo Quantità di smorzamento di default nella finestra Setup manufacturing.

    Questa impostazione si applica globalmente, ad eccezione degli articoli che hanno un

    252 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) valore diverso nel campo Quantità di smorzamento della scheda articolo.

    3.24 Articolo Critico Ø SI/NO

    Nel caso di componente specifica se l’articolo è da includere in “Disponibilità Calcolata” per proporre una data di consegna per l’articolo padre. Utilizzato nella procedura di promessa d’ordine ATP e CTP.

    Esempio se una lavorazione richiede un lungo tempo di lavorazione (per semilavorati), gestire semilavorati di base o materia prima critica per il padre.

    3.25 Lead Time Sicurezza Ø Definisce una formula di data per indicare un lead time di sicurezza

    Definisce una formula di data per indicare un lead time di sicurezza che può essere utilizzato come margine di tempo in caso di ritardi nel lead time di rifornimento di produzione, di assemblaggio o di acquisto.

    Ad esempio, se un fornitore consegna spesso in ritardo, definire un lead time di sicurezza per gli articoli di questo fornitore in modo che il sistema di pianificazione possa compensare i ritardi.

    Nel calcolo di righe ordine e righe di proposta d’ordine, il lead time di sicurezza viene aggiunto al lead time per gli ordini oggetto di programmazione in avanti e indietro.

    I seguenti campi delle date vengono influenzati nelle righe dell’ordine o della proposta d’ordine:

    LineeCalcolo Riga dell’ordine di produzione Data Fine + Lead time di sicurezza + Tempo gest. entrata in whse. = Data scadenza Riga ordine di assemblaggio Data Fine + Lead time di sicurezza + Tempo gest. entrata in whse. = Data scadenza Riga dell’ordine di acquisto Data carico pianificato + Lead time di sicurezza + Tempo gest. entrata in whse. = Data carico prevista Nota Il lead time di sicurezza viene ignorato tra gli articoli in un ordine di produzione a più livelli.

    Per gli ordini di trasferimento, il calcolo del lead time di sicurezza di un articolo non è incluso direttamente nel calcolo della data di carico dell’ordine di trasferimento. Il lead time di sicurezza può tuttavia influire sulla data di carico di un articolo trasferito, poiché può avere effetto su qualsiasi ordine di rifornimento in fase di acquisto o di produzione nell’ubicazione di provenienza prima dell’inizio del trasferimento.

    Se nessun valore è specificato nel campo Lead time di sicurezza, si applica qualsiasi valore definito nel campo Lead time di sicurezza di default.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 253 3.26 Scorta Sicurezza Definisce la quantità di scorta che si desidera avere in magazzino per proteggersi da eventuali fluttuazioni a livello di domanda e fornitura che possono verificarsi durante il lead time di rifornimento per l’articolo.

    Il campo Scorta di sicurezza viene utilizzato nelle modalità descritte di seguito per i calcoli di pianificazione quando la disponibilità calcolata è inferiore alla scorta di sicurezza.

    • Viene creata una proposta d’ordine programmata all’indietro a partire della data di scadenza del fabbisogno che ha determinato il disavanzo nella disponibilità calcolata. • La quantità della proposta d’ordine riporta la disponibilità calcolata almeno al livello specificato nel campo Scorta di sicurezza. Nota La quantità della proposta d’ordine finale può essere rettificata per effetto di fabbisogni aggiuntivi che possono verificarsi all’interno dell’intervallo di tempo, per effetto del metodo di riordino e dei campi che determinano una modifica della quantità: Quantità minima ordine, Quantità massima ordine e Molteplicità ordine.

    NB: La quantità di scorte di sicurezza deve essere sempre inferiore al punto di riordino.

    Se il campo viene lasciato vuoto, la quantità della scorta di sicurezza per l’articolo verrà impostata su zero. Se si immette un valore negativo nel campo, verrà ignorato.

    Sebbene esista una scorta di sicurezza per compensare le fluttuazioni, il sistema di pianificazione potrebbe utilizzarla per soddisfare una domanda che non potrebbe essere altrimenti soddisfatta entro la data di scadenza. In tal caso, il sistema di pianificazione assicura che la scorta di sicurezza sia reintegrata suggerendo un ordine di approvvigionamento eccezionale. La riga di pianificazione relativa a tale ordine visualizza un avviso di eccezione indicante che la scorta di sicurezza è stata parzialmente o completamente consumata e deve essere ricostituita.

    3.27 Parametri Lotto-Per-Lotto Includi Giacenze

    Ø Includi giacenze (SI/NO)

    Include scorte nella disponibilità calcolata quando vengono calcolati ordini di rifornimento (nettificazione giacenza)

    Per default, questo campo è selezionato. Non è possibile modificare il contenuto del campo. Il magazzino è utilizzato normalmente per soddisfare i fabbisogni inevasi.

    Le seguenti condizioni modificano il comportamento del campo:

    254 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) • Se si specifica un metodo di riordino lotto-per-lotto del lotto-per- lotto, è possibile modificare il contenuto di questo campo. • Se si specifica un metodo di riordino ordine, il campo è vuoto. Non è possibile modificare il contenuto del campo. 3.28 Periodo accumulo lotti Ø Definisce un periodo di tempo in cui più domande sono accumulate in un ordine di approvvigionamento quando si utilizza il metodo di riordino Lotto-per-Lotto.

    Il campo Periodo di accumulo lotti contribuisce a definire il ciclo di riordino temporale della società nella pianificazione lotto-per- lotto insieme al campo Periodo di riprogrammazione.

    A partire dalla data della prima domanda, tutte le domande sono accumulate nel successivo periodo di accumulo lotto in un ordine di approvvigionamento, che viene inserito nella data della prima domanda. Le domanda esterna al periodo di accumulo lotto non è coperta dall’ordine di approvvigionamento.

    Il valore immesso nel campo Periodo di accumulo lotti deve essere una formula relativa alla data in cui un giorno (1D) corrisponde al periodo più breve.

    Nota In tutti i campi di formula di data viene automaticamente incluso un giorno per coprire la data odierna come giorno di inizio del periodo. Di conseguenza, se si immette, ad esempio, 1W, il periodo è effettivamente di otto giorni perché la data odierna è inclusa. Per specificare un periodo di sette giorni (una settimana) includendo la data di inizio del periodo, è necessario immettere 6D o 1W-1D.

    3.29 Periodo di riprogrammazione Ø Definisce un periodo in cui qualsiasi suggerimento per modificare la data di approvvigionamento consiste in un’azione Riprogramma e mai in un’azione Annulla combinata con un’azione Nuovo.

    Il campo Periodo di riprogrammazione contribuisce a definire il ciclo di riordino della società nella pianificazione lotto-per- lotto insieme al campo Periodo di accumulo lotti.

    Il periodo di riprogrammazione totale è un periodo di riprogrammazione precedente alla data di approvvigionamento esistente fino a un periodo di riprogrammazione successivo alla data di approvvigionamento esistente. Se una nuova data di approvvigionamento suggerita, in avanti o indietro nel tempo, è all’interno del periodo di riprogrammazione, il suggerimento viene riprogrammato. Se una nuova data suggerita all’esterno del periodo di riprogrammazione, il suggerimento può essere di annullare e creare un nuovo ordine di approvvigionamento.

    Il valore immesso nel campo Periodo di riprogrammazione deve essere una formula relativa alla data in cui un giorno (1D) corrisponde al periodo più breve consentito.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 255 Nota In tutti i campi di formula di dati, viene automaticamente incluso un giorno per coprire la data odierna come giorno di inizio del periodo. Di conseguenza, se si immette, ad esempio, 1W, il periodo è effettivamente di otto giorni perché la data odierna è inclusa. Per specificare un periodo di sette giorni (una settimana) includendo la data di inizio del periodo, è necessario immettere 6D o 1W-1D.

    3.30 Parametri punti di riordino

    Parametri punto di riordino

    Punto di riordino

    Ø Specifica una quantità di scorta in modo da impostare un livello di magazzino al di sotto del quale è necessario fare rifornimento dell’articolo. È possibile equiparare la quantità del punto di riordino con la domanda prevista durante il lead time di rifornimento.

    Il campo Punto Riordino svolge il ruolo descritto di seguito nei calcoli di pianificazione quando la giacenza disponibile uguale o minore del punto di riordino.

    • Verrà creata una proposta d’ordine programmata in avanti a partire della data del fabbisogno che ha determinato il disavanzo nella disponibilità calcolata, a meno che un ordine di approvvigionamento sia già stato piazzato. • La quantità della proposta d’ordine riporterà la disponibilità calcolata almeno al livello specificato nel campo Punto riordino. • La quantità della proposta d’ordine finale può essere ulteriormente rettificata per effetto di fabbisogni aggiuntivi che possono verificarsi all’interno dell’intervallo di tempo, per effetto del metodo di riordino e dei campi che determinano una modifica della quantità: Quantità minima ordine, Quantità massima ordine e Molteplicità ordine. Nota Il punto di riordino deve essere sempre superiore alla quantità di scorte di sicurezza.

    Se il campo viene lasciato vuoto, la quantità del punto di riordino per l’articolo verrà impostata su zero. Si noti che il campo è disabilitato se si selezionano i criteri di riordino Ordine e Lotto-per-Lotto.

    256 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 3.31 Qtà di riordino Ø Specifica una quantità standard per la dimensione del lotto da utilizzare per tutte le proposte d’ordine. Tale quantità verrà utilizzata dal programma al minimo, sebbene è possibile che la quantità dell’ordine finale venga aumentata per soddisfare fabbisogni aggiuntivi o il livello di giacenza specificato.

    Questo campo è utilizzato solamente con il metodo di riordino Qtà riordino fissa. È disabilitato per tutte le altre opzioni di metodi di riordino.

    Per un risultato ottimale, impostare il campo in modo che il punto di riordino sia superiore alla scorta di sicurezza e inferiore alla quantità di riordino.

    Il campo di Qtà di riordino ricopre un ruolo nel calcolo del livello di overflow. Per ulteriori informazioni, vedere Dettagli di progettazione: Al di sotto del livello di overflow.

    3.32 Giacenza massima Ø Specifica una quantità da utilizzare come livello di magazzino massimo.

    Specifica una quantità da utilizzare come livello di magazzino massimo.

    La giacenza massima al netto della quantità della scorta di sicurezza viene utilizzata per calcolare le quantità delle proposte d’ordine.

    Nota A seconda della giacenza corrente, è possibile che vengano generate quantità di proposte d’ordine per effetto delle quali la disponibilità calcolata può superare la giacenza massima definita.

    Questo campo è utilizzato solamente con il metodo di riordino Qtà Massima. È disabilitato per tutte le altre opzioni di metodi di riordino.

    Nota Per un risultato ottimale, impostare il campo in modo che il punto di riordino sia minore della giacenza massima e maggiore della scorta di sicurezza.

    Il campo di Qtà di riordino ricopre un ruolo nel calcolo del livello di overflow. Per ulteriori informazioni, vedere Dettagli di progettazione: Al di sotto del livello di overflow.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 257 3.33 Livello di overflow Ø Specifica una quantità in base alla quale la giacenza disponibile può superare il punto di riordino prima che il sistema suggerisca di ridurre gli ordini di approvvigionamento esistenti.

    Ø Il campo risulta utile se si desidera che il piano di approvvigionamento rimanga invariato dopo modifiche secondarie, quali l’annullamento di quantità della domanda non significative.

    Il livello del overflow è ignorato se è più basso della quantità di approvvigionamento suggerita.

    Il livello di overflow funziona solo per gli articoli che utilizzano i metodi di riordino Qtà massima o Qtà Riordino Fissa.

    Metodo di riordinoDescrizioneQtà MassimaLivello di overflow = Giacenza massima + ( Quantità minima ordine. + arrotondato alla molteplicità ordine più vicina) Qtà Riordino FissaLivello di overflow = Qtà di riordino + Punto riordino + ( Quantità minima dell’ordine + arrotondato alla molteplicità ordine più vicina)

    3.34 Intervallo di tempo Ø Specifica un periodo di tempo che definisce l’orizzonte di pianificazione ricorrente dell’articolo quando si utilizzano i metodi di riordino Qtà Riordino Fissa o Qtà Massima.

    L’intervallo di tempo definisce la frequenza di controllo se il magazzino previsto raggiunge o è inferiore al punto di riordino. Il sistema di pianificazione utilizza l’intervallo di tempo nei modi seguenti:

    • Per raggruppare i fabbisogni in scadenza nell’intervallo di tempo. • Per ripianificare potenzialmente un ordine di rifornimento in scadenza nell’intervallo di tempo per soddisfare un determinato fabbisogno. • Per determinare quando il punto di riordinare è stato superato. Se il campo viene lasciato vuoto, i fabbisogni che presentano la stessa data di scadenza verranno raggruppati.

    NotaIl campo non è disponibile se si selezionano i criteri di ordine o il metodo di riordino Lotto-per-lotto. Ogni domanda viene quindi gestita separatamente anche se altre domande condividono la stessa data.

    Il valore immesso nel campo Intervallo di tempo deve essere una formula relativa alla data in cui un giorno (1D) corrisponde al periodo più breve consentito.

    NotaIn tutti i campi di formula di dati, viene automaticamente incluso un giorno per coprire la data odierna come giorno di inizio del periodo. Di conseguenza, se si immette, ad esempio, 1W, il periodo è effettivamente di otto giorni perché la data odierna è

    258 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) inclusa. Per specificare un periodo di sette giorni (una settimana) includendo la data di inizio del periodo, è necessario immettere 6D o 1W-1D.

    3.35 Moltiplicatori ordini (per tipologie “<> Ordine”) 3.36 Qtà minina ordine Ø Definisce una quantità minima consentita per una proposta d’ordine.

    Utilizzare, ad esempio, se l’articolo è recapitato in un’unità di trasporto fissa, come un contenitore, che si desidera utilizzare completamente.

    Una volta rilevata l’esigenza di un rifornimento e rettificata la dimensione del lotto in modo da soddisfare il metodo di riordino specificato, la quantità verrà aumentata per soddisfare la quantità minima di ordine definita per l’articolo.

    Utilizzare questo campo con una politica di produzione di tipo produzione per magazzino.

    3.37 Qtà massima ordine Ø Specifica una quantità massima consentita per una proposta d’ordine.

    Utilizzare, ad esempio, se l’articolo è recapitato in un’unità di trasporto fissa, come un contenitore, che si desidera utilizzare completamente.

    Una volta rilevata l’esigenza di un rifornimento e rettificata la dimensione del lotto in modo da soddisfare il metodo di riordino specificato, la quantità viene ridotta se è necessario soddisfare la quantità massima di ordine definita per l’articolo.

    Qualora dovessero rimanere fabbisogni aggiuntivi, verranno calcolati nuovi ordini volti a soddisfarli.

    NOTA: questo campo viene in genere utilizzato con una politica di produzione di tipo “produzione per magazzino”.

    3.38 Molteplicità ordine Ø Definisce un parametro che è utilizzato dal sistema di pianificazione per modificare la quantità ordine degli ordini di approvvigionamento pianificati.

    Ø La molteplicità ordine è un numero intero che definisce la quantità in cui verrà

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 259 arrotondata la quantità ordine. La quantità ordine modificata è quindi divisibile per la molteplicità ordine.

    Esempio

    • Molteplicità ordine: 5 • Quantità ordine iniziale: 17 • Quantità ordine modificata: 20 La quantità ordine iniziale di 17 viene arrotondata al numero al più vicino divisibile per 5, ovvero 20.

    Il campo di Molteplicità ordine è utilizzato nel calcolo del livello di overflow.

    Nice MSDN Pages Here:

    NAV 2016 Operations Planning https://msdn.microsoft.com/en- us/library/hh173020(v=nav.90).aspx

    NAV 2016 Perform Master Planning https://msdn.microsoft.com/en- us/library/hh173769(v=nav.90).aspx

    NAV 2016 Perform Material Requirements Planning https://msdn.microsoft.com/en- us/library/hh173254(v=nav.90).aspx

    NAV 2016 How To Run MPS\MRP https://msdn.microsoft.com/en- us/library/hh173804(v=nav.90).aspx Configuring Client Timeout in NAV 2016 CU 8 | Dynamics NAV Team Blog

    Friday, June 24, 2016 Configuring Client Timeout in NAV 2016 CU 8

    “Finally, by popular demand, we changed this in Dynamics NAV 2016 Cumulative Update 8: The “ ClientKeepAlive” setting has been moved from the user level to the service level, and is no longer defined in number of seconds but as a time interval, just like the Idle Client Timeout setting.

    To configure the timeout for the Dynamics NAV Web client, it is sufficient to configure the SessionTimeout setting in the web.config file to the relevant interval – in our example it’s 00:10:00.

    “We hope this clarifies the process for setting the timeout for the Dynamics NAV Windows client and Dynamics NAV Web client.”

    260 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Source https://blogs.msdn.microsoft.com/nav/2016/06/24/configuring-client-timeout/

    Configuring Client Timeout | Dynamics NAV Team Blog

    Great !!! Project “Madeira” my presentation on slideshare & support page

    Thursday, June 30, 2016 Project “Madeira” my presentation on slideshare

    http://www.slideshare.net/RobertoStefanetti/project-madeira-preview-64103692

    Project “Madeira” is a busine ss management solution for small and mid-sized organizations that automates and streamlines business processes and helps you manage your business. Signing up is easy, and you can migrate existing business data from your legacy system. When you have signed up for the Project “Madeira” preview, you have access to a demonstration company. The demonstration company contains sample data, but you can create your own sales documents, for example, or set up a bank account.

    In the preview, you can see visual guides that explain core functionality. These guides let you try out daily tasks such as making a sales invoice and viewing a report. When you want to explore Project “Madeira” on your own, you can always go back to the Getting Started tour by launching it from the Home page.

    The Home page is also where you will find the Assisted Setup & Tasks action. Here you see a list of assisted setup that can help you getting started. Once you have migrated data such as vendors, customers, and items from your existing financial system using the Migrate Business Data assisted setup you are ready to begin. But depending on your needs, consider if the other assisted setup can help you.

    In the Assisted Setup window, you will find the following:

    Assisted SetupDescription Set Up Company Creates a new trial company for you to enter data and try our Project “Madeira”. If you went through the Getting Started tour this is probably already Completed. Migrate Business Data Lets you import your existing company data such as vendors, customers, and items from Excel or Quickbooks. Set Up Sales Tax Gets you started with default Tax groups and assigning Tax area codes that you can assign to customers and vendors in order to automatically calculate sales tax in sales or purchase documents. Set Up Email Gets you ready for sending email messages directly from, for example, sales orders or contacts in Project “Madeira”. Set Up Office Add-Ins Sets up the ability to use and launch Project “Madeira” from Outlook. Set Up

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 261 Email Logging Sets up the capability to log email correspondence in Project “Madeira” to follow up on interactions.

    When you have run an assisted setup, it is marked as Completed. To run the assisted setup, you choose the three dots also called the context menu, and then you select Start Setup.

    Madeira Help Page https://madeira.microsoft.com/en-us/documentation/madeira-get- started/

    Source: Welcome to Project “Madeira” | Project “Madeira”

    On Twitter https://twitter.com/ProjectMadeira Business Solutions MVP Award 2016 (NAV)

    Friday, July 01, 2016 Business Solutions MVP Award 2016 (NAV)

    … stamattina mi è arrivata questa mail da Microsoft !!! onorato del premio !

    Salve Roberto Stefanetti,

    Complimenti! Siamo lieti di presentarti l’edizione 2016 del titolo MVP Microsoft.

    Si tratta di un premio destinato ai leader delle community tecniche con doti eccezionali che condividono attivamente con altri la straordinaria qualità della propria competenza sul campo. Apprezziamo davvero il tuo incredibile contributo, relativamente a Business Solutions, all’interno delle community tecniche durante lo scorso anno. Il Microsoft MVP Award ci offre un’opportunità unica per celebrare ed onorare i suoi contributi così significativi e per dirle “ Grazie per la sua leadership tecnica“.

    Congratulazioni Roberto! , sei una delle poche centinaia di persone nel Mondo che sono state insignite del Microsoft MVP Award.

    …after a lot of post on my new blog, TechNet articles and reviews, NAV books reviews, Dynamics NAV forum moderation activies, some bugs, suggestions for product change and improvement .. after many nominations, many times in first five european contenders … finally i got !

    …today is a GREAT day !!! … only one simple “word” to ALL my readers & followers : THANKS !!! Thanks to Microsoft.

    MY MVP PROFILE PAGE

    https://mvp.microsoft.com/it-

    262 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) it/PublicProfile/5001957?FullName=Roberto%20%20Stefanetti

    MVP 2016 AWARD KIT

    TECHNET PROFILE MVP, MCC https://social.msdn.microsoft.com/Profile/v1/roberto%20stefanetti/

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 263 Gestione Commesse in NAV (NAV Project Management Module)

    Tuesday, July 05, 2016 My Last Video on Youtube: “Gestione Commesse in NAV (NAV Project Management Module)”

    .. also available on Slideshare

    Gestione commesse (pm) NAV 2016 from Roberto Stefanetti Automate backup on SQL Express and Send Mail Powershell Script

    Tuesday, July 05, 2016 235 download on Technet…

    Roberto Stefanetti NAV Blog

    Sql Server Backup Automation and send-email Solution to automate backup on SQL Express and send mail based on first Microsoft SQL BackupScript “sp_SQLBackupDatabases”

    Scheduling NB: SQL Server Agent “is not available” on this SQL release You can schedule jobs with standard “Windows Jobs“ !

    How System Works: 3 Objectsd based procedure: 1) batch file > SQL-Backup.bat (Execute ALL Procedure) 2) backup procedure > SP_SQLBackupDatabase.sql (original Microsoft SQL Backup Script) 3) Send mail > Send-email.ps1 (a send email routine based on Powershell Script)

    Example: sqlcmd -U sa -P xxxx -S .SQL2012EXPRESS -Q “EXEC sp_SQLBackupDatabases @backupLocation = ‘C:SQLBackups’, @backupType = ‘F’”

    Original Microsoft Solution: https://support.microsoft.com/en-us/kb/2019698

    264 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) MSDN Post Link https://gallery.technet.microsoft.com/Automate-backup-on-SQL- 21eb452d Download link https://gallery.technet.microsoft.com/Automate-backup-on-SQL- 21eb452d/file/142818/1/SQL-BackupEmail.zip

    View original post Microsoft Dynamics 365 news

    Wednesday, July 06, 2016 Microsoft Dynamics 365 news

    “ Rethink what’s possible for your business with intelligent business apps in the cloud“, “Helping customers transform with a new approach to business process”

    Dynamics 365 & AppSource

    “ Deep integration between Dynamics 365 and Office 365 will connect the structured workflow of business apps with the unstructured work of collaboration and Productivity.

    Available this fall, Microsoft Dynamics 365 evolves our current CRM and ERP cloud solutions into one cloud service with new purpose-built apps to help manage specific business functions, including: Financials, Field Service, Sales, Operations, Marketing, Project Service Automation and Customer Service.

    Dynamics 365 apps are designed so they can be easily and independently deployed. That means you can start small and pay only for what you need. Yet they work together seamlessly so, as your business demands, you can grow into additional capabilities with ease. They include built-in insights, predictive intelligence and workflow optimization, all of which will be delivered through simple, easy-to-use, mobile experiences with offline capabilities.

    “Power BI and Cortana” Intelligence will be natively embedded to help customers achieve their business goals with predictive insights, prescriptive advice and actionable next steps.

    Customers can learn more about Dynamics 365 here and about AppSource here .

    Source: Microsoft Dynamics 365 by Takeshi Numoto posted on Official Microsoft Blog

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 265 Dynamics 365 best Images from presentations

    Dynamics 365 best links from Microsoft

    https://www.microsoft.com/en-us/dynamics/dynamics-365

    https://community.dynamics.com/b/msftdynamicsblog/archive/2016/07/13/reinventing- business-processes

    https://community.dynamics.com/b/msftdynamicsblog/archive/2016/07/06/insights-from- the-engineering-leaders-behind-microsoft-dynamics-365-and-microsoft-appsource

    https://www.microsoft.com/en-us/dynamics/small-midsize-business.aspx

    https://www.microsoft.com/en-us/dynamics/erp.aspx

    https://www.microsoft.com/en-us/dynamics/erp-small-midsize-business.aspx

    https://www.microsoft.com/en-us/dynamics/support.aspx

    My opinion:… Madeira…Dynamics 365 & AppSource … lot of changes scheduled in Autumn i think! … i will serch more information about these topics asap! STAY TUNED ! Some links about Powershell “cmdlets” for NAV

    Monday, July 11, 2016 Some links about Powershell “cmdlets” for NAV

    266 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) “ CMDLETS” IN NAV

    The cmdlets are available in two Windows PowerShell modules: Microsoft Dynamics NAV 2016 Administration Shell and Microsoft Dynamics NAV 2016 Development Shell.

    • The Microsoft Dynamics NAV 2016 Administration Shell includes cmdlets for administering the Microsoft Dynamics NAV deployment, such as adding and configuring Microsoft Dynamics NAV server instances, databases, and users. Also included are cmdlets for administering extension packages. The Microsoft Dynamics NAV 2016 Administration Shell is installed with the Microsoft Dynamics NAV Server. • The Microsoft Dynamics NAV 2016 Development Shell includes cmdlets for merging and modifying application object files. Also included are cmdlets for creating extension packages. The Microsoft Dynamics NAV 2016 Development Shell is installed with the Microsoft Dynamics NAV Development Environment. https://msdn.microsoft.com/en-us/library/hh166599(v=nav.90).aspx

    “ALL” about CMDLETS LINKS

    A list of bestlinks about cmdlets in NAV 2016 (MSDN)

    Administration Cmdlets for Microsoft Dynamics NAV https://msdn.microsoft.com/en-us/library/jj672916(v=nav.90).aspx

    Development Cmdlets for Microsoft Dynamics NAV https://msdn.microsoft.com/en-us/library/dn789712(v=nav.90).aspx

    Microsoft Dynamics NAV Windows PowerShell Cmdlets https://msdn.microsoft.com/en-us/library/hh166599(v=nav.90).aspx

    Comparing and Merging Application Object Source Files https://msdn.microsoft.com/en-us/library/dn789581(v=nav.90).aspx

    Administration Cmdlets for Microsoft Dynamics NAV Extensions https://msdn.microsoft.com/en-us/library/mt584148(v=nav.90).aspx

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 267 Development Cmdlets for Microsoft Dynamics NAV Extensions

    https://msdn.microsoft.com/en-us/library/mt584152(v=nav.90).aspx

    Changes to Microsoft Dynamics NAV Cmdlets From Previous Release

    https://msdn.microsoft.com/en-us/library/dn951485(v=nav.90).aspx

    Exporting and Importing Companies and Other Data

    https://msdn.microsoft.com/en-us/library/dn789595(v=nav.90).aspx

    Others nice links below:

    Guida introduttiva a Windows PowerShell

    https://msdn.microsoft.com/powershell/scripting/getting-started/getting-started-with- windows-powershell

    Sample Windows PowerShell Scripts for Microsoft Dynamics NAV

    https://msdn.microsoft.com/en-us/library/dn271676(v=nav.90).aspx

    Managing Dynamics NAV with PowerShell

    http://www.softwareanswers.co.uk/software_answers/2014/09/managing-dynamics-nav- with-powershell.htm

    About Microsoft Dynamics NAV 2016 Development Shell

    CMDLETS LIST

    For a complete list of cmdlets:

    • Get-Command -Module Microsoft.Dynamics.Nav.Model.Tools, Microsoft.Dynamics.Nav.Apps.Tools, Microsoft.Dynamics.Nav.Apps.Management

    Cms Type Name Function Compile-NAVApplicationObject Function Create- NAVDatabase Function Delete-NAVApplicationObject Function Export- NAVApplicationObject Function Import-NAVApplicationObject Function Invoke- NAVDatabaseConversion Cmdlet Compare-NAVApplicationObject Cmdlet Export- NAVApplicationObjectLanguage Cmdlet Export-NAVAppPermissionSet Cmdlet Get-

    268 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) NAVAppInfo Cmdlet Get-NAVApplicationObjectProperty Cmdlet Get-NAVAppManifest Cmdlet Get-NAVAppTenant Cmdlet Import-NAVApplicationObjectLanguage Cmdlet Install-NAVApp Cmdlet Join-NAVApplicationObjectFile Cmdlet Join- NAVApplicationObjectLanguageFile Cmdlet Merge-NAVApplicationObject Cmdlet New- NAVAppManifest Cmdlet New-NAVAppManifestFile Cmdlet New-NAVAppPackage Cmdlet New-NAVCrmTable Cmdlet Publish-NAVApp Cmdlet Remove- NAVApplicationObjectLanguage Cmdlet Repair-NAVApp Cmdlet Set- NAVApplicationObjectProperty Cmdlet Set-NAVAppManifest Cmdlet Split- NAVApplicationObjectFile Cmdlet Split-NAVApplicationObjectLanguageFile Cmdlet Test- NAVApplicationObjectLanguage Cmdlet Uninstall-NAVApp Cmdlet Unpublish-NAVApp Cmdlet Update-NAVApplicationObject

    MY FAVORITE COMMANDS: “JOIN & SPLIT”

    JOIN

    Join-navapplicationobjectfile (SINGLE FILE CREATION COMMAND (CREATION WITH FIRST CHECK SYNTAX IN “JOIN” COMMAND)

    System stops single “file merging procedure” if any error is ecountered during converting process; system make a first check objects structure during this process.

    Command

    PS C:> cd E:MERGEPages

    PS E:MERGEPages> Join-navapplicationobjectfile -source ‘E:MERGEPages*.txt’ –destination ‘E:MERGEPagesPages_OutPages_OutMerged.txt’

    SAMPLE OUTPUT

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 269 SAMPLE ERROR

    “WARNING: E:MERGEPagesPAG12133.TXT (252,28) = expected.”

    -a— 08/07/2016 10:28 147645 Pages_OutMerged.txt

    IF FILE EXIST….

    Overwrite?

    E:MERGEPagesSplitFilesPagesPAG12190.TXT

    [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “Y”):a

    270 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Well done > File correctly created after syntax parsing.

    SPLIT

    Split-navapplicationobjectfile (SPLIT FILES CREATION COMMAND (WITH FIRST CHECK SYNTAX IN “SPLIT” COMMAND)

    System stops single “file merging procedure” if any error is ecountered during converting process; system make a first check objects structure during this process.

    Command

    PS C:Windowssystem32> Split- navapplicationobjectfile –source ‘E:MERGEPagesMergedFilesPages_OutM erged_12000.txt’ –destination ‘E:MERGEPagesSplitFilesPages12000_Spl it’

    SAMPLE OUTPUT

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 271 Announcing NAV 2017 @WPC 2016

    Wednesday, July 13, 2016 some public pictures from event “WPC 2016”

    https://resources.wpc.microsoft.com/session-resources.html#

    272 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) you can download videos and ppt slides here: https://resources.wpc.microsoft.com/session-resources.html# nice post by Saurav Dhyani about event topics here: http://saurav-nav.blogspot.it/2016/08/microsoft-dynamics-nav-2017-demo-wpc.html

    Mark Brummel Blog | Microsoft Dynamics NAV

    Big news from WPC today. Paul White presented the future for the Dynamics SMB space. Project Madeira will be launched this fall as Dynamics 365 – Business Edition, divided into Financials and Sales & Marketing

    The launch will be US and Canada first and in 2017 four (4) European countries.

    Integration is key for Microsoft Dynamics 365. Integration with PowerApps and Flow. PowerBI and Office 365.

    Dynamics 365 Business Edition will be launched during NAVUG Summit in Tampa. See you there.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 273 View original post Database Conversion for a Dynamics NAV database stored in Azure

    Thursday, July 14, 2016 Source: Database Conversion for a Dynamics NAV database stored in Azure New NAV 2016 videos about “extensions”

    Thursday, July 14, 2016 New NAV 2016 videos about “extensions”

    In the “NAV Videos” section of the Dynamics Community, new videos have been added about use of extensions in NAV 2016. You can find them at this link: https://community.dynamics.com/nav/b/navvideos

    New Videos:

    How Do I Build a Basic Microsoft Dynamics NAV Extension

    How Do I Build My Own Development Environment for Starting to Develop Dynamics NAV Extensions

    How Do I Get Started with Building Microsoft Dynamics NAV Extensions on the Azure Demo

    How Do I Set Prerequisites and Dependencies with Microsoft Dynamics NAV Extensions

    How Do I Include a Permission Set in a Microsoft Dynamics NAV Extension

    you can find other links about extensions in my previous post (MSDN, HOW-TO, blog posts links etc.)

    Some links about NAV 2016 “Extensions” https://community.dynamics.com/nav/b/arounddynamicsnavworld/archive/2016/03/31/so

    274 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) me-links-about-nav-2016-extensions

    …good vision at all ! NAV 2016 Italian Flyer

    Friday, July 15, 2016 NAV 2016 Italian Flyer

    NAV 2016 What’s New Flyer, a short flyer (fast tracks) about NAV 2016 new features.

    Download link: http://www.soluzioniedp.it/admin/public/downloads/52cb0bfb7756a9314d0b25770b206ee 1/files/FlyerPersonalizzatoSEDP-Dynamics-NAV2016-SEDP-lowres.pdf Project “Madeira” topics & links

    Tuesday, July 19, 2016 Project “Madeira” topics & links – Short presentation of Project Madeira with ALL existing links.

    Project "Madeira" preview from Roberto Stefanetti Dynamics NAV: HR (Human Resources) module – TechNet Wiki

    Thursday, July 21, 2016

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 275 Source: Dynamics NAV: HR (Human Resources) module – TechNet Articles – United States (English) – TechNet Wiki NAV Shortcuts & Filters | ArcherPoint, Inc.

    Saturday, July 23, 2016 Great post about “NAV Keyboard Shortcuts & Filters” by Archerpoint.

    13 essential NAV Schortcuts

    http://www.archerpoint.com/sites/default/files/docs/dynamics-nav-shortcut-keys.pdf

    NAV Filters

    http://www.archerpoint.com/sites/default/files/docs/dynamics-nav-filters-guide.pdf

    Source: 13 Essential Microsoft Dynamics NAV Shortcuts | ArcherPoint, Inc. Load Data into NAV using C/AL and Powershell (SQL From NAV Part I)

    Sunday, July 24, 2016 Load Data into NAV using C/AL & Powershell

    Sample Scenario

    “Read distributed data from Sql Server and load a data warehouse using NAV C/AL with Powershell integration”

    If you need to retrieve (and aggregate) data from more than ONE company or from more than ONE database , in NAV you can use “SQL Server Views” objects mapped as “NAV

    276 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) linked objects”.

    … but if don’t want to use NAV Linked objects (SQL Tables or SQL View because is complex and time consuming to managing with many companies\many databases or because you don’t’ want to consume NAV tables for linked objects) and you don’t like “.net integrations” or utilization of external applications, you can use Powershell in NAV (and outside NAV certainly…)

    You can achieve this goal using a Hybrid Methods to load data into NAV from different sources

    • Read data from Powershell • Write Data\Processing in NAV with C/AL Coding You can use two functions by Waldo to do this:

    • Powershell Wrapper for NAV C/AL function • Invoke-NAVSQL function Scenario

    • Use good Waldo function to launch powershell fro NAV (after this you can schedule on NAV NAS load data process) – PowerShell Wrapper • Read Sql Views from Powershell using Waldo ‘ Invoke-NAVSQL’ function • Write into NAV table using C/AL logic & data validations mixing C/AL and Powershell commands. NB: Powershell consumes a concurrent user.

    Details about these good functions by Waldo

    “How-to” use powershell in NAV (NAV Powershell Wrapper)

    • look at Waldo Blog to achieve this functionality http://www.waldo.be/2014/12/17/running-powershell-from-nav/ • Download module here http://mibuso.com/downloads/running-powershell-in-nav • “It’s basically a wrapper to easily use “ System.Management.Automation.Runspaces.Runspace” and “ System.Management.Automation.PowerShell”. “How- to” load data into NAV with Powershell? (Invoke-NAVSQL)

    • You can use Waldo function “ Invoke-NAVSQL” (function is similar to existing function part of the SQLPS module) • “Invoke-NAVSQL”: Execute SQL queries on NAV databases with PowerShell • http://www.waldo.be/2016/06/08/invoke-navsql-execute-sql-queries-on-nav- databases-with-powershell/ • Download function here: https://github.com/waldo1001/Cloud.Ready.Software.PowerShell/blob/master/PSMo dules/Cloud.Ready.Software.NAV/SQL/Invoke-NAVSQL.ps1 Example

    Get all companies, and get the customers of the first company:

    $Mycompanies = Invoke-NAVSql -ServerInstance ‘dynamicsNAV90’ -SQLCommand ‘Select * From Company’

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 277 $Customers = $Mycompanies |

    select -First 1 |

    foreach{ Invoke-NAVSQL -ServerInstance ‘dynamicsNAV90’ -SQLCommand “select * from [$($_.Name)$(‘$Customer’)]” -ShowWriteHost }

    $Customers | select ‘No_’, Name, ‘Credit Limit (LCY)’ | Format-Table –AutoSize

    ALL Source links:

    http://www.waldo.be/2014/12/17/running-powershell-from-nav/

    http://mibuso.com/downloads/running-powershell-in-nav

    http://www.waldo.be/2016/06/08/invoke-navsql-execute-sql-queries-on-nav-databases- with-powershell/

    https://github.com/waldo1001/Cloud.Ready.Software.PowerShell/blob/master/PSModules /Cloud.Ready.Software.NAV/SQL/Invoke-NAVSQL.ps1 NAV 2013 SQL Query Codeunit Tool (SQL From NAV Part II)

    Wednesday, July 27, 2016 NAV 2013 SQL Query Codeunit tool

    i found this nice demo tool by Dynamic Manufacturing Solutions on Mibuso.

    Source http://mibuso.com/downloads/nav-2013-sql-query-codeunit nice tool, based on .NET integration (AD), usefull if you don’t like Powershell.

    Purpose of this tool “Simple codeunit allows you to execute an SQL query to populate any NAV (temporary) table using one call. Test page is included to demonstrate functionality with a simple query.”

    … Nice tool (with demo page & codeunit objects) tu run SQL Statements directly from NAV using .NET integration (ADODB); you can run SQL Select statements and any sql commands (if you have rights).

    Modifications

    I did some modifications to load a generic table using dynamics fields.. example field1. field2, fiels3 etc. and possibility lo load a saved SQL Statement from “.SQL” Script file or from BLOB field in “SQL Commands Table” etc. ..

    Example of utilization ..you can retrieve Intercompany “Contacts” running a simple “SELECT with UNION SQL statement”…

    278 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) .. also you can publish this page “as a web service” to retrive\expose data from multi- sources database using only a web service connection!

    SIMPLE QUERY SELECT SUM(Quantity) AS QuantityTot, [Item No_], [Location Code], [Lot No_], [Serial No_] FROM dbo.[CRONUS Italia S_p_A_$Item Ledger Entry] GROUP BY [Item No_], [Location Code],[Lot No_],[Serial No_] HAVING ([Location Code]<>” AND (SUM(Quantity)) >0)

    MORE COMPLEX QUERY WITH HAVING FILTERS SELECT SUM(Quantity) AS Field1, [Item No_] as Field2, [Location Code] as Field3, [Lot No_] as Field4, [Serial No_] as Fileld5 FROM dbo.[CRONUS Italia S_p_A_$Item Ledger Entry] GROUP BY [Item No_], [Location Code],[Lot No_],[Serial No_] HAVING ([Location Code]<>” AND (SUM(Quantity)) >0)

    SQL STATEMENT TO “CREATE A NEW TABLE” CREATE ACTIVITY 2 TABLE CREATE TABLE [dbo].[CRONUS Italia S_p_A_$Activity_2]( [timestamp] [timestamp] NOT NULL, [Code] nvarchar NOT NULL, [Description] nvarchar NOT NULL, CONSTRAINT [CRONUS Italia S_p_A_$Activity$10] PRIMARY KEY CLUSTERED ( [Code] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY]

    ANY SQL COMMAND EX BACKUP….. etc. etc.

    Great tool!

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 279 Source http://mibuso.com/downloads/nav-2013-sql-query-codeunit “Scheduling Reports” option also available in r...

    Friday, July 29, 2016 Dynamics Product Suggestion | Microsoft Connect

    “Scheduling Report” option also available in report.RUNMODAL instead of report.RUN

    it would be useful to use the “ report schedule” option also in report.RUNMODAL mode (in this mode is inhibited by design). i can change the codeunit that launchs reports from “report selection” but i think isn’t a good idea, i dont’ know why this feature is inhibited by design.

    Source: “Scheduling Reports” option also available in report.RUNMODAL instead of report.RUN | Microsoft Connect Let NAV Speak (with a Simple and Useful Client Add-in)

    Saturday, July 30, 2016 nice old post by Duilio Tacconi.

    “In this blog post you will find the source code (below) to “ let NAV speak.” You would have a wide range of possibilities to use this simple Add-in and enlarge this project.

    If you want to know more about Client Add-ins you can refer to this MSDN link:

    Extending the RoleTailored Client Using Control Add-ins and Microsoft Dynamics NAV 2009 SP1

    This simple Client Add-In is based on System.Speech namespace:

    Microsoft.Speech.Synthesis Namespace

    Source: Let NAV Speak (with a Simple and Useful Client Add-in) – Dynamics NAV Team Blog How to Use MVC.Net on the Dynamics NAV Database Structure

    Saturday, July 30, 2016 How to Use MVC.Net on the Dynamics NAV Database Structure

    280 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) nice post about ASP MVC.Net integration with NAV (post by Codeproject).

    About ASP MVC.Net

    ASP MVC.Net is an robust & good pattern-based way to build dynamic websites; if you don’t like to use Web Services & OData this is a valid alternative (old but actual). You can use to build Website based on NAV database structure. “How you can use the Entity Framework in an MVC.Net web application with Dynamics NAV ?”

    Tutorial

    This tutorial will show you how you can use the Entity Framework in an MVC.Net web application with Dynamics NAV.

    Take a look to project.

    Source: http://www.codeproject.com/Articles/421643/How-to-Use-MVC-Net-on-the- Dynamics-NAV-Database-St A Visual SQL Query Designer – Code project (SQL From NAV ...

    Monday, August 01, 2016 A Visual SQL Query Designer – Code Project (SQL From NAV Part III)

    If some of your customers asks you to gain access to SQL data directly from NAV (as other systems with integrated query editors..) can use this nice tool to run SQL queries (or others T-SQL statements…). This tools recalls some typical features of SQL Studio Management studio like Visual SQL Query Designer; currently is available in 2 releases (VB.NET and C #), i tested the C# solution that works well.

    Tool is under “ CPOL Licence”

    “Source Code can be modified to create derivative works”, … you can modify the solution’s source to create derivates. For example you can create a class for NAV .NET integration or create anaddin for RTC Client, the tool also can be used directly by calling him from Wshell in NAV (.EXE); you can however also pilot the numbers of records extracted etc. etc. .. nice tool anyway.

    Tool features

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 281 “This article describes the implementation of a QueryDesignerDialog class that allows users to create SQL queries based on a given OLEDB connection string.

    Code Download

    • Download demo project – 47.7 KB • Download source (C#) – 83.7 KB • Download source (VB) – 79.8 KB Source http://www.codeproject.com/Articles/43171/A-Visual-SQL-Query-Designer NAV 2017 Roadmap

    Thursday, August 04, 2016 NAV 2017 Roadmap

    Some nice “public pictures” from event “WPC 2016”

    https://resources.wpc.microsoft.com/session-resources.html#

    282 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 283 ..you can download official Microsoft videos and ppt slides from here:

    https://resources.wpc.microsoft.com/session-resources.html#

    nice post by Saurav Dhyani about event topics here:

    http://saurav-nav.blogspot.it/2016/08/microsoft-dynamics-nav-2017-demo-wpc.html

    you are welcome ! Word Layout reports data control by C/AL

    Thursday, August 11, 2016

    Some have asked me (both on Dynamics Community and Mibuso) how to use in NAV Word Layout reports property to hide the value 0 or other values in fields under conditions.

    Sample of question: “I have made a report in NAV 2016 using Word and XML. Everything is very well, but I have one problem. When “quantity” is added to the report, writes NAV “0” in all cells with no information. In the attached picture saying “with error” you can see That the “quantity” cell with no information is filled with “0”.”

    Question ref. http://forum.mibuso.com/discussion/67111/nav-2016-word-report-is- generating-extra-0 Answer “ No, only in C / SIDE in this case (simple common solution), the use in this way (no logic in Word, all in C (SIDE) .. but .. i think That you can create functions in Word (macro) ,in word template. you can modify XML an add also Javascript support… an so on..”

    Some functions can be used with C / AL With these sample functions you can simulate what is done by the visibility property of the RDLC report or by VBNET Functions included in the report (Public Functions on CODE section of reports).

    284 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Examples

    Num2Str (IdecValue: Decimal) OtxtValue: Text [100] IF IdecValue <> 0 THEN BEGIN OtxtValue: = FORMAT (IdecValue, 0, ‘ ’); END;

    Num2Str2 (IdecValue: Decimal) OtxtValue: Text [100] OtxtValue:=FORMAT(IdecValue,0,'’);

    Int2Str (inValue: Integer) OtxtValue: Text [100] IF inValue <> 0 THEN BEGIN OtxtValue: = FORMAT (inValue); END; .. etc etc. SQL Server Migration Assistant for Datazen now generally available

    Wednesday, August 17, 2016 A blog from the SQL Server Reporting Services product team at Microsoft.

    Source: SQL Server Migration Assistant for Datazen now generally available | SQL Server Reporting Services Team Blog Dynamics Profile: New Dynamics NAV MVP Roberto Stefanetti Eager to ...

    Friday, August 19, 2016 Award-winning blogger Stefanetti says MVP status will help him to share even more intelligence about Dynamics NAV.

    Source: Dynamics Profile: New Dynamics NAV MVP Roberto Stefanetti Eager to Share More Broadly – MSDynamicsWorld.com Dynamics 365 and more: What you need to know

    Friday, August 19, 2016 Dynamics 365 and more: What you need to know

    Nice page with a lot of information about Microsoft Dynamics Business & Cloud: “ What you need to know”. http://www.gacollective.com/Dynamics/Dynamics_Business_and_Cloud_News_August_2 016.html

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 285 About Microsoft Dynamics 365

    Satya Nadella Announces Microsoft Dynamics 365 at WPC 2016.

    Microsoft Dynamics 365

    Designed to help change the nature of digital work within organizations of all sizes, Microsoft Dynamics 365 empowers business users with built-in insights and intelligence within the business applications they’re working in – applications like field service, sales, finance, and operations.

    “ As a result, Microsoft Dynamics 365: – Introduces a disruptive and customer centric business model to build what you want and buy just the capabilities you need, while ensuring all roles have access to all the data they need to be successful in their jobs – Helps organizations move from monolithic application suites to purpose-built, SaaS applications with intelligence built-in – Integrates Microsoft Office 365”

    Latest video about Microsoft Dynamics Business Solutions https://www.youtube.com/user/msdyncomm/featured

    “ALL” Social Links

    Facebook http://www.facebook.com/msftdynamics Linkedin https://www.linkedin.com/company/microsoft-dynamics Twitter https://twitter.com/msftdynamics Youtube https://www.youtube.com/user/msdyncomm/playlists “Cached Web Service Calls” – Microsof...

    Wednesday, August 24, 2016 Cached web services calls

    in this section you can find a nice post by NAV Team blog about “ cached web services calls”:

    Abstract In a service-oriented deployment, web services are used to extend NAV’s functionality and reach. Depending on how volatile this data is and the corresponding usage scheme, it is expected to be up-to-date within a pre-defined period of time (e.g. once a day).

    286 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Description When NAV is integrated with external services, then the user scenarios become dependent on the data and functions offered by such services. Eventually, there are different approaches through which the external data can be retrieved, stored and used.

    • Dynamic: either exposed by the external service itself or by a separate catalog that NAV can query. Advantage: data is always up-to-date • Disadvantage: it requires constant connection to the data source. • Static: hard-coded in the database for the user to benefit from. Advantage: data is promptly available when needed. • Disadvantage: if data changes at some point, it will require a maintenance effort, which exposes the business process to a risk of failure. • Cached: offered through an external service and gets pulled according to a pre- defined refresh rate or manually. Advantage: data is ‘up-to-date’ within the rules acceptable by the business process, without extra load on the network resources or the external service. • Disadvantage: if data changes while the auto-refresh did not happen yet, the user may not have access to the latest data; however, the user can manually force a refresh of the data, if asked to do so. When to Use It Offer data in lookups that were cached from an external service.

    Diagram

    Source with samples: Cached Web Service Calls – Microsoft Dynamics NAV Community Design Patterns Wiki

    Read the “ wiki page” on the Microsoft Dynamics Community! https://community.dynamics.com/nav/w/designpatterns

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 287 Let NAV BEEP! (with .NET Interop “SystemSounds Class&...

    Monday, August 29, 2016

    “It is known that in Role Tailored Based environment BEEP C/AL function is not supported” https://msdn.microsoft.com/en- us/library/dd301405.aspx?f=255&MSPPError=-2147217396

    … nice old post (but actual) with linked sample from NAV TEAM about utilization of .NET Interop (in this case with “ SystemSounds Class from System.Media”) to simulate the obsolete BEEP Function) https://msdn.microsoft.com/en-us/library/ms143809.aspx

    Source: Let NAV BEEP! (with .NET Interop and Microsoft Dynamics NAV 2009 R2) – Dynamics NAV Team Blog Future Decoded with Community Days

    Friday, September 02, 2016 Future Decoded with Community DaysMilano, 06-07 ottobre 2016 2 giorni, 10 tracks, 66 sessioni, 46 speaker “ Community e user group italiani insieme per idieci anni di Community Days, Microsoft in un grande momento di confronto e condivisione di esperienze.”“2 giornate di approfondimento tecnico, piú di 50 sessioni, demo e conferenze.”Future Decoded Site https://www.microsoft.com/italy/futuredecoded/ Community Days Site http://www.communitydays.it/ http://www.communitydays.it/misc/Future-Decoded/ Agenda https://www.microsoft.com/italy/futuredecoded/#schedule_anchor My Favorite Sessions (“Azure Path”) – Come integrare architetture cloud e on-premise – SQL Server 2016 e Azure SQL Database – Ottimizzare le prestazioni di SQL con la configurazione – Gestione degli scenari ibridi con Microsoft Azure – Remote Desktop Services: novità e

    288 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) stato dell’arte con Azure e Windows Server 2016 Link Iscrizione https://www.microsoftevents.com/profile/form/index.cfm?PKformID=0x397215983d&wt.m c_id=AID529729_QSG_8338# “How-to” manage NAV notifications by C/AL

    Wednesday, September 07, 2016 “How-to” manage NAV notifications by C/AL

    i found this nice question\post on Dynamics Community NAV Forum.

    Question

    Does anyone know how to create a new record of notification by programming ?

    What table should you create the record ?

    If i look on pages, the part is a system part of notications id.

    Source Post\Question

    How To Create a notification by programming ? https://community.dynamics.com/nav/f/34/t/198109

    Microsoft links about Topic

    Notification Entry Table https://msdn.microsoft.com/en-us/library/dn951728(v=nav.90).aspx

    Sent Notification Entry Table https://msdn.microsoft.com/en-us/library/mt299614(v=nav.90).aspx

    Solutions by Saurav Dhyani

    Refer Standard Codeunit 454 “Job Queue – Send Notification”.

    -> This Codeunit creates Notification when you schedule posting of your Documents

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 289 (Sales, Purchase) in Background.

    by Piero Giacomelli

    Great C/AL FunctionSolution by Piero Giacomelli here:

    Example:

    “i need on the table NC header to create a notification everytime the user generate a new non conformal product.

    here is my piece of code that works like a charm into a codeunit”

    Codeunit

    LenChar := STRLEN(_Note);

    _RecRef.GETTABLE(pNCHeader);

    NewID := _RecRef.ADDLINK(GETURL(CLIENTTYPE::Current, COMPANYNAME, OBJECTTYPE::Page, PAGE::”NC Header”, pNCHeader));

    RecordLink.GET(NewID);

    RecordLink.CALCFIELDS(Note);

    RecordLink.Note.CREATEOUTSTREAM(OStream);

    SystemUTF8Encoder := SystemUTF8Encoder.UTF8Encoding;

    SystemByteArray := SystemUTF8Encoder.GetBytes(_Note);

    x := SystemByteArray.Length DIV 128;

    IF x > 1 THEN

    y := SystemByteArray.Length – 128 * (x – 1)

    ELSE

    y := SystemByteArray.Length;

    c1 := y;

    OStream.WRITE(c1);

    IF x > 0 THEN BEGIN

    c2 := x;

    OStream.WRITE(c2);

    290 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) END;

    FOR i := 0 TO SystemByteArray.Length – 1 DO BEGIN c1 := SystemByteArray.GetValue(i);

    OStream.WRITE(c1);

    END;

    RecordLink.Type := RecordLink.Type::Note;

    RecordLink.Notify := _Notify;

    RecordLink.”To User ID” := USERID;

    RecordLink.Created := CURRENTDATETIME;

    RecordLink.Company:= COMPANYNAME;

    RecordLink.MODIFY;

    The parameters are

    Var Name DataType Subtype Length

    No pNCHeader Record NC Header

    No _Descritption Text 250

    No _Note Text 127

    No _Notify Boolean

    No _USERID Code 20

    The local variables are

    Name DataType Subtype Length

    LenChar Integer

    NewID Integer

    RecordLink Record Record Link

    OStream OutStream

    _RecRef RecordRef

    SystemUTF8Encoder DotNet System.Text.UTF8Encoding.’mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 291 SystemByteArray DotNet System.Array.’mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′

    c1 Char

    c2 Char

    x Integer

    y Integer

    i Integer

    The hard part for me was to add text into the Note field because it is a blob field so I need to use the dot net library of the 4.5 framework and to stream the text. NAV 2017 LIMITED BETA & DIRECTIONS NA SESSIONS

    Tuesday, September 13, 2016 NAV 2017 LIMITED BETA

    Nice document released before Directions NA (yesterday…) and available for Partners; you can download this document directly from Partnersource, on ReadinessTrainingNews section.

    Document Scope

    “ This document details new features and functionality that are available in Microsoft Dynamics NAV 2017 Limited Beta and have been added to the product since Microsoft Dynamics NAV 2016. More information will be made available online when Dynamics NAV 2017 becomes generally available.”

    Download link

    NAV 2017 Limited Beta

    https://mbs.microsoft.com/Files/partner/NAV/Readiness_Training/ReadinessTrainingNew s/WhatsNewDynamicsNAV2017LimitedBeta.pdf

    NAV 2017 New Features: i don’t write\post about NAV 2017 new features because they are under NDA, if you are a partner, read the limited beta document to have a first idea of NAV 2017, read sessions arguments of Directions and of others next events.

    292 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Dowload NAV 2017 limited beta from MS-Connect link https://connect.microsoft.com/site687/InvitationUse.aspx?ProgramID=9226&InvitationID= NAV-RKXJ-X24Y

    NEXT NAV 2017 EVENT: DIRECTIONS NA

    Directions North America, 28-28 September

    You can find ALL NAV 2017 Sessions filtering “ NAV 2017 What’s New” on sessions page.

    ALL Sessions http://www.navdirections.com/agenda/2016-sep-28/all-sessions/ Survey about NAV 2017 new\improved features

    Tuesday, September 20, 2016 (..info taken from next event “Directions NA” : “ NAV 2017 What’s new” topic http://www.navdirections.com/agenda

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 293 NAV 2017 new\Improved features

    Applications improvements in Finance, Jobs, CRM, Items and more.. (several new Financials enhancements and Jobs simplification functionality..)

    In Office 365 Experience (Dynamics NAV 2017 has become more fully embedded in Office 365, including Outlook, Excel,and the new Bookings module. NAV processes can now be performed directly in Office, where you are already doing your work.)

    Embedded Power BI (create your own impactful reports, and how to make the content you created in Power BI visible within Dynamics NAV 2017)

    Extensions 2.0 (Extensions have been introduced to Dynamics NAV with the 2016. They have been generously enhanced for NAV 2017 and Dynamics 365 for Financials, and are still the hottest spot in all of NAV and Microsoft AppSource.)

    NAV on Sql Server 2016, new databases features (reporting, BI, data science, performance and high availability, all in a NAV context)

    Microsoft Flow (Microsoft Flows using the Dynamics NAV connector or the data gateway)

    Power Apps (newest and hottest technological addition to Microsoft Dynamics NAV and Microsoft AppSource)

    Cortana Intelligence (real-life examples were Cortana Intelligence is used in Dynamics NAV to improve the productivity of users)

    Smart Notifications (Smart Notifications and how to show unobtrusive, contextual, and actionable messages directly on a Dynamics NAV page)

    Start Survey here: https://goo.gl/forms/CKnIr8kZ75BMzcUy2 NAV 2017 WHAT’S NEW – ALL MY POSTS

    Saturday, September 24, 2016 NAV 2017 WHAT’S NEW

    “WhatsNewNAV2017”flyer is available for partners on Partnersource (..available from Yesterday , September 23, 2016) …you can download now this document from link below (if you are partner or customer…)

    294 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) DOWNLOAD LINKS: Partnersource Radiness training news PAGE https://mbs.microsoft.com/Files/partner/NAV/Readiness_Training/ReadinessTrainingNew s/WhatsNewNAV201722092016.pdf or from “NAV 2017 GET READY PAGE” https://mbs.microsoft.com/partnersource/northamerica/readiness-training/readiness- training-news/GetReadyforMicrosoftDynamicsNAV

    All links about NAV 2017 Launch: Latest News and Information – What’s New in Microsoft Dynamics NAV 2017 – Microsoft Dynamics NAV 2017 Beta Program – Learning Plan Microsoft Dynamics NAV Extensions – Get ready for Microsoft Dynamics 365 for Financials Extensions – Getting ready for Microsoft Dynamics NAV Extensions

    NAV 2017 Product Overview and Capability Guide https://mbs.microsoft.com/Files/partner/NAV/SalesMarketing/Product_Strategy/Dynamics NAV_CapabilityGuide_EN.pdf

    NAV 2017 WHAT’S NEW – MY DOCUMENTS COLLECTION (POSTS AND PRESENTATIONS)

    My last Presentation on Slideshare: “NAV 2017 WHAT’S NEW”

    NAV 2017 What's New from Roberto Stefanetti

    “ ALL” MY POSTS ABOUT “NAV 2017 WHAT’S NEW”

    NAV 2017 Task Scheduler

    NAV 2017 Assisted Setup

    NAV 2017 and “Microsoft Flow” integration: “Business Notification Manager” reinvented in Cloud

    NAV 2017 Notifications

    Welcome to the Developer and IT-Pro Help for Microsoft Dynamics NAV 2017

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 295 Directions EMEA 2016, “NAV 2017 What’s New” paths

    NAV 2017 is available for download !

    NAV 2017, scheduled for October 28

    Survey about NAV 2017 new\improved features

    NAV 2017 Limited Beta and Directions NA Sessions

    have a nice reading ! NAV 2017 “Notifications”

    Sunday, September 25, 2016 …some time ago i found this nice question\post on Dynamics Community NAV Forum.

    Question

    Does anyone know how to create a new record of notification by programming ? What table should you create the record ? “If i look on pages, the part is a system part of notications id.”

    i posted some solutions here:

    “How-to” manage NAV notifications by C/AL

    https://robertostefanettinavblog.wordpress.com/2016/09/07/how-to-manage-nav- notifications-by-cal/

    …AND NOW

    NAV 2017 Notifications

    …now we can use a “ very powerful solution” to do this, nice documents about technology and “How-to Demo for Customers” are available for download on Partnersource.

    Download Links NAV 2017 Notifications https://mbspartner.microsoft.com/secure/whatsnew/NAV2017/EnhancingTheCoreApplicat ionAndPlatform/NAV_2017_Notifications.pptx

    NAV 2017 Smart Notifications “How-to Demo for Customers” https://mbspartner.microsoft.com/secure/whatsnew/NAV2017/EnhancingTheCoreApplicat

    296 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) ionAndPlatform/How_to_Demo_Smart_notifications_for_customers.docx

    Samples of Implementations

    …i found on Dynamics Community blog this nice post (by Amol) about possible implementations…

    “In the development environment, you can create notifications in C/AL.”

    “This will helpful during

    1) Shortage on Inventory

    2) Customer Balance is negative

    3) Customer credit limit exceeded and many more…….

    Original Post Source link: Notifications in UI -NAV 2017 – Microsoft Dynamics NAV Community “New Development Environment Preview” at Christ...

    Thursday, October 13, 2016

    …good news from Directions EMEA: “New Development Environment Preview” will be available at Christmas time ! …great gift for Christmas !!

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 297 Dynamics 365 Financials Preview (ex Project Madeira)

    Wednesday, October 19, 2016 hi Readers,

    some people have asked me again If the preview of Dynamics 365 Financials is still available and if it is constantly updated … of course, sure … you can access (or register) using the old link about Project Madeira preview.

    … For countries that can access the preview (testing countries) you can sign up at this address: Dynamics 365 Financials Preview (formerly Project Madeira) https://madeira.microsoft.com try the preview button https://portal.office.com/signup?sku=6a4a1628-9b9a-424d-bed5- 4118f0ede3fd&ru=https%3A%2F%2Fportal.projectmadeira.com%2F%3FredirectedFrom Signup%3D1

    Dynamics 365 Financials Preview link (after registration\authentication) https://msp882270.projectmadeira.com/MS/WebClient/

    … For countries rather than can not do, however, it has an ability to register before a user uses to Office 365 USA and then use it to sign up to the preview of Dynamics 365 Financials,.. to achieve this goal use this workaround by Waldo (follow it step by step..)

    298 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Setting up the Project “Madeira” Preview (also when you’re not from the US) http://www.waldo.be/2016/04/15/setting-up-project-madeira-preview-also-when-youre- not-from-the-us/

    ..anf after this steps you can correctly sign-in to Dynamics 365 Financials Preview link https://msp882270.projectmadeira.com/MS/WebClient/

    Extensions Management

    ..you can also “add” and “test” extensions available in “AppsSource” store (example: try to add “Sales and Inventory Forecast” extension by Microsoft. nice feedback Page https://ideas.projectmadeira.com/forums/350115-microsoft-project-madeira-general- feedback my old post about Project Madeira https://robertostefanettinavblog.wordpress.com/2016/04/05/project-madeira-preview/

    …have a good testing time !

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 299 Welcome to the Developer and IT-Pro Help for Microsoft Dynamics NAV...

    Wednesday, October 26, 2016 NAV 2017 MSDN Help Pages released today

    some links:

    Index Page

    https://msdn.microsoft.com/en-us/dynamics-nav/index

    NAV 2017 System Requirements

    https://msdn.microsoft.com/en-us/dynamics-nav/system-requirements-for-microsoft- dynamics-nav

    NAV 2017 Product Overview

    https://msdn.microsoft.com/en-us/dynamics-nav/product-and-architecture-overview

    Microsoft Dynamics NAV 2017 is a complete enterprise resource planning (ERP) software solution for mid-sized organizations that is fast to implement, easy to configure, and simple to use. Right from the start, simplicity has guided—and continues to guide—innovations in product design, development, implementation, and usability. In this section, you can find information about deployment and administration, and you can find information about developing for Dynamics NAV.

    Note

    “You also use Microsoft Dynamics NAV 2017 to develop for Dynamics 365 for Financials.”

    To See Learn how to install, deploy, and configure Microsoft Dynamics NAV 2017 Deployment Learn about development options for Microsoft Dynamics NAV 2017 Development Learn about administration tools and processes for Microsoft Dynamics NAV 2017 Administration Find reference information, including C/AL functions, triggers, properties, development environment commands, and development environment windows Technical Reference Learn how to develop for Dynamics 365 for Financials Getting Started Developing for Dynamics 365 for Financials

    nice reading…. NAV 2017 is available for download !

    Thursday, October 27, 2016 hi guys..good news: “ NAV 2017 is available for download !” … download it NOW !!!

    300 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Download links https://mbs.microsoft.com/partnersource/global/deployment/downloads/product- releases/msdnav2017download#2 https://mbs.microsoft.com/partnersource/denmark/deployment/downloads/product- releases/msdnav2017download#2 have a great day (or night… it’s “00.37” time now!) and downloads time ! NAV 2017 and “Microsoft Flow” integration: &...

    Saturday, October 29, 2016 Microsoft Flow Preview Microsoft Definition: “Microsoft Flow is a “brand new” SaaS offering, available today in preview, for automating workflows across the growing number of applications and SaaS services that business users rely on.”

    Integrations: In the preview of Microsoft Flow Microsoft provide native and Cloud Based integration both for NAV 2017 throughout the entire Dynamics 365 platform.

    I consider it very interesting and useful because until not long ago, there was a solution called “Business Notification Manager” (available from NAV 4..NAV 2009, then abandoned as then also happened to Employ Portal, Commerce Gateway, etc.) which could be used to manage a small workflow regarding only the “ notification of events” without the need to write one line of code to handle it. “Business Notification Manager” : this feature Allows you to automatically send emails to your employees and business partners Informing them of business events.”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 301 He was using the logic “IF Trigger Fired THE Action..” the same used both NAV Workflow that Microsoft Flow (in this case born in the Cloud world).

    Business Notification for NAV 2009 https://msdn.microsoft.com/en- us/library/dd354998.aspx Business Notification for NAV 5

    and now: “Microsoft Flow” Integration Flow, NAV 2017 Suite Dynamics365 available today. Actually you can choose two integration triggers: – When record is created – When record is modified

    Microsoft Flow Plans – “How to get Flow” ?

    Some pictures about integrations

    302 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 303 some nice links: nice post about architecture here: Role of PowerApps, Flow and Common Data Model in Dynamics 365 https://blogs.msdn.microsoft.com/rojythomas/2016/10/20/pa-flow-cdm/

    nice slides here: https://onedrive.live.com/embed?cid=6B7CF2BD5F47F487&resid=6B7CF2BD5F47F487 %21308&authkey=AL_lEzG4oCJs4O0&em=2&wdAr=1.7777777777777776 https://onedrive.live.com/embed?cid=6B7CF2BD5F47F487&resid=6B7CF2BD5F47F487 %21700&authkey=AM8TMZCzvCTeXLY&em=2

    Last Microsoft Video: “How Do I” Use Microsoft Flow with Dynamics NAV 2017

    Sign up for Microsoft Flow https://flow.microsoft.com/

    Enjoy. “ALL About” C/AL Coding Guidelines

    Tuesday, November 01, 2016

    hi guys, this is another short post of my “ ALL About” posts series (the first of this year); in this case i want to write about “ C/AL Coding Rules and Guidelines”.

    304 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) below a short list of documents\pages about this topic,

    First “ ALL IN ONE” Document but “ ALWAYS” useful is: “ C/AL Coding Guidelines used at Microsoft Development Center Copenhagen” …” The Bible” for each C/AL Developer!

    Source: C/AL Coding Guidelines used at Microsoft Development Center you can download PDF document here: cal-coding-guidelines-at-microsoft-development- center-copenhagen

    “ALL IN ONE” Document Vs Wiki & Community Feedback Philosophy

    “ CAL-Coding-Guidelines-at-Microsoft-Development-Center-Copenhagen.pdf” is “all in one document”. In contrast, on this wiki, the coding guidelines are published individually. The reason is: give you the chance to comment and share your oppinion on each one.

    Question: Since we’re having the guidelines, how come there is still C/AL code in NAV which doesn’t respect them?

    Answer: all new C/AL code is bound to follow the guidelines (else it cannot be checked- in). However, the code that existed before the rules – it does not. We had done cleanup in a certain degree. Now we’re gradually improving the old code base as we visit various objects in order to add new functionality, however chances are that code we didn’t touch in a long time had remained in its old form.

    “Microsoft Dynamics Community is looking forward to your comments! Where you can, do provide concrete examples of the alternatives, Good and Bad”

    Wiki Page on Design Patterns https://community.dynamics.com/nav/w/designpatterns/156.cal-coding-guidelines other nice resources: nice doc on Mibuso about “How to work with record-variables”: http://mibuso.com/howtos/how-to-work-with-record-variables-version-2

    Nice general sections on MSDN

    General C/AL Programming Format https://msdn.microsoft.com/en-us/library/ee414237(v=nav.10).aspx

    Programming Best Practices https://msdn.microsoft.com/en-us/library/ee414204(v=nav.90).aspx

    C/AL Comments https://msdn.microsoft.com/en-us/library/dd301180(v=nav.90).aspx

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 305 C/AL Coding Guidelines Video Welcome to Microsoft Dynamics 365 !

    Tuesday, November 01, 2016 Evolve your business on your terms

    “With intelligent business applications across CRM and ERP, Microsoft Dynamics 365 gives you choice. Start with just what you need to run your business—and delight your customers. And then add apps as your needs change.”

    Source https://www.microsoft.com/en-us/dynamics365/home

    Dynamics 365 Blogs & Communities

    Dynamics 365 Blog

    https://community.dynamics.com/b/msftdynamicsblog

    Dynamics 365 Documentation

    https://docs.microsoft.com/en-us/dynamics365/

    Explore Dynamics

    https://explore.dynamics.com/

    Dynamics Community “Business & Enterprise” new sections

    https://community.dynamics.com/business

    https://community.dynamics.com/enterprise

    “How-to” support pages

    https://community.dynamics.com/business/b/financials/archive/2016/11/01/how-to-get- support-for-dynamics-365-for-financials

    Dynamics 365 Team Blog (from CRM to…)

    https://blogs.msdn.microsoft.com/crm/

    “Welcome to Microsoft Dynamics 365 !” launch video

    306 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) NAV 2017 “Assisted Setup”

    Friday, November 04, 2016 in this short post, i will talk about a new feature of NAV 2017: “Assisted Setup”.

    “ Assisted setup” is a nice feature (composed by a lot of wizards ready to use..) useful to guide your users through setup scenarios. With this feature is possible: – use a predefined set of data to setup main features (for selected areas) – have a great first setup configuration for your new company (enhanche first-time experience)

    List of some wizards ready to use: – Setup Company (Configurator for first one access) – Approval workflow – Item Approval – Power Bi embedded configutation (Azure directory) – Setup Reporting – Office 365 integration – Dynamis CRM connection – email logging etc. etc.

    My example: “Setup Reporting” “ Setup Reporting” is a nice feature (wizard) to configure OData with fields selections, all in only “one shot” configuration. Definition\Scope: “you can create data sets for building report in excel, Power Bi, Odata..” below some “step by step” pictures.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 307 “item list” Data Set Configuration with fields mapping

    308 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) “Item list” is published like Web Service & OData

    “item list” output from OData

    you are welcome. NAV 2017 “Task Scheduler”

    Friday, November 04, 2016 In this post i will write about “ NAV 2017 Task Scheduler”, NAV 2017 Task Scheduler is an evolution of Job Queue Technology (ex Process Queue, Microsoft returned to old name for name for Job Queue..); Microsoft has reviewed\improved\extended the old Job Queue Technology and now Task Sheduler is a great new feature ready for “ Complex Scheduling” useful in various scenarios.

    MSDN Definition: “The task scheduler enables you to control when certain operations or processes (in other words tasks) are run . Basically, a task is a codeunit or report that is scheduled to run at a specific data and time. Tasks run in a background session between the Microsoft Dynamics NAV Server instance and database . Behind the scenes, the task scheduler is used by the job queue to process job queue entries that are created and managed from the clients.”

    Source https://msdn.microsoft.com/en-us/dynamics-nav/task-scheduler

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 309 How “New Task Scheduler System” works

    Now we have a new option in NST: “Task Scheduler enabled” option; when a task is executed, the task is not visible in sessions list (is a background session).

    “ Task Scheduler enabled” option says to NST to start a background session for each task that needs to be executed at scheduled time. After the execution of task is completed, the background session is closed (no more phantom\pending sessions to kill by SQL jobs !)

    Another useful option on NST permit to define how many simultaneous tasks can be executed by NST at the same time (parallel execution on NST). Killing a session will not stop all other tasks that need to be executed (..a different pipeline for each task execution)

    “Task Scheduler Technology” Objects involved

    • Table 2000000175 Scheduled Task (Show list of scheduled task)

    • Table 2000000111 Session Event (Show list of active background sessions started for each running task) “Job queue” Codeunits

    310 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Below Some Details of New Task Scheduler Feature

    C/AL Code and Task Scheduler

    In C/AL code, you create and manage tasks by using the C/AL functions that are available for the TASKSCHEDULER data type.

    Task Scheduler Data Type

    The TaskScheduler data type is a complex data type for creating and managing tasks in the task scheduler, which runs codeunits at scheduled times.

    “ALL” Task Scheduler Functions

    FunctionDescriptionCREATETASK Adds a task to run a codeunit at a specified date and time. SETTASKASREADY Sets a task to the Ready state. A task cannot run until it is Ready. TASKEXISTS Checks whether a specific task exists. CANCELTASK Cancels a scheduled task.

    “How “ Task Scheduler Works

    To set up a task, you create a codeunit that contains the logic that you want to run at a scheduled time. Optionally, you can create a second codeunit that contains the logic to handle the task if an error occurs for any reason. This coduenit is referred to as a failure codeunit. Once you have the codeunits, you can add C/AL code to the application that calls the CREATETASK function to schedule a task to run the codeunits. The CREATETASK function can also specify the earliest date to run the task, and whether the task is in the ready state.

    Task Scheduling “Flow”

    Here is an overview of the process that a task goes through:

    1. After you add a task, the task is recorded in table 2000000175 Scheduled Task of the database. 2. If the task is in the ready state, when the scheduled time occurs, a new background session is started and the task codeunit is run. You can view the session in the table 2000000111 Session Event.

    If an error occurs, the following happens:

    • If a failure codeunit is not specified, then the retry flow is initiated. • If a failure codeunit has been specified, the error is passed in a call to the failure codeunit, and the failure codeunit is run. • If the failure codeunit does not handle the error or fails itself, then the retry flow is initiated. Error Conditions and Retry Process

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 311 A task can fail under the following conditions:

    • The company cannot be opened. • An SQL connection or transient error occurred with the database. • The Microsoft Dynamics NAV Server instance restarted while the task was being run. When an error occurs, unless the task is interrupted by the failure codeunit, the Microsoft Dynamics NAV Server instance will rerun the task according to the following flow: • You can view these errors in the event log of the computer that is running the Microsoft Dynamics NAV Server instance. • Two minutes after the first failure • Four minutes after the second failure • Fifteen minutes after the third failure and subsequent failures. About Task Sessions and Permissions

    The task runs in a background session, which means that there is no user interface. The behavior is similar to that of the STARTSESSION function, where any dialog boxes that would normally appear are suppressed. For more information about specific dialog boxes, see STARTSESSION Function (Sessions).

    The session runs by using the same user/credentials that are used when calling C/AL code. The user must have appropriate permissions to the codeunit and any other objects that are associated with the operation of the codeunit.

    Examples

    Create Task Function

    Adds a task to run a codeunit at a specific time.

    Syntax

    [Task =: ]CREATETASK(CodeunitId, FailureCodeunitId[, IsReady][, Company][, NotBefore][, RecordID])

    Example

    The following example schedules a task to run the Job Queue Dispatcher and uses codeunit Job Queue Error Handler as the failure codeunit. The code requires that you create the following C/AL variable.

    VariableDataTypeSubType JobQueueEntry Record Job Queue Entry

    C/AL Statement

    TASKSCHEDULER.CREATETASK(CODEUNIT::”Job Queue Dispatcher”, CODEUNIT::”Job Queue Error Handler”, TRUE, COMPANYNAME, CURRENTDATETIME + 1000 + RANDOM(3000), JobQueueEntry.RECORDID);

    Source https://msdn.microsoft.com/en-us/dynamics-nav/createtask-function

    “JOB QUEUE” IMPROVEMENTS

    312 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) SET STATUS TO “ERROR” FEATURE

    NST Reporting Parameters (nice for SAVEAS function and for reporting scheduling also)

    Sample of Report Scheduling

    My final considerations: New Task Scheduler is Great feature ! ….now Task Scheduler is

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 313 a real scheduling application like windows task scheduler or Unix Crontab etc… a great step beyond!!

    Have a nice task scheduling !! Dynamics NAV 2017 as an App in Azure Management Portal – Dynamics N...

    Tuesday, November 15, 2016 Source: Dynamics NAV 2017 as an App in Azure Management Portal – Dynamics NAV Team Blog WPC2016, Milano, 29-11 01-12

    Saturday, November 19, 2016 WPC2016, Milano, 29-11 01-12“OverNet Education”, il principale Partner per la formazione e la consulenza IT delle aziende Italiane, Enterprise e PMI, è lieta di presentare la 23ma edizione di WPC (WPC 2016), la più importante conferenza italiana sulle tecnologie Microsoft. L’evento in cui una community di oltre 400 IT Professionals si incontrano per trasformare il proprio business. Sito http://www.wpc2016.it/ presso NH Centro Congressi Assago Agenda http://www.wpc2016.it/Events/Agenda …dato che sono stato invitato da OverNer Education, sarò presente il 30-11 mattina in MVP Corner, passate a trovarmi ! http://www.wpc2016.it/Contents/Page/MVP …you are welcome !

    NAV 2017 vs Dynamics 365 “Battle Card” by Amol ...

    Saturday, November 19, 2016 nice NAV 2017 vs Dynamics 365 “battle card” by Amol.

    Source: NAV 2017 vs Dynamics 365 – NAV seen by Amol – Dynamics NAV Users – DUG

    314 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Dynamics NAV as SaaS …and 365 as IaaS

    Tuesday, November 22, 2016 Dynamics NAV as SaaS (Software as a Service) hi Guys, some people have asked me information about this topic, below a little group of links about this topic (…old but actual). ABOUT SAAS (Software as a service)Introducing Microsoft Dynamics NAV Managed Service for PartnersMicrosoft Definition: “The Microsoft Dynamics NAV managed service enables Dynamics partners to easily offer SaaS solutions to their customers, deployed on Azure infrastructure and managed by Microsoft Cloud Engineers. It reduces the operational, technical and administrative complexity of deploying and maintaining multi-tenant NAV solutions in the cloud while at the same time enables partners to leverage the latest and greatest Microsoft technology.” “Following the launch of Microsoft Dynamics NAV 2016, we are pleased to announce general availability of the Microsoft Dynamics NAV managed service for partners, a significant new option for Microsoft partners interested in providing multitenant Software- as-a-Service (SaaS) solutions built on Microsoft Dynamics NAV and deployed in the cloud on Microsoft Azure.”The Microsoft Dynamics NAV managed service is a highly scalable and reliable platform-as-a-service offering that consists of: •Streamlined administration: A new management portal and web services API enable Microsoft partners to efficiently deploy, manage, upgrade and monitor Microsoft Dynamics NAV multitenant solutions on Microsoft Azure.• Simplified operations: Cloud-optimized licensing and billing helps partners deploy customers more quickly, manage users seamlessly, and receive a single bill from Microsoft for the service. •Microsoft Azure: Auto-scaled, load-balanced and highly-available, the service utilizes Microsoft Azure, which includes many built-in benefits such as enterprise-class security, geo-replication, backup support, and point-in-time restore. • 24×7 support from Microsoft: Microsoft Cloud Engineers monitor and maintain partner solutions, customers, and users, offering Microsoft partners a financially-backed SLA of 99.9% availability. The Microsoft Dynamics NAV managed service has been in preview since April 2015, with partner solutions and customers live on the service today. Partners interested in the Microsoft Dynamics NAV managed service can find more information at: NAVmanagedservice (only available on Partnersource) https://mbs.microsoft.com/partnersource/global/sales-marketing/marketing- collateral/messaging-frameworks/NAVmanagedservice CORE MODEL https://mbs.microsoft.com/Files/partner/NAV/SalesMarketing/Product_Strategy/Microsoft DynamicsNAVManagedServiceforpartners.pdf FAQ https://mbs.microsoft.com/Files/partner/NAV/SalesMarketing/Product_Strategy/Managed Service-FAQ.pdf …some other useful links:Microsoft Dynamics NAV 2016 now available, as is Microsoft Dynamics NAV 2016 managed service for partners https://blogs.microsoft.com/firehose/2015/10/07/microsoft-dynamics-nav-2016-now- available-as-is-microsoft-dynamics-nav-2016-managed-service-for-partners/ Introducing Microsoft Dynamics NAV Managed Service for Partners https://community.dynamics.com/b/msftdynamicsblog/archive/2015/10/06/introducing- microsoft-dynamics-nav-managed-service-for-partners What Is A SAAS ERP Solution? https://community.dynamics.com/gp/b/erpsoftwareblog/archive/2016/02/05/what-is-a- saas-erp-solution Cloud, SaaS and Hosted…What’s the difference? http://www.erpsoftwareblog.com/2011/05/cloud-saas-and-hosted-whats-the-difference/ Directions EMEA Choosing the best possible Azure platform for NAV

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 315 http://www.slideshare.net/AleksandarTotovic/directions-emea-choosing-the-best- possible-azure-platform-for-nav ABOUT IAAS (Infrastucture as a service)and now … “THE IaaS ERA”… (from NAV TechDays 2016- Mibuso) nice video here: https://www.youtube.com/watch?v=hpQqWEiX0IE&feature=youtu.be THE “NAVTechDays 2016 Playlist” (ALL VIDEOS) https://www.youtube.com/playlist?list=PLI1l3dMI8xlBwVTJ9S3ZLs9g_gFG4zS1r Microsoft AL: AL language code samples for developing extensions #D...

    Tuesday, November 29, 2016 #DYNDEV365 , Microsoft AL by Microsoft Modern Dev Team

    As you likely know, “ Microsoft is developing new tooling for working with On Premise NAV and Dynamics 365 for Financials“. Those tools will be available later in December (announced some weeks ago @Directions Events) and in the meantime, we’d like to share some code with you so you can get familiar (and excited) about it.

    We’ll add more code samples here but in the meantime, we’d really like you to: Have a look at the “Hello World code” -> Check out the differences between classic C/AL txt format and the new .al format. https://github.com/Microsoft/AL

    FROM GITHUB PAGE “Microsoft /AL”

    “Welcome to the code sample repo for developing extensions to Dynamics NAV.”

    This repo contains AL language code samples for developing extensions on the Dynamics NAV platform. We’re not yet in preview, so this repo is meant as a way for you

    316 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) to get familiar with the new syntax and provide feedback.

    This project has adopted the Microsoft Open Source Codeof Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

    Source https://github.com/Microsoft/AL

    Great Job ! .. “AL” you are Welcome ! by Microsoft Modern Dev Team, #DYNDEV365

    More Information About the Developer Preview for Dynamics NAV – 13/12/2016 https://blogs.msdn.microsoft.com/nav/2016/12/13/more-information-about-the-developer- preview-for-dynamics-nav/ by NAV Team, #DYNDEV365 “ALL About” How To Boost Dynamics NAV Server

    Monday, December 12, 2016 Hi Guys, another post of “ALL About” Series, in this case, some people have asked me about NAV configuration and how to configure NAV Server for better performance (Boosting NAV..); also in Microsoft Forum there are several posts about this topic, i searched and collected a variety of useful information for a correct NAV Server configuration. Documents and Posts “Great White Paper” about typical questions around the number of users or tenants, hardware requirements, scaling, and upgrading -> “…How to have a great configuration and “How-to Boost NAV”!! “This white paper provides detailed insight into the concepts and principles that support performance testing in Microsoft Dynamics NAV”. By outlining some sample goals from the start, it explains how you can use load testing to optimize your application and hardware to meet the customer and user requirements – addressing typical questions around the number of users or tenants, hardware requirements, scaling, and upgrading” Microsoft Dynamics NAV Performance Testing – White Paper http://www.archerpoint.com/sites/default/files/docs/ms-dynamics-nav-peformance-testing- wp.pdf Below some useful information about NAV Server Configuration.NAV Server Configuration Best Practices (from Whitepaper) 1) Number of Microsoft Dynamics NAV Service Tiers

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 317 When a client connects to Microsoft Dynamics NAV Server, the load balancer will select a server and keep the connection open throughout the lifetime of the client. This means that setting up more servers behind a load balancer will increase the capacity of the cluster of Microsoft Dynamics NAV Service tiers. 2) Server Memory Each Microsoft Dynamics NAV Service tier needs 500Mb of memory to run. On top of that, the Microsoft Dynamics NAV Service tier needs memory for each active session, even if they are idle. The more pages the user have opened, the more memory gets allocated, but a good starting point for doing sizing calculations is around 10Mb per active session. Idle sessions are not terminated if they are running the Windows client. Server CPU (cores and speed) Faster CPU will get things done faster, and more cores can run more things in parallel. Idle sessions on the Microsoft Dynamics NAV Service tier don’t use any CPU power, except for generic housekeeping, which shouldn’t be counted. 3) Server CPU (cores and speed) Faster CPU will get things done faster, and more cores can run more things in parallel. Idle sessions on the Microsoft Dynamics NAV Service tier don’t use any CPU power, except for generic housekeeping, which shouldn’t be counted. Active sessions will use CPU power depending on what they do, but it is hard to generalize how much. For example, CPU power is used whenever the user is performing a task that requires the Microsoft Dynamics NAV Service tier to run some business logic or perform some UI logic or setup server pages. If the Microsoft Dynamics NAV Service tier does a lot of IO (SQL calls or client callbacks), then the CPU will be waiting for response and thus be loaded less. 4) Data Cache Size This is a Microsoft Dynamics NAV Server setting, which located in CustomSettings.config file. Sets the data cache size. This is an abstract value with contextual meaning on the type of the item being cached. The number you specify in DataCacheSize setting determines how much memory is used for caching data. The actual amount of memory (in MB) allocated is 2n, where n is the value of the DataCacheSize setting: Value Memor y 9 (default) 512Mb 10 1Gb 11 2Gb 12 4Gb 13 8Gb 14 16Gb 15 32Gb … When running a single tenant system the default value of 9 is probably good. When running a multi-tenant system, the data cache is shared between all tenants. Set to 0 to disable cache. 5) Metadata Provider Cache Size This is a Microsoft Dynamics NAV Server setting, which located in CustomSettings.config file. Sets the Metadata Provider cache size (in number in objects cached). Set to 0 to disable cache. You can monitor the number of objects in the metadata cache by monitoring the following

    318 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) performance counter on the Microsoft Dynamics NAV Service tier. There is really NO REASON not to set this to a high value (like 10000) if you are not pressed on memory on the Microsoft Dynamics NAV Server. 6) Max Concurrent Calls This is a Microsoft Dynamics NAV Server setting, which is located in CustomSettings.config file. Maximum number of concurrent client calls that can be active on the Microsoft Dynamics NAV Server. To disable this setting set the value to “MaxValue”. The number specified here determines how many concurrent calls the Service Tier is able to handle. The more cores in your server, the higher this value can be. NAVPERF (On Github)GitHub organization for performance testing Microsoft Dynamics NAV GitHub You will find a couple of projects on GitHub, which contains some sample code on how to do performance tests. The GitHub organization is used to store the sample repositories and is available here: https://github.com/NAVPERF https://github.com/NAVPERF/NAV2017-Sample

    Microsoft Dynamics NAV 2017 Load Test sample as references from the Load Test WhitePaper

    Enables you to create scenario tests for Microsoft Dynamics NAV.

    The solution consists of:

    Microsoft.Dynamics.Nav.LoadTest : A sample test for NAV Order Processor Scenarios Microsoft.Dynamics.Nav.TestUtilities : Test utilities to help build test scenarios Microsoft.Dynamics.Nav.UserSession : Client Library for the NAV Client Services Web Service

    On the Microsoft Dynamics NAV 2017 DVD, you will find a folder called Test Assemblies. This folder contains one DLL, which is needed for running Load Tests: Microsoft.Dynamics.Framework.UI.Client.dll The DLL is also included in this project.

    Others nice links Optimizing SQL Server Performance with Microsoft Dynamics NAV https://msdn.microsoft.com/en-us/dynamics-nav/optimizing-sql-server-performance-with- microsoft-dynamics-nav Blog about Performance https://navperformance.wordpress.com/ Performance Tuning Microsoft Dynamics NAV 2009 RTC and NAV 2013 http://www.archerpoint.com/blog/Posts/performance-tuning-microsoft-dynamics-nav- 2009-and-nav-2013 Videos How Do I: Run NAV Performance Tests Using Visual Studio in Microsoft Dynamics NAV https://www.youtube.com/watch?v=IG-y8DsXqaQ Some my old posts here: Monitoring Microsoft Dynamics NAV 2015 Server Using “Performance Counters” https://robertostefanettinavblog.wordpress.com/2015/07/06/monitoring-microsoft- dynamics-nav-2015-server-using-performance-counters/ NAV 2015 TRACKING SESSIONS, USERS ACTIVITY, CHANGE LOG https://robertostefanettinavblog.wordpress.com/2015/06/09/nav-2015-tracking-sessions- users-activity-change-log/

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 319 Announcing the Preview of Development Tools for Dynamics NAV &#...

    Tuesday, December 20, 2016 “Tools are available in preview from today”! AWESOME !!

    • The in-client designer • Visual Studio Code Start from here: http://aka.ms/navdeveloperpreview

    In-Client Designer

    Visual Studio Code

    New Development Environment “What’s New” here:

    Developing Extensions Using the New Development Environment

    https://msdn.microsoft.com/en-us/dynamics-nav/newdev-dev-overview

    In-Client Designer

    https://msdn.microsoft.com/en-us/dynamics-nav/newdev-inclient-designer

    Differences in the Dynamics NAV Development Environments

    https://msdn.microsoft.com/en-us/dynamics-nav/newdev-differences

    Keyboard Shortcuts for the New Development Environment

    https://msdn.microsoft.com/en-us/dynamics-nav/newdev-keyboard-shortcuts

    Developer Reference

    https://msdn.microsoft.com/en-us/dynamics-nav/newdev-reference-overview

    Full Documentation here:

    320 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Tools overview

    Getting Started guide

    Object overview and AL language Changes

    GitHub Bug Branch https://github.com/microsoft/al/issues

    Source: Announcing the Preview of Development Tools for Dynamics NAV – Dynamics NAV Team Blog

    Be Social ! #dyndev365 #msdynnav #code “How to” display picture from file in Item Pict...

    Thursday, December 22, 2016 Below a short procedure to visualize a linked picture from a picture file (example file with “. GIF” extension) into the “Item Picture Page”.

    The System load the image file in a BLOB field and after displays it on the picture page; at the close of the page the image is deleted from the item table in order to lighten the System; same procedure can be used in reports and can also be used in old versions of NAV… in this case NAV 2013.

    NAV C/AL Code

    On Image Button of Item Card// CHECK DATA IN RECORDLINK TABLE

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 321 RecordLink.RESET; RecordLink.SETCURRENTKEY(Company,”Refer to”); RecordLink.SETRANGE(Company,COMPANYNAME); RecordLink.SETRANGE(“Refer to”,”No.”); IF NOT RecordLink.FINDSET THEN EXIT; FileToUpload := RecordLink.URL4; //Custom field with link for image IF FileToUpload = ” THEN EXIT; //IMPORT IMAGE FROM FILE USING FILE MANAGEMENT FileManagement.BLOBImportFromServerFile(recTempBlob,FileManagement.UploadFile Silent(FileToUpload)); ItemPicture.RESET; ItemPicture.SETRANGE(“No.”,”No.”); IF ItemPicture.FINDSET THEN BEGIN ItemPicture.Picture := recTempBlob.Blob; ItemPicture.MODIFY; ItemPicture.RESET; ItemPicture.SETRANGE(“No.”,”No.”);

    // OPEN PAGE 346 Item Picture > Visualize Item Image PagePicture.SETTABLEVIEW(ItemPicture); PagePicture.RUN; END;

    //Image Cleaning Page 346 Item Picture OnClosePage() itemPicture.RESET; itemPicture.SETRANGE(“No.”,”No.”); IF itemPicture.FINDSET THEN BEGIN IF itemPicture.Picture.HASVALUE THEN BEGIN itemPicture.CALCFIELDS(Picture); CLEAR(itemPicture.Picture); itemPicture.MODIFY; END; END; GitHub https://github.com/rstefanetti/NAV_SQL/blob/master/LoadPictureFromFile MSDN TechNet https://gallery.technet.microsoft.com/How-to-display-picture-f13019bb Dynamics NAV in Remote App Mode

    Thursday, December 29, 2016 Dynamics NAV in Remote App Mode

    Some people have asked me information on how to use the NAV Windows Client (ex RTC) in remote app mode. This environment can be useful for those still using the NAV Windows Client (in a few years I think that you will only use the Web Client or NAV in SaaS Mode). In various forums there are many posts about this topic, I bring my personal experience about this topic.

    About my Experience I use it for many years and I must say that it works well, the published NAV Windows Clients (ex RTC) in remote app is very light and the band occupied is very low. For example: it allows quickly to activate NAV in foreign branches without installing anything and without worrying too much about internet bandwidth etc. etc.

    322 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Points of Strenghts – Don’t install anything on the client, just deploy the application icon or to give access to a portal (gateway remote app like in the picture) – is also usable on PCs with XP window (…), I don’t buy new PC if I don’t need high performance – The occupied bandwidth is really little, similar to other remote application tools) (when the local NAV Client is slow, via remote app however can be fast… – Compared to the standard terminal server is much less invasive, user uses only what has been published, not everything a remote desktop. – I can also use it in VPN (if I do not want to publish on the internet) – I can use all NAV versions starting at 4.0 SP1.

    Points of Weakness – if you are using Word Layout, Word must be installed on the remote server or you cannot print (ex: errors with Post & Print function) – Sometimes the NAV session is not closed on the server (even if it is closed on the client) – Copy and Paste operations are more harder bur possible. – If you don’t want to use a VPN , you need to use applications published on the Internet Gateway (… is the same situation with Azure and endpoints) – Today is considered “old technology”, not web based and oriented.

    REMOTE APPS GATEWAY

    LOGIN PAGE

    image013 image014

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 323 NAV Windows Client on Remote App (remote execution).. you are Welcome !

    Some Links for you

    Below are some useful links to understand the operational mode of remote app and how to setupconfigure a new remote app environment.

    Overview of Remote App

    https://technet.microsoft.com/en-us/library/cc755055(v=ws.11).aspx

    Remote Desktop Services (RDS) Quick Start Deployment for RemoteApp, Windows Server 2012 Style

    https://blogs.technet.microsoft.com/yungchou/2013/02/07/remote-desktop-services-rds- quick-start-deployment-for-remoteapp-windows-server-2012-style/

    Publishing RemoteApps in Windows Server 2012 (GREAT !)

    https://social.technet.microsoft.com/wiki/contents/articles/10817.publishing-remoteapps- in-windows-server-2012.aspx

    NAV 2016 via Remote App

    https://community.dynamics.com/nav/f/34/t/185099

    324 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Dynamics NAV & TS RemoteApp https://community.dynamics.com/nav/f/34/t/25259

    Publish Dynamics AX client as RemoteApp on Remote Desktop Services https://community.dynamics.com/ax/b/axfortechies/archive/2012/10/25/publish-dynamics- ax-client-as-remoteapp-on-remote-desktop-services

    Introducing Terminal Services Easy Print: Part 1 https://blogs.technet.microsoft.com/enterprisemobility/2007/04/26/introducing-terminal- services-easy-print-part-1/

    Have a nice new Year 2017 ! How To setup “Keep Alive Interval” setting NAV2...

    Thursday, January 05, 2017 Many posts in forums about this topic; some people report that Idle Client Timeout configured in NAV Administration is not working. Example of scenario: “Users logs in to the Navision by windows client installed on their PC but after setting idle client timeout session for 3 minutes then also it does not log off after 30 minutes also.” or Automatically Idle Client Timeout – NAV2016 – doesn’t work! http://forum.mibuso.com/discussion/66081/automatically-idle-client-timeout-nav2016- doesnt-work

    History of ClientKeepAlive setting Since the October 2015 cumulative updates, the Dynamics NAV Windows client timeout configuration was managed at the service level by setting the Idle Client Timeout setting.

    “The October 2015 cumulative updates added a new setting: “ ClientKeepAlive”. This setting is managed at the user level and located in the ClientUserSettings.config file.

    The value of this setting is given in seconds and defines the interval between ‘pulse’ signals sent by the client to prevent the client from going idle in some scenarios, or for some users.

    ClientKeepAlive: about this setting

    1. In the server configuration file, set Idle Client Timeout to 00:10:00 2. In the client configuration file, set ClientKeepAlive to any value larger than 600 This value is in seconds, so 600 equals 10 minutes. Microsoft, by popular demand, changed in Dynamics NAV 2016 Cumulative Update 8: The ClientKeepAlive setting has been moved from the user level to the service level: “Keep Alive Interval “, and is no longer defined in number of seconds but as a time interval, just like the Idle Client Timeout setting.”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 325 Keep Alive Interval : about this setting

    So following our example above, to configure a timeout interval for the Dynamics NAV Windows client to 10 minutes, in Dynamics NAV 2016 Cumulative Update 8 and later, you must set the following:

    1. In the server configuration file, set Idle Client Timeout to 00:10:00 2. In the server configuration file, set Keep Alive Interval to a value larger than 00:10:00 PS: If you are running on a NAV 2016 build earlier then CU 8, your clientkeepalive settings will still be located Client side, in ClientUserSettings.config

    Web Client “To configure the timeout for the Dynamics NAV Web client, it is sufficient to configure the SessionTimeout setting in the web.config file to the relevant interval – in our example it’s 00:10:00.”

    PS: Check your NAV Release and build for correct configuration!

    Sources: Configuring Client Timeout https://blogs.msdn.microsoft.com/nav/2016/06/24/configuring-client-timeout/

    Understanding Session Timeouts NAV 2016-NAV 2017 https://msdn.microsoft.com/en-us/library/dn789725(v=nav.90) “ALL ABOUT” Kill (In)active Sessions when &...

    Sunday, January 15, 2017 Sometimes it happens that there are “ no more licenses available” for Dynamics NAV , from NAV 2013 R2 and next releases, it’s necessary to run the Windows Client or to use Powershell statements to kill some sessions and unlock others. If you are unable to access to NAV (“ no more licenses”), you should need to use SQL Console and kill sessions from there (reading from Active Sessions Table of from sysprocesses View on master db..) “Some user don’t want to use SQL Server to achieve this !” …WARNING : “No more licenses !!” … Immediately Buy Others !!! There are many ways to kill sessions, i list below some methods.With NAV Server Login – C/AL – Powershell Without NAV Server Login – SQL Server Stored Procedures\T-Sql – VB .NET Application Below some methods to kill the sessions even in the case of “ no more licenses available“: SQL Script and VB.NETC/AL Statement to Kill Sessions The Standard Statement for C/AL Code is: STOPSESSION(“Session ID”); Example:

    326 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) IF CONFIRM (‘Kill Session ?’) THEN STOPSESSION(“Session ID”) … GOAL ! …. BUT YOU NEED TO CONNECT TO NAV SERVER ! .. sometimes is NOT possible! ———————————————————- My VB.NET Solution “I wrote a simple solution on VB.NET to Kill Active Sessions using a SQL Connections, you cand find it on GITHUB and TECHNET.” ON GITHUBVB.NET-SQL-Kill- Sessions https://github.com/rstefanetti/NAV_SQL/tree /BV-.NET-SQL-Kill-Sessions ZIP COMPLETE SOLUTION https://github.com/rstefanetti/NAV_SQL/co mpare/BV-.NET-SQL-Kill-Sessions ON TECHNET Post link https://gallery.technet.microsoft.com/Dyna mics-NAV-Kill-SQL-44cbd45a Download link https://gallery.technet.microsoft.com/Dynamics-NAV-Kill-SQL- 44cbd45a/file/168079/1/NAV%202017%20Kill%20SQL%20Inactive%20Sessions.zip About My VB.NET Simple Solution, some picturesApp Config File ———————————————————- SQL KILL STATEMENTSKILL (Transact-SQL) – Syntax for SQL Server, Syntax for Azure SQL Data Warehouse and Parallel Data Warehouse

    KILL ‘session_id’ [;] Source https://msdn.microsoft.com/it-it/library/ms173730.aspx

    KEEP IN MIND !!! DON’T KILL PROCESSES IN THIS STATES: -AWAITING COMMAND -CHECKPOINT SLEEP -LAZY WRITER -LOCK MONITOR -SIGNAL HANDLER SOURCE SQL SCRIPTS

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 327 Source https://www.codeproject.com/Tips/647839/Session-Killer-for-SQL-Server Source https://technet.microsoft.com/en-us/library/ms173730.aspx My Customized release1) SP_SQL_KillNavServerSession SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON GO — ======— Description: KILL ALL NAV ACTIVE USER SESSSIONS WITH MULTIPLE INSTANCES — ======CREATE PROCEDURE [dbo].[SP_SQL_KillNavServerSession] AS BEGIN DECLARE @RowIndex AS INT; DECLARE @MaxIndex AS INT; SET @RowIndex = 1; SELECT @MaxIndex = (SELECT top 1 MIN([Session ID]) FROM [ITA].[dbo].[Active Session] WHERE [User ID] = ‘************’ group by [Session ID]) — Remove Active Session DELETE FROM [DB].[dbo].[Active Session] where [Session ID]>@MaxIndex AND [User ID] = ‘*********’ END 2) SP_SQL_KillNONavSession SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON GO — ======— Description: KILL SLEEPING NO NAV SESSIONS — ======CREATE PROCEDURE [dbo].[SP_SQL_KillNoNavSession] AS BEGIN DECLARE @Session TABLE ( id INT IDENTITY(1,1) PRIMARY KEY, [sid] int, ltime DATETIME, hname varchar(MAX), uid varchar(100), lret datetime, etime int ); DECLARE @NotAffectedUserList TABLE ( id INT IDENTITY(1,1) PRIMARY KEY, [uid] varchar(MAX) ); DECLARE @session_time as int; DECLARE @vSID as int; DECLARE @command as varchar(MAX); DECLARE @RowIndex AS INT; DECLARE @MaxIndex AS INT; set @session_time=15; — Assign Session time in Minutes — Assign List of Users who “will not be affected” by this Session Kill INSERT into @NotAffectedUserList SELECT ‘sa’ INSERT into @NotAffectedUserList SELECT ‘NT AUTHORITY\SERVIZIO DI RETE’ INSERT into @NotAffectedUserList SELECT ‘**************’ INSERT into @NotAffectedUserList SELECT ‘scheduler’ INSERT into @Session

    328 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) SELECT session_id as [Session ID], login_time as [Login Time], host_name as [Host Name], LOGIN_NAME as [Login ID], last_request_end_time as [Last Request End Time], DATEDIFF(minute, last_request_end_time,getdate()) as[Elapsed Time (minutes)] FROM sys.dm_exec_sessions WHERE open_transaction_count = 0 AND host_name <> ‘NAVSRV’ COLLATE Latin1_General_CI_AS AND host_name is not NULL AND DATEDIFF(minute, last_request_end_time,getdate())>=@session_time –AND client_version=4 AND login_name COLLATE Latin1_General_CI_AS not in ( SELECT DISTINCT uid FROM @NotAffectedUserList ) SET @RowIndex = 1; SELECT @MaxIndex = MAX(id) FROM @Session; WHILE( @RowIndex <= @MaxIndex) BEGIN SELECT @vSID = sid FROM @Session WHERE id = @RowIndex; — String together the KILL statement SELECT @command = ‘KILL ‘ + CAST(@vSID AS varchar(5)) BEGIN TRY — Execute the final string to KILL the spids EXEC (@command) END TRY BEGIN CATCH declare @emsg varchar(500); SELECT @emsg=ERROR_MESSAGE(); print @emsg; END CATCH SET @RowIndex = @RowIndex + 1; END; END // KILL SQL INACTIVE SESSIONS FOR NAV APPLICATIONS // ONLY FOR SLEEPING SESSIONS – OLD NAV CLIENTS a very Simple SQL Stored Procedure to ‘kill’ sql inactive sessions idle (sleeping) for 10 minutes related to “Nav Client” applications *** it’s necessary to identify correct “application name” *** *** ex: program_name LIKE N’%NAV client% *** or %NAV Web% DECLARE @v_spid INT DECLARE c_Users CURSOR FAST_FORWARD FOR SELECT SPID FROM master..sysprocesses (NOLOCK) WHERE spid>50 AND loginame <> ‘DIR%’ AND program_name LIKE N’%NAV client%’ AND status=’sleeping’ AND DATEDIFF(mi,last_batch,GETDATE())>=10 AND spid <> @@spid OPEN c_Users

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 329 FETCH NEXT FROM c_Users INTO @v_spid WHILE (@@FETCH_STATUS=0) BEGIN PRINT ‘Killing ‘+ CONVERT(VARCHAR,@v_spid)+’…’ EXEC(‘KILL ‘+ @v_spid) FETCH NEXT FROM c_Users INTO @v_spid END CLOSE c_Users DEALLOCATE c_Users ———————————————————- OTHERS NICE SOLUTIONS (NAV LOGIN IS REQUIRED)Olof Simren Solution Kill Sessions in Dynamics NAV (from NAV Page) Source https://www.olofsimren.com/kill-sessions-in-dynamics-nav/ Gunnar Solutions ADO NET Solution Kill Idle Connections Source http://www.dynamics.is/?p=471 Poweshell Solution Stopping Idle Microsoft Dynamics NAV Services http://www.softwareanswers.co.uk/software_answers/2015/03/stopping-idle-microsoft- dynamics-nav-services.html Nice Sessions Killing ! “How -to” restrict multiple logins for same user in NAV

    Saturday, January 21, 2017 Force logins limitations for some users can boost\improve system (few active Sessions..) as standard users can login in NAV multiple times, ex of real Scenario: CEO can have multiple logins, operational people NO !!

    NAV 2013 and Later

    From NAV 2013 Microsoft created a table named: Active Sessions –Table ID 2000000110 This table contains information about all the active sessions, showing Connected Client Type\PC and Users)

    Take a look to my previous post about “ALL ABOUT” Kill (In)active Sessions when “no more licenses”, with the VB.NET app in this post, you can show Client Type\PC and Connected User from this app to decide “who is the user” than try to use more than one NAV session.

    Source https://robertostefanettinavblog.wordpress.com/2017/01/15/all-about-kill-inactive- sessions-when-no-more-licenses/

    Starting from User Setup Table

    You can add a boolean field “ Multilogin” to User Setup Table (table 91)” ; with this boolean field you can check if user can login more times in NAV instead of only one time.

    User Setup – Table ID 91 User Setup

    330 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Before you need to add the new field “ Multilogin” on Page “ User Setup” (…or comment C/AL check code… you can’t login in anyway if you haven’t configured your user in this table)

    ..We can’t use System Table User.. because is used by System on Login process .. if you try to use this table you can’t start Windows Client…

    To Restrict multiple logins we can use Login Codeunit

    Codeunit 40 – LogInManagement

    This codeunit is ht first fired on Login Time and I can add C/AL code here to trap user logins. Steps: Open Codeunit 40, goto function CompanyOpen()

    In CompanyOpen function add two new local variables: locUser and locActiveSessione

    Modify the CompanyOpen function in this way:

    C/AL Code “Before”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 331 CompanyOpen()

    IF GUIALLOWED THEN LogInStart; C/AL Code “After”

    CompanyOpen()

    locUser.GET(UPPERCASE(USERID));

    IF NOT locUser.Multilogin THEN

    BEGIN

    locActiveSession.RESET;

    locActiveSession.SETRANGE(“User ID”,UPPERCASE(USERID));

    locActiveSession.SETRANGE(“Client Type”, locActiveSession.”Client Type”::”Windows Client”); //For RTC\Windows Clients

    IF locActiveSession.COUNT > 1 THEN

    ERROR(‘You are currently logged in NAV, you can’t have more sessions!’);

    END;

    IF GUIALLOWED THEN

    LogInStart;

    // Register all Microsoft Dynamics CRM connection strings

    IF CRMConnectionSetup.GET THEN

    CRMConnectionSetup.UpdateAllConnectionRegistrations;

    Results

    System abort login codeunit and display the Error Message “’You are currently logged in NAV, you can’t have more sessions!”; you can use\trap also others login types: ex: Web Client, Web Service, Background Sessions and so on.

    332 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Another Nice Feature

    You can decide also “how many sessions” each user can launch adding a “ No. Sessions” field in User Table.

    C/AL Code

    CompanyOpen() locUser.GET(UPPERCASE(USERID));

    IF NOT locUser.Multilogin THEN

    BEGIN locActiveSession.RESET; locActiveSession.SETRANGE(“User ID”,UPPERCASE(USERID)); locActiveSession.SETRANGE(“Client Type”, locActiveSession.”Client Type”::”Windows Client”); //For RTC\Windows Clients

    IF locActiveSession.COUNT > 1 THEN

    ERROR(‘You are currently logged in NAV, you can’t have more sessions!’);

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 333 END

    ELSE

    BEGIN

    locActiveSession.RESET;

    locActiveSession.SETRANGE(“User ID”,UPPERCASE(USERID));

    locActiveSession.SETRANGE(“Client Type”, locActiveSession.”Client Type”::”Windows Client”); //For RTC\Windows Clients

    IF locActiveSession.COUNT > locUser.”No. Sessions” THEN

    ERROR(‘You are currently logged in NAV, you can’t have more than ‘ + FORMAT(locActiveSession.COUNT-1) + ‘ sessions!’);

    END;

    IF GUIALLOWED THEN

    LogInStart;

    // Register all Microsoft Dynamics CRM connection strings

    IF CRMConnectionSetup.GET THEN

    CRMConnectionSetup.UpdateAllConnectionRegistrations;

    Results

    Bingo ! “How-to” implement a Copy Loop in Word report l...

    Tuesday, January 24, 2017 “How-to” implement a Copy Loop in Word report layouts

    Some time ago, I found this post on Microsoft Dynamics Community about: “No. of Copies” doesn’t work in Word Layout reports, “No. of Copies” works only on RDLC reports.

    334 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) image005 image006

    Example:

    Report 1306 Standard Sales – Invoice, “N. Copies” on request page

    Post Topic

    “Hi experts,

    I had to produce a report via Word layout in NAV 2015 and it had the “No. of Copies” option on the request page. However, this option doesn’t have any effect on the word report and it only prints one copy. If required to print more copies, the user has to either save or preview the word report and then do it as if from a word document.

    Will the option “No. of Copies” only works for RDLC reports or is there a way I can get it working on the word layout as well?

    Your comments/help will be much appreciated.

    Thanks & Regards.”

    Post Source https://community.dynamics.com/nav/f/34/p/215054/602685#602685

    My Answer …after some tests:

    “Hi, you are right!… “No. of Copies” doesn’t work in Word Layout report! .. after this i

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 335 asked (some days ago) to NAV Team for a product improvementworkaround.”

    Product Suggestion

    “N. of copies” with Word Layout Reports.

    I know that the option “No. of Copies” works only for RDLC reports (by design i think, this option is not existing on Mini World layout sample Reports) or is there a way i can get it working on the word layout as well?

    If a user, either required printing more copies, this user has to “ save” or “ preview” the word report and then do it as if from a word document.

    May be useful for “ Post and Print” feature (“ to print more copies.”..)

    You can find my Product Suggestion here:

    https://connect.microsoft.com/dynamicssuggestions/Feedback/Details/3118831

    @Today, Solution is delivered by NAV Team Blog

    “Because many partners asked to have this feature, an official solution (by my friend Duilio Tacconi of Microsoft) is today available. I tested this solution in preview before the post was published n NAV Team Blog, is a nice workaround, useful for “ Post & Print” feature.

    Source from NAV Team Blog

    How to implement a Copy Loop in Word report layouts

    https://blogs.msdn.microsoft.com/nav/2017/01/24/how-to-implement-a-copy-loop-in-word- report-layouts/

    Well Done! Dynamics NAV New Books

    Sunday, January 29, 2017 Many ask in the forum about books\ebooks\kindles on Dynamics NAV 2017; actually there are no books on Dynamics NAV 2017 (…the same for Dynamics 365 Business Edition), many books have been updated at least to Dynamics NAV 2016.

    Good News: “New books on Dynamics NAV will be released soon”. Below you can find the title and release date of each book, i must point them, the upcoming books look very interesting !

    336 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) You can find books on Amazon or on PacktPub (also from other sites) https://www.amazon.com https://www.packtpub.com/

    NAV books

    Books currently purchasable

    Implementing Microsoft Dynamics NAV – Third Edition (by Alex Chow) http://amzn.to/2jKcTNd hi already talked about this book long ago, take a look to my old post. https://robertostefanettinavblog.wordpress.com/2016/04/15/new-book-implementing- dynamics-nav-2016-by-alex-chow/

    Microsoft Dynamics NAV 2016 Financial Management – Second Edition by Anju Bala http://amzn.to/2k5fxhv

    Extending Microsoft Dynamics NAV 2016 Cookbook by Alexander Drogin http://amzn.to/2kAtgwG at this time i’m writing a review of this book (Kindle)

    Einstieg in Microsoft S Dynamics NAV: Microsoft® Dynamics(tm) NAV 2016 http://amzn.to/2k5HndM Books that will be released soon (only bookable books)

    Building ERP Solutions with Microsoft Dynamics NAV (available from August 2017) by Stefano Demiliani http://amzn.to/2kANTZU

    Mastering Microsoft Dynamics NAV 2016 (avalialble from September 2017) Rabindra Sah http://amzn.to/2k52YTv

    Programming Microsoft Dynamics NAV – Fifth Edition (available from November 2017) http://amzn.to/2jK3eGM

    Have a nice reading !

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 337 Microsoft Forum 2017

    Tuesday, January 31, 2017 Microsoft Forum 2017

    Mercoledì 8 marzo, MiCo, Gate 3, Viale Scarampo, Milano

    La 2Rivoluzione Industriale 4.0″ e i cambiamenti che sta generando sul mercato

    “ La 2a edizione del più grande evento annuale di Microsoft rivolto ai decisori aziendali. Dove l’industria italiana e l’innovazione convergono e danno vita a nuova conoscenza e nuove idee.”

    Sessioni tematiche: cybersecurity, big data & analytics, intelligenza artificiale e cognitive services, IoT, smart working e smart collaboration, cloud computing, CRM & ERP, licensing.

    Link Evento https://www.microsoft.com/italy/microsoftforum/index.html

    Registrazione Evento https://www.microsoftevents.com/profile/form/index.cfm?PKformID=0x12095982d53

    Social [email protected] #MSForum2017 #AccelerateBiz

    LE SOLUZIONI INNOVATIVE DI NAV-lab al Microsoft Forum 2017

    Anche quest’anno il gruppo NAV-lab partecipa attivamente all’evento e si pone tra i principali propositori di innovazione verso le PMI e verso la PA.

    I nostri specialisti Dynamics vi accoglieranno nel nostro stand per ascoltare le vostre esigenze e fornirvi risposte concrete per la loro realizzazione: Sempre nello stand vi presenteremo le nostre soluzioni specialistiche basate su Tempo Zero per Microsoft Dynamics NAV e Microsoft Dynamics 365 e vi mostreremo come abbiamo reso POSSIBILI progetti sofisticati sui nostri clienti.

    Link http://www.navlab.it/web11/news-Microsoft-Forum-2017.html

    338 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Vieni a trovarci ! SCM (Source Control Management) with NAV

    Friday, February 03, 2017 ..most viewed post about SCM.,, “nice” to reblog.

    Roberto Stefanetti NAV Blog

    SCM (Source Control Management) with NAV do you need to use NAV with SCM (Source control Management) integration ?

    …you can use two applications to reach this goal.

    – Visual Studio Online (and team foundation server) (free for 5 users) https://www.visualstudio.com/en-us/products/visual-studio-team-services-pricing-vs.aspx

    – GIT (free and open source) https://www.git-scm.com/about/free-and-open-source

    You can find a script on codeplex for using GIT and NAV (integration with TFS and GIT) …. and Others nice free scripts at links below (always on codeplex repository)

    1) NAV Powershell scripts and TFS Build Template https://navscripts.codeplex.com/

    2) TFS Build Template for GIT repository https://navscripts.codeplex.com/wikipage?title=TFS%20Build%20Template&referringTitle =Home

    Some parts of the scripts are based on work (Waldo) see http://www.waldo.be/tag/powershell/

    Some parts are based on PowerShell scripts from module “Microsoft.Dynamics.Nav.Ide” made by Microsoft people.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 339 My GIT@ https://github.com/rstefanetti https://github.com/rstefanetti/NAV_SQL

    View original post PRODUCTION ORDERS IN NAV

    Tuesday, February 07, 2017 Roberto Stefanetti NAV Blog

    PRODUCTION ORDERS IN NAV …a short guide about NAV Production Orders, based on MSDN Online NAV help.

    PRODUCTION ORDER PURPOSE General Definiton : “Production Order – an order that initiates the manufacturing process”

    Wikipedia Defintion: “ A production order is an order issued within a company to produce a specific quantity of material within a certain timeframe. A production order may be issued pursuant to a sales order, and its issuance triggers a number of events. If components in the bill of materials are in stock, reservations are generated for those items; if they are not in stock, then requisition orders may be generated. Requisition orders may also be generated for production that occurs externally to the firm. Planned costs for the order are also generated and capacity requirements are generated for the work centers.” https://en.wikipedia.org/wiki/Production_order

    NAV PERSPECTIVE: “Produc tion orders are the central components of the Microsoft Dynamics…

    View original post 927 more words “How to” print reports to PDF and send email

    Wednesday, February 08, 2017 “How to” print reports to PDF and send email

    Hi guys, another post about my “How to” posts series.

    340 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) In this case, I want to talk about thistopic: “How to” print reports to PDF and send mail; we can have some methods to achieve this goal, with NAV 2017, NAV 2016 and with old NAV releases.

    First Scenario: “How to” print reports to PDF

    Schedule a report to print to PDF Format

    1) “HOW TO” PRINT REPORTS TO PDF FORMAT

    WITH NAV 2016 and mailing & sending documentsprocess

    “In NAV 2016 managing mailing & sending documentsprocess has been improved. Compared to the NAV 2015 version, you can send documents to printer, via email and via EDI in a single operation; you can set a default “document sending template” for each customer. For this purpose new NAV objects have been introduced.”

    Look at my old post here: https://robertostefanettinavblog.com/2016/05/30/nav-2016- documents-sending-objects-features/

    WITH NAV 2017 and NST Reports Parameters

    With NAV 2017, we can use NST Reports Parameters to activate “SAVEAS” function to produce reports in PDF format, we can schedule a report with PDF Output using SAVEAS function in report scheduling.

    To achieve this gold you need only to:

    Activate SAVEAS function in NST report section

    Schedule a report in task scheduler

    Configure the Output Layout for report

    Example:

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 341 Look at my old post here NAV 2017 Task Scheduler https://robertostefanettinavblog.com/2016/11/04/nav-2017-task-scheduler/

    and look at section of post: “JOB QUEUE” IMPROVEMENTS

    NST Reporting Parameters (nice for activate “ SAVEAS” function for reporting scheduling)

    Sample of Report Scheduling

    image003 image006

    WITH OLD NAV RELEASES

    ..but for older releases of NAV we need to produce a PDF Output using SAVEAS function after report printing, we haven’t report parameter optionrequest page available in older releases.

    To achieve this gold you need only to:

    Activate SAVEAS function in report

    Schedule a report in task scheduler

    NAV 2013 SAMPLE REPORT TO CREATE PDF IN BATCH MODE (in this case using

    342 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) report 206 Sales Posted Invoice)

    Scenario

    Generate PDF report with SAVEAS feature

    Schedule this report on Job queue

    SAVEASPDF Function (Report) [Ok :=] REPORT.SAVEASPDF(Number, FileName[, Record]) OR

    [Ok :=] ReportVariable.SAVEASPDF(FileName)

    “When you call SAVEASPDF, the report is generated and saved to “ FileName.” A Saving to PDF window shows the status of the process. Note that the request page will not be shown.

    The FileName parameter specifies a location on the computer that is running Microsoft Dynamics NAV Server. “

    Source MSDN: https://msdn.microsoft.com/en-us/library/dd301166(v=nav.70).aspx

    Example

    Filename := ‘C:MyReportsreport206Demo.pdf’;

    ReturnValue := Report.SAVEASPDF(206, Filename, record);

    Sample of PDF generator batch

    Codeunit CreatePDFFromPostedInvoices()

    CreatePDFFromPostedInvoices()

    // READING ALL POSTED INVOICES TO PRINT PDF REPORTS

    SalesInvoiceHeader.RESET;

    SalesInvoiceHeader.SETRANGE(“PDF Generated”, FALSE);

    IF SalesInvoiceHeader.FINDSET THEN BEGIN

    REPEAT

    Filename:= SalesInvoiceHeader.”No.” + ‘.PDF’;

    Report.SAVEASPDF(206, Filename, SalesInvoiceHeader); //PDF CREATED BY SAVEAS FUNCTION

    UNTIL SalesInvoiceHeader.NEXT = 0;

    END;

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 343 2) “HOW TO” EMAILING PDF REPORTS

    Second Scenario: “How to” emailing PDF reports

    Ø Send generated PDF reports via email

    Sendmail with NAV SMTP Sendmail Codeunit (NAV .NET integration)

    To send email from NAV (OnDemand or Scheduled), you can use standard NAV SMTP Codeunit: Codeunit 400 SMTP Mail.

    This codeunit use one .NET object with some functions

    MailDotNet Microsoft.Dynamics.Nav.SMTP.SmtpMessage.’Microsoft.Dynamics.Nav.SMTP’

    Functions: CreateMessage, TrySend, Send

    Example SMTP SENDMAIL TEST

    Subject := ‘SUBJECT SAMPLE TEXT’ ;

    Body := ‘BODY SAMPLETEXT’;

    SMTP.CreateMessage(‘SENDER’, ‘[email protected]’, ‘[email protected]’, Subject, Body, TRUE);

    Body := Body + ‘ OTHER’;

    SMTP.AppendBody(Body);

    SMTP.Send;

    MESSAGE(‘Mail Sended’);

    Sendmail with external .NET Integration Solution

    Some time ago I published a project solution on MSDN TechNet.

    344 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Solution: “ Send e-mail with attachment and templates – My Script on MSDN Gallery,a short C# script to send e-mail with attachment and template, DLL .NET usable on Windows Systems.

    Function: SetMail(string parfrom, string parto, string parcc, string parsubject, string partextmessage, string parpathattach, stringparpathtemplate) https://robertostefanettinavblog.com/2015/07/13/send-e-mail-with-attachment-and- templates-my-script-on-msnd-gallery/ https://gallery.technet.microsoft.com/scriptcenter/0c32d24a-3651-4fe1-8d10- 80f9c6440a70

    MY NEW SENDMAIL 2.0 PROJECT WITH WS INTEGRATION

    Sendmail 2.0 C# Project

    New Features:

    Complete package solution (PRINT REPORTS TO PDF+SEND EMAIL INTEGRATION)

    NAV Web Services integration

    Best mailing errors check and logging.

    SOON AVAILABLE: look at MSDN Scripting gallery section or on my GitHUb page soon. “ALL About” Microsoft Dynamics 365 for Financials

    Saturday, February 11, 2017 Another post of “ALL About” Series (the most appreciated by my readers….), in this case i want to talk about Microsoft Dynamics 365 for Financials because some people asked me information about it; i would like to remember that in ITALY is not yet available and remember also that I’m not an MVP of Dynamics 365 (i don’t think they exist today, maybe they will exist in the future), only of NAV. Below I have gathered many of the existing links related to Microsoft’s officials information, a lot of posts, links, videos and forums’s discussions. When Microsoft Dynamics 365 for Financials will be launched in Italy of course I’ll take care about it with a dedicated post about released product.

    Stay tuned !

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 345 LINKS

    ABOUT MICROSOFT DYNAMICS 365 Welcome to Microsoft Dynamics 365 ! https://robertostefanettinavblog.com/2016/11/01/welcome-to-microsoft-dynamics-365/

    Microsoft Dynamics 365 Roadmap https://roadmap.dynamics.com/

    Availability Guide http://download.microsoft.com/documents/en- us/dynamics/Dynamics_365_International_Availability_Deck.pdf

    Dynamics 365 Documentation https://www.microsoft.com/en-us/dynamics365/financials https://docs.microsoft.com/en-us/dynamics365/

    Launch Videos Microsoft Dynamics 365 for Financials https://www.microsoft.com/en-us/dynamics365/financials#hero-video-01

    Microsoft Dynamics 365 Channel https://www.youtube.com/channel/UCJGCg4rB3QSs8y_1FquelBQ

    Dynamics 365 for Financials – Getting Started https://www.youtube.com/watch?v=2D5tmAGxvc8

    “Welcome to Microsoft Dynamics 365 !” launch video by Microsoft https://youtu.be/LTJJEubW9iM

    Connect Your Business with Dynamics 365 Financials – Mark Brummel https://www.youtube.com/watch?v=q6ADHrDJW6M

    Digital Transformation with Microsoft Dynamics 365, Microsoft https://www.microsoft.com/en-us/dynamics365/first-look

    346 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) ITALIAN LAUNCH LINKS (NOT AVAILABLE AT TODAY! …it’s coming) https://www.microsoft.com/it- it/dynamics365/home?&WT.srch=1&WT.mc_id=AID[529538]_SEM_RGSTgANW

    “Fai crescere la tua azienda in base alle tue esigenze Grazie alle applicazioni per ERP e CRM, Microsoft Dynamics 365 ti offre la possibilità di scegliere. Inizia con le componenti base necessarie alla tua attività e soddisfa i tuoi clienti, quindi aggiungi app a seconda delle esigenze.”

    MICROSOFT EVENTS https://events.microsoft.com Serch for events “dynamics 365” example: “Enhance your business with Dynamics 365 – PowerApps and Flow” Event Time, 12 Apr, 2017 9:00 AM – 10:00 AM

    “Event Description, During this event we will introduction you to using Microsoft Flow and Using Power Apps with Dynamics 365 by presenting real live scenarios and demos. This session will help you better understand which are the integration possibilities and how to make the most out of the new functionalities which are part of Dynamics 365.

    OTHERS LINKS\POSTS Dynamics NAV 2017 Vs Dynamics 365 for Financials Great post by Amol relinked to my blog: “ NAV 2017 vs Dynamics 365, Battle Card” https://robertostefanettinavblog.com/2016/11/19/nav-2017-vs-dynamics-365-battle-card- by-amol-dynamics-nav-users-dug/

    “How-to” support pages https://community.dynamics.com/business/b/financials/archive/2016/11/01/how-to-get- support-for-dynamics-365-for-financials

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 347 Dynamics 365 Team Blog (from CRM to…) https://blogs.msdn.microsoft.com/crm/

    Save the date: “Microsoft Dynamics 365 first look” – Microsoft Dynamics Community https://robertostefanettinavblog.com/2016/10/03/save-the-date-microsoft-dynamics-365- first-look-microsoft-dynamics-community/

    Free Dynamics 365 Customisation Training https://www.365talentportal.com/blog/free-dynamics-365-customisation-training/

    Dynamics NAV 2017 vs Dynamics 365: Microsoft Executive Q&A at Directions EMEA 2016 https://community.dynamics.com/nav/b/russianerpexperience/archive/2016/10/14/dynami cs-nav-2017-vs-dynamics-365-microsoft-executive-q-amp-a-at-directions-emea-2016

    MS Dynamics NAV Guru – TAG 365 http://msdynamicsnav.guru/wp/?s=365

    COMMUNITIES Microsoft Communities Dynamics Community “ Business” new section https://community.dynamics.com/business

    PRICES AND LICENSING About Dynamics 365 Pricing and Licensing

    Dynamics 365 pricing https://www.microsoft.com/en-us/dynamics365/pricing

    Microsoft Dynamics 365 Pricing and Licensing info available on Partnersource https://dynamicsuser.net/nav/b/mohana/posts/microsoft-dynamics-365-pricing-and- licensing-info-available-on-partnersource

    SOME MY OLD POSTS Microsoft Dynamics 365 News https://robertostefanettinavblog.com/2016/07/06/microsoft-dynamics-365-news/

    Ex Project Madeira Preview https://www.youtube.com/watch?v=uEUK8bMNt-w https://robertostefanettinavblog.com/2016/10/19/dynamics-365-financials-preview-ex- project-madeira/ https://robertostefanettinavblog.com/2016/04/05/project-madeira-preview/

    OLD POSTS BY MICROSOFT https://www.microsoft.com/en-us/dynamics/erp-small-midsize-business.aspx https://community.dynamics.com/b/msftdynamicsblog/archive/2016/07/13/reinventing- business-processes https://community.dynamics.com/b/msftdynamicsblog/archive/2016/07/06/insights-from- the-engineering-leaders-behind-microsoft-dynamics-365-and-microsoft-appsource

    Stay Tuned !

    348 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Announcing new capabilities and updated features in the Dynamics 36...

    Wednesday, February 15, 2017 Source:: Announcing new capabilities and updated features in the Dynamics 365 for Financials February release – Microsoft Dynamics 365, Business edition Community NAV 2017 with Office 365 and Sharepoint Integration

    Saturday, February 18, 2017 Recently i found some questions in Microsoft Dynamics Community about these two topics: Office 365 and Sharepoint Integration with NAV. Some time ago, i talked about Azure deployment, take a look at my old post “ALL” about “Deploying Microsoft Dynamics NAV on Windows Azure” NAV 2015 https://robertostefanettinavblog.com/2015/07/23/all-about-deploying-microsoft-dynamics- nav-on-windows-azure/ ; now i would like to talk about Dynamics NAV with Office 365 and Sharepoint Integration

    Best goals: Dynamics NAV with: – Office 365 Integration – Sharepoint Online Integration – “Complete Demo Environment of Dynamics NAV 2017” – Azure

    Image from Freddy Blog

    Existing powershell scripts “ready to go” Powershell Scripts are existing and ready to use, you can find these scripts in Dynamics NAV DVD Image folders or in c:\DEMO\ for Dynamics NAV Azure Images deployments (the folders will be created directly by images). Example : Files are located in: “D:\Dynamics.100.W1.2087091.DVD\W

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 349 indowsPowerShellScripts\ NAVOffice365Administration\ or in c:\DEMO\ for NAV 2017 Azure Images.

    A List of “Suggested” Links Below a list of suggested links to achieve correct installation\configuration for a complete NAV 2017 Demo Environment with Office 365 and SharePoint Integration. Best Links (from my opinion) are available on Freddy Blog, note that all links from Freddy are free to use (not under NDA or only for Partners…), very useful for ALL people.

    AZURE

    About Azure Images The Microsoft Dynamics NAV Image in the Azure Gallery https://blogs.msdn.microsoft.com/freddyk/2016/11/05/the-microsoft-dynamics-nav-image- in-the-public-azure-gallery/

    One NAV 2017 on Azure – Loaded please… https://blogs.msdn.microsoft.com/freddyk/2016/11/19/one-nav-2017-on-azure-loaded- please/

    Azure DEMO scripts Deployment Gallery Image NAV NAV 2017 navdemodeploy – under the hood https://blogs.msdn.microsoft.com/freddyk/2016/11/20/httpaka-msnavdemodeploy-under- the-hood/

    350 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Setup your NAV 2017 DEMO environment https://blogs.msdn.microsoft.com/freddyk/2016/11/19/one-nav-2017-on-azure-loaded- please/#setup http://aka.ms/navdemodeploy

    Azure DEMO scripts Deployment http://aka.ms/navdemodeploy – using PowerShell https://blogs.msdn.microsoft.com/freddyk/2016/11/19/httpaka-msnavdemodeploy-using- powershell/

    DYNAMICS NAV 2016 VM ON MICROSOFT AZURE http://thinkaboutit.be/2015/10/dynamics-nav-vm-on-microsoft-azure/

    OFFICE 365

    About Office 365 Integration

    GITHUB NAV 2017 https://github.com/NAVDEMO/NAV2017

    Folder DEMO/O365 Integration

    On Partnersource Install O365 integration – DEMO Install Script (NAV 2016) http://Aka.ms/DemoNAV https://mbs.microsoft.com/partnersource/gl obal/readiness-training/readiness-training- news/DemoNAV

    Configure the Outlook/Office Add-in https://blogs.msdn.microsoft.com/freddyk/2016/11/19/one-nav-2017-on-azure-loaded- please/#configuringoutlook

    VIDEOS GREAT VIDEOS – “HOW DO I” NAV 2017 Office 365 Integrations

    How Do I: Bring your Microsoft Dynamics NAV Demo Instance in Office 365 https://msdn.microsoft.com/en-us/dynamics/nav/dn921913

    “How Do I” configure the outlook add in https://community.dynamics.com/nav/b/navvideos/archive/2017/01/12/how-do-i- configure-the-outlook-add-in-for-microsoft-dynamics-nav-2017

    “How Do I” Configure the Excel Add-in in Microsoft Dynamics NAV 2017 https://community.dynamics.com/nav/b/navvideos/archive/2016/11/17/how-do-i- configure-the-excel-add-in-in-microsoft-dynamics-nav-2017

    “How Do I” Synchronize my Microsoft Dynamics NAV contacts with Office 365 https://community.dynamics.com/nav/b/navvideos/archive/2016/12/13/how-do-i- synchronize-my-microsoft-dynamics-nav-contacts-with-office-365

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 351 SHAREPOINT

    About Sharepoint Integration SharePoint and Microsoft Dynamics NAV – best topics

    From MSDN Online:

    “If you set up a SharePoint site, you can add Microsoft Dynamics NAV as an app to the site so that the Microsoft Dynamics NAV Web client opens when the user chooses an icon. Then, you can add web parts that show Microsoft Dynamics NAV data, such as a list of sales invoices with overdue payments. Users can drill down into the data and the web parts will open the relevant page in the Microsoft Dynamics NAV Web client when the user chooses an icon or a link.”

    Links Access NAV 2017 via a SharePoint Portal https://blogs.msdn.microsoft.com/freddyk/2016/11/19/one-nav-2017-on-azure-loaded- please/#sharepoint

    Integrating Microsoft Dynamics NAV in SharePoint Sites https://msdn.microsoft.com/en-us/library/dn271706(v=nav.90).aspx

    Developing and Installing a Microsoft Dynamics NAV Apps for SharePoint https://msdn.microsoft.com/en-us/library/dn271653(v=nav.90).aspx

    Troubleshooting: Microsoft Dynamics NAV and SharePoint https://msdn.microsoft.com/en-us/library/dn414712(v=nav.90).aspx

    Dynamics Navision 2015 Integration with SharePoint Online and office O365 – How to embed Dynamics Navision 2015 Pages into SharePoint Online http://www.softwareanswers.co.uk/software_answers/2014/11/dynamics-navision-2015- integration-with-sharepoint-online-and-office-o365-how-to-embed-dynamics-navision- 2015-pages-into-sh.html

    OFFICE 365 INTEGRATION IN NAV 2015 – Word/Excel/SharePoint by ksdconsultancy https://ksdconsultancy.blog/2015/07/08/office-365-integration-in-nav-2015- wordexcelsharepoint/

    Have a nice integration.

    352 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) The NAV_Developer blog is coming back ! Nav supporter’s blog

    Monday, February 20, 2017 The NAV_Developer blog is coming back !

    “The NAV_Developer blog is coming back into action as a NAV supporter’s place. This will be by and for people who support the Dynamics NAV products in one way or the other. Starting with the newest version of the NAV_Diag tool from the Coffee Break team”

    Source: Hello NAV_Developer – Nav supporter’s blog NAV 2017 not documented options for “Credential Type&...

    Saturday, February 25, 2017 In NAV 2017 there are two new options for “ Credentials Type”: TaskScheduler and EchangeIdentity.

    “Credential Type” -> “AS IS” Documentation “Specifies the authentication mechanism for Microsoft Dynamics NAV users of this Microsoft Dynamics NAV Server instance.” The options are “Windows, Username, NavUserPassword, and AccessControlService”.

    But… What about others features ? “TaskScheduler”, “EchangeIdentity”, “None” ?

    I n reality now there are three not documented options in the online help and also in NAV admin console help: “TaskScheduler”, “EchangeIdentity”, “None” …the option “ None” was already existing in 2016, undocumented.

    NAV 2016

    NAV 2017

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 353 I asked Microsoft to update the documentation on MSDN (not updated from NAV 2016), useful in explaining exactly the “ scope” and the “ ByDesign” concept of each option. I’ll let you know! .

    I have the solution (23/03/2017..) !.. Thanks to Microsoft… -> “ These options are for Dynamics 365 for Financials” .. IASS applications !!! .not for NAV.

    MSDN –“Users and Credential Types” https://msdn.microsoft.com/en-us/dynamics-nav/users-and-credential-types

    Some old posts

    I have already talked about the new task scheduler and new NAV Admin console options previously, below some links that can be useful.

    NAV 2017 “Task Scheduler” https://robertostefanettinavblog.com/2016/11/04/nav-2017-task-scheduler/

    NAV 2017 – What’s new in the Administration Console http://www.pakiki.info/2016/11/01/nav-2017-whats-new-in-the-administration-console/

    How to force specific service instance in Task Scheduler in NAV 2017? http://forum.mibuso.com/discussion/68576/how-to-force-specific-service-instance-in-task- scheduler-in-nav-2017 Best practices for installing and configuring Microsoft SQL Server ...

    Tuesday, February 28, 2017 The documentation on Installation Considerations for Microsoft SQL Server and Microsoft Dynamics NAV has been updated with information on recommended settings for SQL Server 2012, 2014, and 2016.

    The documentation contains recommendations on topics such as

    • Storage and recommended disk block size • Virus scanning • Memory • TempDB database configuration • Auto-growth of database and/or transaction log files • Max degree of parallelism (MAXDOP) • Trace flags 1117 and 1118 (full extents only and equal growth of all files in a filegroup) • Service accounts and instant file initialization (Perform Volume Maintenance Tasks) • Statistics (auto-create, auto-update and maintenance jobs) • Page Verify

    354 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) • Backup and restore Source: Best practices for installing and configuring Microsoft SQL Server for Microsoft Dynamics NAV

    Read more at: https://msdn.microsoft.com/en-us/dynamics-nav/installation-considerations-for-microsoft- sql-server About “UI Elements Removal” feature

    Saturday, March 04, 2017 About “UI Elements Removal” feature

    I never talked about this subject because is “daily bread” for NAV users, however, since some of NAV customers (and some of my readers) are still in old versions of NAV and they want to understand how this technology works, i collected a bit of existing documentation about this topic; below you will find many links from MSDN.

    About “UI Elements Removal” feature

    “UI Elements Removal” feature was introduced with NAV 2015; Microsoft Position at the end of 2014 before NAV 2015 launching date: “ To simplify the users’ experience in Microsoft Dynamics NAV 2015, we have introduced the UI Elements Removal feature. The feature can be used to remove user interface (UI) elements, such as fields and actions from pages in Microsoft Dynamics NAV so that the Role Center and pages become simpler to look at, easier to navigate on, and faster to get through.”

    Access By Permission on NAV 2015(v=nav.80).aspx

    How to: Try Out the UI Elements Removal Feature based on Demo Permission Set

    (v=nav.80).aspx

    How System Works with “LicenseFileAndUserPermissions” option active?

    When you configure user interfaces in Microsoft Dynamics NAV, you should make sure that the UI Elements Removal field is set to its default, LicenseFileAndUserPermissions, so that you only see the relevant UI elements in the Customize window.

    What objects will be removed objects by LicenseFileAndUserPermissions option?

    All types of UI elements will be removed if they relate to objects that are not included in the license or the user does not have the required permission to the objects:

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 355 • Fields, Actions, Page parts

    “UI elements” removed “By Design”

    Directly Related

    UI elements that are directly related to an object through the TableRelation or the CalcFormula property can be removed automatically according to the license file and/or user permissions

    Not Directly Related

    For UI elements that are not directly related to an object, you can use the AccessByPermission property to remove the element according to the user’s permission to a related object

    “All types” of UI elements will be removed if they relate to an object to which the user does not have the required permissions:

    • Fields on pages, including FactBoxes • Actions on pages, including toolbars and navigation panes • Page parts, such as Lines FastTabs About “FOUNDATION” permissions set

    A prerequisite for all other permission sets. The FOUNDATION permission set grants access to system tables and application setup tables that are required for most application features to work.

    This permission set is “recommended” when using the UI Elements Removal feature to automatically remove UI elements according to user permissions.

    To use the LicenseFileAndUserPermissions option in the UI Elements Removal field, you must assign the special FOUNDATION permission set to the user along with the relevant application permission sets that define which application objects the user will access. Unlike the BASIC permission set, the FOUNDATION permission set only grants access to application setup and system tables and requires that other assigned permission sets define which specific application objects can be accessed. For more information, see Special Permission Sets.

    Note that all of the 167 default permission sets that are provided with Microsoft Dynamics NAV are ready to support the FOUNDATION permission set to remove UI elements according to user permissions. You must therefore edit the relevant permission sets as explained in the following procedures.

    Important ! 1

    “If you defined the property for a table field, then all instances of the field on pages are removed from the user’s view . To override the property on an individual page field, delete the permission value after the = sign in the Value field. Do not delete the whole string as that will be replicated on the property of the table field.”

    Important! 2

    356 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) “The majority of the permission sets that are provided with the CRONUS demonstration databasecannotbe combined with the FOUNDATION permission set to fully use the UI Elements Removal feature. You must first create or edit the relevant permission sets to avoid that the user is blocked from performing the involved tasks. For more information, see How to: Create or Modify Permission Sets.”

    Post Based on MSDN Documentation and others sources

    Accessbypermission Property (NAV 2017 HELP on MSDN)

    Source https://msdn.microsoft.com/en-us/dynamics-nav/accessbypermission-property

    Source https://msdn.microsoft.com/en-us/dynamics-nav/how-to–remove-ui-elements- using-the-accessbypermission-property

    SAMPLES

    NAV Service Configuration

    “UI Elements Removal” property with “LicenseFileAndUserPermissions” option

    To use this property, the UI Elements Removal field in the Microsoft Dynamics NAV Server Administration tool must be set to LicenseFile or LicenseFileAndUserPermissions.

    This Property Applies To

    • Fields in tables (affecting all related fields on pages) Fields on pages

    Actions on pages

    MenuSuite items

    Page parts, such as a Lines FastTab

    “AccessByPermission “Property Values

    When you choose the AssistEdit button, the Access By Permission window opens.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 357 Field Description

    Object Type Specify the type of object to which permission is required to display the UI element

    Object ID Specify the object to which permission is required to display the UI element

    Read Specify if Read permission is required to display the UI element

    Insert Specify if Insert permission is required to display the UI element

    Modify Specify if Modify permission is required to display the UI element

    Delete Specify if Delete permission is required to display the UI element

    Execute Specify if Execute permission is required to display the UI element

    Sample on table 137 “Sales Invoice Line”, on field “Line Amount”

    Others samples (Standard NAV)

    Table 37 “Sales Line”

    358 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Page 42 “Sales Order”

    MenuSuite

    Bank Accounts List Page

    Item PropertiesAccess by Permission

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 359 AVAILABLE DOCUMENTATION ON MSDN, Microsoft NAVHelp on MSDN

    Accessbypermission Property (NAV 2017)

    https://msdn.microsoft.com/en-us/dynamics-nav/accessbypermission-property

    Removing Elements from the User Interface According to Permissions

    https://msdn.microsoft.com/en-us/dynamics-nav/removing-elements-from-the-user- interface-according-to-permissions

    How to: Remove UI Elements Using the AccessByPermission Property

    https://msdn.microsoft.com/en-us/dynamics-nav/how-to–remove-ui-elements-using-the- accessbypermission-property

    How to: Specify When UI Elements Are Removed

    https://msdn.microsoft.com/en-us/dynamics-nav/how-to–specify-when-ui-elements-are- removed

    ABOUT DEMO PERMISSIONS SETS

    How to: Try Out the UI Elements Removal Feature Based on Demonstration Permission Sets

    https://msdn.microsoft.com/en-us/dynamics-nav/how-to–try-out-the-ui-elements-removal- feature-based-on-demonstration-permission-sets

    360 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) How “not” to increase the batch name

    Monday, March 13, 2017 NAV standard, in the case of use of batch name containing numbers, after posting automatically increases the last number existing in batch name (example: Batch 1 > 2 ..AL110A > AL111A.. and so on..)

    This functionality is handled “Bydesign” in NAV, if you want to “ NOT increase” the number and keep the same number in the batch (example in the case of fixed batch used for example for output and consumption and related numbered machines, former assets) can modify the codeunit 23 “Item Jnl.-Post Batch”

    To achieve this, you need to change this line ItemJnlBatch.Name: = INCSTR ( “Journal Batch Name”) in function HandleNonRecurringLine

    Function HandleNonRecurringLine

    (VAR ItemJnlLine: Record “Item Journal Line”; OldEntryType: ‘Purchase, Sale, Adjmt Positive., Negative Adjmt., Transfer, Consumption, Output,, Assembly Consumption, Output Assembly’)

    Original Code ItemJnlLine3.COPY (ItemJnlLine); ItemJnlLine3.DELETEALL; ItemJnlLine3.RESET; ItemJnlLine3.SETRANGE ( “Journal Template Name”, “Journal Template Name”); ItemJnlLine3.SETRANGE ( “Journal Batch Name”, “Journal Batch Name”);

    IF NOT THEN ItemJnlLine3.FINDLAST IF INCSTR ( “Journal Batch Name”) <> ” THEN BEGIN ItemJnlBatch.DELETE; ItemJnlBatch.Name: = INCSTR ( “Journal Batch Name”); IF THEN ItemJnlBatch.INSERT; “Journal Batch Name”: = ItemJnlBatch.Name; END;

    You can change code in this way … for example in case of Outputs Consumptions entries to post from machine from MES.. IF NOT (ItemJnlLine2. “Entry Type” IN [ItemJnlLine2. “Entry Type” :: Consumption, ItemJnlLine2. “Entry Type” :: Output]) THEN .. //ItemJnlBatch.Name: = INCSTR ( “Journal Batch Name”); // OLD

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 361 ItemJnlBatch.Name: = “Journal Batch Name”; // NEW, maintain old batch name, don’t use INCRSTR statement ..

    Nice post here on Mibuso about this issue. Journal batch names post http://forum.mibuso.com/discussion/44485/journal-batch-names Dynamics NAV with Power BI

    Saturday, March 18, 2017 Dynamics NAV with Power BI

    I spoke recently of using NAV with Power BI, currently this topic (NAV integration with Power BI) is current and widely discussed, many questions about “How-to” integrate new and old releases on NAV with Power BI. I have collected a series of posts videos on Power BI and about integration with NAV (the most interesting that I fond).

    MICROSOFT POWER BI

    Best Definition by Microsoft: “Microsoft Power BI is a Microsoft’s Business Analytics service for Visualizing, exploring and derivinginsights from data!”

    Power BI Portal

    https://powerbi.microsoft.com

    Power BI Features

    https://powerbi.microsoft.com/it-it/features/

    “HOW-TO “GET STARTED

    Get Started

    https://powerbi.microsoft.com/it-it/documentation/powerbi-service-get-started/

    https://powerbi.microsoft.com/it-it/get-started/

    Power BI Free ebook

    362 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) https://robertostefanettinavblog.com/2016/06/18/introducing-microsoft-power-bi-free- ebook-from-sqlbi/

    Power BI Developer https://powerbi.microsoft.com/it-it/documentation/powerbi-developer-overview-of-power- bi-rest-api/ https://powerbi.microsoft.com/it-it/get-started/

    Nice series of pages about power BI on EID Site (NAVlab Partner) http://www.eid.it/microsoft-powerbi/

    ABOUT DYNAMICS NAV CONTENT PACK & CONNECTOR

    Power BI Integration https://robertostefanettinavblog.com/2016/03/15/power-bi-integration-microsoft-dynamics- nav-microsoft-power-bi/ https://powerbi.microsoft.com/en-us/integrations/microsoft-dynamics-nav/

    Microsoft Dynamics NAV with PowerBI.com https://suvidhablogpost.wordpress.com/2015/10/13/microsoft-dynamics-nav-with- powerbi-com/

    Dynamics NAV Content Pack https://powerbi.microsoft.com/it-it/documentation/powerbi-content-pack-microsoft- dynamics-nav/ https://robertostefanettinavblog.com/2016/02/04/connecting-dynamics-nav-20132015-to- the-nav-content-pack-in-powerbi-com/

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 363 Microsoft Dynamics NAV and Power BI (with O365) – Schedule Report Refresh

    https://suvidhablogpost.wordpress.com/2014/12/09/microsoft-dynamics-nav-and-power- bi-better-together/

    BEST CONNECTORS FOR DYNAMICS USERS

    BEST VIDEOS

    Power BI Desktop for Beginners: Create your first Power BI report and dashboard in 10 minutes

    https://www.youtube.com/watch?v=h6AIAxMEDiw

    Webinar Basics of Power BI for NAV users

    https://www.youtube.com/watch?v=v9VIfrXwAfo

    Power BI and Microsoft Dynamics NAV by Steven Renders

    https://www.youtube.com/watch?v=u_nWPvBkU9w

    Power BI and Microsoft Dynamics NAV 2016

    https://www.youtube.com/watch?v=Qbx0FdlZDBk

    Enjoy!

    364 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) New Book availabe: “Building ERP Solutions with Microsoft...

    Friday, March 24, 2017 Hi Guys, a new book is available: “Building ERP Solutions with Microsoft Dynamics NAV”, by Stefano Demiliani (Author) and Duilio Tacconi (Reviewer) .

    … I spoke yesterday with these 2 guys (my colleagues and friends) during a workshop about “ New Modern Development Experience“, i didn’t know that today would be released the book .. i thought later… but today Amazon quickly provided me a copy (ebook) for review, i will read in next days….

    About This Book

    • Integrate NAV with various offerings of the Microsoft stack to create enterprise- ready and service-oriented solutions • Use Power BI and Universal Windows Platform for effective data analysis and real- time tracking with NAV • Discover the services offered by Microsoft Azure and implement them in different industries using real-world case scenarios This Book is for

    “This book is for NAV developers and solution architects who need to implement real- world enterprise solutions based on Microsoft Dynamics NAV. Knowledge of the NAV programming language (C/AL) and C# language is recommended. Knowledge of ASP.NET and Visual Studio development would help, but is not necessary.”.

    You can find this book on:

    Amazon http://amzn.to/2kANTZU

    PacktPub https://www.packtpub.com/application-development/building-erp-solutions-microsoft- dynamics-nav

    Fast first look: for now it seems very interesting, some nice topics (that were not included before in other books) are exposed, i recommend it.

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 365 Have a nice reading ! NAV Development Tools Preview – March Update

    Tuesday, March 28, 2017 Best News on March Update

    About In-Client Designer

    You can now reorder columns with a simple drag and drop, and you can hide or show columns. Try it out on any page with columns, such as worksheets, sales documents, or lists.

    About Reports

    Report application objects join the list of supported objects! Create reports using new syntax and include them in your extensions.

    • Reports do support both Word and RDLC layout. • Layouts are now saved as external files. About Dependency

    You may define a dependency on another extension by listing it in the app.json configuration file.

    About Bub Fixing

    https://github.com/Microsoft/AL/issues

    New Azure Image

    You can find updated Image here: http://aka.ms/navdeveloperpreview

    366 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) Source: NAV Development Tools Preview – March Update – Dynamics NAV Team Blog

    Old Source: https://blogs.msdn.microsoft.com/nav/2016/12/20/announcing-the-preview- of-development-tools-for-dynamics-nav/ How to restart a job in “Error” or “F...

    Sunday, April 02, 2017 Sometimes can happen that some recursively scheduled jobs can go wrong or get stuck, you can re-enable them automatically and after consult the log to see errors; it is not a perfect solution but sometimes the error can be a simple error ex: “another user has modified..” etc. This function could be useful for NAV versions up to 2016, NAV 2017 has an improved management and a robust task scheduling system.

    Samples of Jobs in “Error” or “Frozen Completed State”

    Before Execution

    After Execution

    The Simple Solution

    The solution is based on a codeunit that takes care of reactivating the jobs in the state “error” or “completed”, it can be changed according to the needs.

    It can be scheduled:

    • Directly into the NAS (in the same or other NAS instances) • On Windows Task Scheduler with codeunit invoked by Powershell Fields Added on Table “Job Queue Entry”

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 367 Codeunit 50000 “ChangeJobsStatus”

    CODE

    OnRun()

    ChangeJobStatus;

    ChangeJobStatus()

    Documentation()

    “Restart Job” IF in errorin processfinished state

    OnRun()

    IF ChangeJobStatus() = TRUE THEN

    MESSAGE(‘Jobs Status Changed!’)

    ELSE

    MESSAGE(‘Nothing Changed!’)

    LOCAL ChangeJobStatus() JobStatusChanged : Boolean

    //”Restart Job” IF in errorin processfinished state

    JobStatusChanged := FALSE;

    recJobQEntry.RESET;

    IF recJobQEntry.FINDSET THEN

    REPEAT

    CASE recJobQEntry.Status OF

    //*** STATE: IN PROCESS

    recJobQEntry.Status::”In Process”:

    BEGIN

    recJobQLogEntry.RESET;

    368 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) recJobQLogEntry.SETRANGE(“Object Type to Run”,recJobQEntry.”Object Type to Run”); //Check Run.Time recJobQLogEntry.SETRANGE(“Object ID to Run”,recJobQEntry.”Object ID to Run”);

    //Check Duration Process Max

    IF recJobQEntry.”Duration Process Max” > 0 THEN

    IF recJobQLogEntry.FINDLAST THEN

    IF CURRENTDATETIME – recJobQLogEntry.”Start Date/Time” > recJobQEntry.”Duration Process Max” THEN BEGIN //CHECK MAX DURATION TIME recJobQEntry.Status := recJobQEntry.Status::Ready; // –> SET STATUS TO READY recJobQEntry.MODIFY(FALSE);

    JobStatusChanged := TRUE;

    END

    END;

    //*** STATE: ERROR OR FINISHED recJobQEntry.Status::Error, recJobQEntry.Status::Finished: //IF “ERROR” OR “FINISHED”

    BEGIN recJobQEntry.Status := recJobQEntry.Status::Ready; // –> SET STATUS TO READY recJobQEntry.MODIFY(FALSE);

    JobStatusChanged := TRUE;

    END;

    END; //END CASE

    COMMIT;

    UNTIL recJobQEntry.NEXT = 0;

    EXIT(JobStatusChanged);

    Download from MSDN https://gallery.technet.microsoft.com/How-to-restart-a-job-in- 8aca5516

    About Scheduling

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 369 1) With NAV Codeunit scheduled by NAS

    image020 image021

    After Execution

    2) With NAV Codeunit invoked by Powershell and scheduled by Windows Task Scheduler

    Import-Module ‘C:Program FilesMicrosoft Dynamics NAV100ServiceMicrosoft.Dynamics.Nav.Management.dll’

    Invoke-NAVCodeunit dynamicsnav100 -CodeunitId 50000 -CompanyName ‘CRONUS Italia S.p.A.’

    image022 image023

    To Schedule Powershell Script by Windows Task Scheduler

    An easy way to schedule a PowerShell script is, to use Windows Task Scheduler, look at this post:

    Coffee Break: Proactive Monitoring with Task Scheduler

    https://blogs.msdn.microsoft.com/nav/2016/01/19/coffee-break-proactive-monitoring-with- task-scheduler/

    My Old Post about NAV 2017 Task Scheduler

    370 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) https://robertostefanettinavblog.com/2016/11/04/nav-2017-task-scheduler/ “Ideas” for Microsoft Dynamics 365 for Financials

    Sunday, April 02, 2017 “Help us to improve Microsoft Dynamics 365 and its family of products and solutions by discussing ideas, providing suggestions, and giving feedback. Use the forums listed below for the respective areas.”: This is Dynamics 365 Ideas !

    Home site Dynamics 365 Ideas https://ideas.dynamics.com/

    A new section of this forum is available: “ Ideas for Microsoft Dynamics 365 for Financials” https://ideas.dynamics.com/ideas/dynamics-financials

    others useful sections

    Posting Guidelines https://ideas.dynamics.com/posting-guidelines/

    Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 371 FAQ-Frequently Asked Questions https://ideas.dynamics.com/faq/

    …ideas and suggestions are welcome !

    372 Roberto Stefanetti, My Dynamics NAV MVP Blog #1 (2015-2017) 373 0103482340 Non-customer created content © XanEdu and its licensors. All rights reserved by their respective parties. Patents pending POWERED BY for the XanEdu technology. NOT FOR RESALE. For personal, noncommercial use only. LIABILITY LIMITED TO COST OF PRODUCT. LOG o BLOG blog blogBlog

    log blog b blogBlo g blog Blog Blog Bl blogblog

    log BLOG

    b blog

    Roberto Stefanetti NAV Blog. My MVP Book #1 More than #5 Millions of pageviews. blog

    BLOG blog log

    b Blog BLOG

    blog Blog blog blog

    log BLOG BLOG

    b blog BLOG