Quantcast
Channel: Microsoft Dynamics NAV
Viewing all 64865 articles
Browse latest View live

Blog Post: Surrogate Keys – what you can and what not?

$
0
0
In Wave 2 Microsoft introduced Surrogate Keys . What does it mean? When you create a new table one additional field will be created even if you do not have it in the fields. It is the SystemId field. For tests, I created a table with just two fields. But if you will try to check what fields are in the table you will see that there is new field type GUID added automatically. Also, the new key has been added to the SQL which is named SystemId . What you can do and what not? On this blog https://www.waldo.be/2019/09/20/the-systemid-in-microsoft-dynamics-365-business-central-2019-release-wave-2/ , Waldo explains very well what you get with the SystemId field.  I will try to extend this list with some can and cannot dos and some examples. Insert, Modify and Rename You can assign your own SystemId to the record when insert – as Waldo wrote you need to have two parameters. In this example, my record gets the same SystemId as the Customer record. However, you cannot modify it later. Which is of course the way how it should work. Remember that the record gets the SystemId only once. Even if you will rename the record it will stay the same. You can test it with a simple code below. Get Record By SystemId We all used to function Get() . With unchanged value in the SystemId , you can easily get that record without knowing the primary key. There is a new method which is called GetBySystemId() . It, the same as Get() returns the record but instead of primary hey you need to specify in the parameter the SystemId which you are looking. It gives a lot of possibilities to simplify code in some cases. Add SystemId to Page and Page type API This field is primarily used in the API as the Id (this is why it replaced previous Id fields which you could find across the database). SystemId field you can add to the API pages but when you will try to show it on the standard page you will get an error. Create Temporary Record with TransferFields If you want to create a temporary record with function TransferFields you will do not have value in SystemId (I know it is not the “best practice” way but I know it happens sometimes). However, if you would assign the Rec to the Temporary Record the SystemId will not be null. Using SystemId with RecordRef and FieldRef When you would like to use the value of the fields with RecordRef and FieldRef you need to know the field number. The number of SystemId field is 2 000 000 000 but you do not need to know that. Microsoft added a new method to RecordRef which is called SystemIdNo() and it returns the SystemId field number. Where you can find SystemId in Base Application? At this moment there are two major places where you can find the SystemId in use. One I already mentioned – it replaced the fields Id which you could find. Each such place is commented. More useful is the second place where you can find the SystemId. In the Purchase and Sales posted documents (so far Posted Sales Invoice, Posted Sales Cr. Memo and Posted Purchase Invoice) there is a new field Draft Invoice SystemId (or Draft Cr. Memo SystemId ). During posting it gets value from the Sales Header document which was used for posting (so for example Sales Order or Sales Invoice). You can use it when you want to check what are the documents which were created from the exact Order or Invoice document or if the sales document still exists. Examples All examples for this post you can find on GitHub https://github.com/mynavblog/Examples/tree/master/SurrogateKeys .

Forum Post: RE: Excel Export not working correctly in NAV 2018

$
0
0
Is there any update on this issue? My customer (NAV 2018 CU5) are also experiencing that Excel export automatically fills empty cells with value from previous row. But only on one computer with Office 365 installed get the issue when using the "Send to Excel" function. If the user manually copy/paste the lines to Excel, there is no issue. Other computers with older Office versions do not have this issue. My own computer with Office 365 does not have this issue. (Running the same ClickOnce package as my customer, on my computer with Office 365 works just fine!) Reginal settings is ok and office is fully updated. Found some articles that describes the same issues, but with no replies. Regards Tom Erik

Forum Post: RE: Excel Export Error: Store must be open for this operation

$
0
0
I have the same mistake on nav 2015 in report 322. but only when a report is run by a client installed on a user's computer if I launch the report from the server is successful help me pls

Forum Post: RE: Excel Export Error: Store must be open for this operation

$
0
0
and I have checked & found the following.......... 1. OperationTimeout : MaxValue 2. MaxUploadSize : 300MB

Forum Post: RE: Odata REST Web Services - Not able to Delete Sales Order

$
0
0
"DELETE http://{{ipandport}}/{{servicename}}/ODataV4/Company('{{companyname}}')/SalesOrder('Order','SO-2708422')" this is not working. Error: { "error": { "code": "BadRequest_ResourceNotFound", "message": "Resource not found for the segment 'SalesOrder'." } } Says resource not available. But when I do GET - "SalesOrder?$filter=No eq 'SO-2078422'" I get the correct response.

Blog Post: Cumulative Updates for Microsoft Dynamics NAV 2015/2016/2017/2018 & BC Released in Dec 2019

$
0
0
Update for Microsoft Dynamics 365 Business Central 2019 Release Wave 2 For Dec 2019, yet not released. Will be updated on release. Cumulative Update 07 for Microsoft Dynamics 365 Business Central April’19 on-premises on-premises (Application Build 14.8.38658, Platform Build 14.8.38650) This article applies to Microsoft Dynamics 365 Business Central Spring 2019 Update (on-premises deployments) for […]

Blog Post: How To Use Configuration Mode in Dynamics NAV

$
0
0
You maybe know how to assign different Role Centers to Users by using User Personalization by assign users to specific profiles like “Accounting Manager”. But Sometimes we need to make changes to a particular user like adding certain pages to the Role Center. But this will sound hard work if we go to the development environment, therefore we can achieve this through configuration mode. Configuration mode is a setting in Microsoft Dynamics NAV that allows customizing the user interface for a specific role. So we can do the following: By using Command Prompt or Windows Explorer from the address bar in a browser or from the  Run  window with the same options you can do the following: Example: C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe -Configure -Profile:”Accounting Manager” – Configure Starts the Microsoft Dynamics NAV Windows client in configuration mode. You use a configuration mode to configure a profile. To specify which profile to configure, add the -profile  parameter. This command starts the Microsoft Dynamics NAV Windows client in configuration mode for editing the Accounting Manager profile. For more information

Blog Post: Upgrading from Microsoft Dynamics NAV to Business Central: Moving Data

$
0
0
Upgrading from Microsoft Dynamics NAV to Business Central: Question #4 – Is Moving My Data Going to Be Painful? We love Microsoft Dynamics NAV here at ArcherPoint, but we also love what we’re seeing in Business Central and strongly urge our customers to plan for an upgrade as soon as your schedule and budget permit. But there are so many questions and frankly, a lot of misinformation out there about moving from NAV to Business Central, and we have already had significant experience with these upgrades, so we created a blog series and an eBook to help you navigate through the noise. We answer the most frequently asked questions we hear from our customers so you can be confident in your decisions regarding when, why, and how you should upgrade. Read the first three blogs in this series: Upgrading from Microsoft Dynamics NAV to Business Central: What Will It Look Like? Upgrading from Microsoft Dynamics NAV to Business Central: What are Events and Extensions? Upgrading from Microsoft Dynamics NAV to Business Central: What About My Add-Ons? Question #4: What About My Data? Is It Going to Be a Painful Process to Move It? This is definitely a legitimate concern. Your data is your gold, and you don’t want to lose it or be put into a position where it’s difficult to get to it. The short answer is, all data and history can move forward; you do not have to worry about losing it. However, your partner does not have to move everything over if you don’t need it…that’s up to you. What about the data stored in add-ons? As discussed in the previous section, not all ISVs are ready with their add-ons, including a data migration tool. As of the writing of this eBook, Microsoft is allowing the modification of base objects for now for that reason, but this will not be the case forever. Talk to your upgrade partner about the best path. This is a good question. Unfortunately, there is no clear answer. The time it takes depends on many things, including company size, database size, and customizations. In general, however, this is what you can expect: 1-2 months for your partner to convert your database and create/deliver a test database 2 months minimum for testing 2 days (usually over a weekend) for go-live Keep in mind that this does not include what’s going on at your end, like upgrading hardware and getting other infrastructure in place. Your partner should work with you on your “to-do” list to help keep you on track, but they can only give you guidance; you need to commit the time and resources to execute on your end. IMPORTANT NOTE: With the introduction of Eventing and Extensions, Microsoft has radically changed how upgrades will look after your initial move to BC—on premises or SaaS. Testing and turnaround will be significantly faster and less disruptive. We like to say this: “Once you are 100% Evented, future upgrades will be a ‘non-event.’” We strongly encourage you to look to your Dynamics upgrade partner for help with deciding on your path to upgrading from NAV to BC. There are many considerations, but if you have a partner who understands the upgrade process and work closely with them on where you are now and where you want to be, the upgrade does not have to be painful. Also, talk to us about upgrade subscription from ArcherPoint. This takes the burden off your shoulders and puts it into the hands of the experts. In the next blog in this series, we’ll discuss how long you should expect your upgrade to take. To learn more answers to your upgrade questions, download this free eBook, Upgrading from Microsoft Dynamics NAV to Business Central: Everything You Always Wanted to Know…but Didn’t Know to Ask . Blog Tags: Upgrades Upgrading Business Central Dynamics 365 Dynamics NAV NAV Insights's blog Log in or register to post comments

Blog Post: Navigating Power BI for More Effective Reporting

$
0
0
Power BI is a business analytics solution that helps you visualize data from multiple sources to provide insights to your organization to facilitate decision making. Power BI comes in different shapes and sizes, from the free Power BI Desktop version that allows you to build reports from most populate data sources and share them locally, to Power BI Pro which includes features to share reports and... Source

Blog Post: 5 Things That Are Overlooked In An ERP Upgrade Project

$
0
0
We want your upgrade path to take the smoothest route. But before jumping head first into a project, here are a few things that must be considered before starting your upgrade. One issue that frequently occurs when installing a new version of the ERP software is a realization by IT teams that there are new hardware requirements for the application server. We always recommend involving your... Source

Forum Post: RE: 51 Purchase Invoice, trying to print dimension values for each line in the grid

$
0
0
Hi Teddy, thank you for the reply, is there any way you could provide example c/al code? I'm trying to iterate through each Purchase Line for Purchase Invoices and print each value for all dimensions per line. thank you so much

Forum Post: RE: Odata REST Web Services - Not able to Delete Sales Order

$
0
0
I think the SO number was typo, resource not found means the SO Number does not exist . Try below : DELETE http://{{ipandport}}/{{servicename}}/ODataV4/Company('{{companyname}}')/SalesOrder('Order','SO-2078422') You will get response 204 " No Content" when it is successfully deleted

Forum Post: RE: 51 Purchase Invoice, trying to print dimension values for each line in the grid

$
0
0
Where do you want to print the dimension ? A factbox or a report.

Blog Post: How SQL Profiler can save your day by Identifying Lengthy Processes in Microsoft Dynamics NAV / Business Central

$
0
0
Problem Statement: While building customization for Microsoft Dynamics NAV / Business Central ERP, at times the customization is so heavy that we as developers do not realize how much load we put on the SQL Database which the backbone of the system. One example of this situation is, I had built a system that can create a Cash Receipt during accepting Payment in terms of Cash from the Customer by temporary passing an entry through the Cash Receipt Journal. There was also a Payment Application code that applied(reconciled) the Payments and the Invoices of the Customer that ran posting of any financial entry concerning that specific Customer. During this attempt of creating Cash Receipt, the posting would block the Customer, Customer Ledger Entries and G/L Entries Tables which was as per design. And it wouldn't allow anyone to make an entry during this period and it would take approximately 20-30 seconds. To get out of the Deadlock, I was forced to restart the NAV Server Instance through Power Shell. Introduction: In this blog, I will mention how SQL Profiler helped me realize that the Cash Receipt Posting was taking way more resources than expected. There was no metric to even judge what was going on and which query tool precisely how much amount of time to execute. This also helped me change the process to follow to post Customer Cash Receipts. Pre-requisites: Microsoft Dynamics NAV / Business Central On-Premise Microsoft SQL Server Management Studio Microsoft SQL Server Understanding of SQL Profiler Books & References: https://docs.microsoft.com/en-us/sql/tools/sql-server-profiler/sql-server-profiler?view=sql-server-ver15 Demonstration: 1. Open NAV on one side of the screen: Goto Sessions in NAV search, select the session you want to use SQL Profiler and Start Full SQL Tracing. NAV Sessions - Enable Full SQL Tracing 2. Open SQL Profiler on the other side of the screen: Goto SQL Server Management Studio > Tools > SQL Profiler SQL Server Profiler SQL Server Profiler - Login Trace Properties - General Check “ShowPlan XML” under Performance Counter. Trace Properties - Event Selection - Showplan XML Check “SP:StmtCompleted” Completed under Store Procedures. Trace Properties - Event Selection - SP:StmtCompleted Check all the options under “Locks” Trace Properties - Event Selection - Locks 3. Run the processes in NAV so the effective background SQL Query Execution can be tracked in SQL Server Profiler: Trace SQL - SQL Profiler 4. Tracking which function or line of code is taking the maximum time.: In this case, check the transaction with a maximum duration Trace SQL - SQL Profiler - Showplan XML - Exec After finding the Query taking long time to run, you can check the corresponding CallStack in C/AL or AL. Trace SQL - SQL Profiler - NAV Code - Exec Thus, using this method, you should be able to trace your NAV execution issues. Conclusion: Thus, to conclude, I had no idea about how SQL Profiler worked. With the help of a friend from Microsoft Support (Mr. Aananth Rajadevan - https://www.linkedin.com/in/aananth-rajadevan-a342265a/ ). I learned what all components are present in SQL Profiler and how to monitor what is going on and find the correct C/AL Code and rectify it.

Blog Post: With a strong dashboard to the right company decision

$
0
0
In many companies it is still common practice to prepare data for visualizations with Excel. But Excel dashboards are usually unnecessarily complex and also visually unattractive and unconvincing. Although it takes just a few steps and the right solution to analyze data quickly and easily and gain profitable insights. Ideally, dashboards should not just be inflexible charts and graphs, that should present the most important data on the respective topic and problem area in a clear manner. In addition, the information and analysis results should be able to be shared quickly and other users should be involved with interactive visualizations to gain insights and make decisions. With the right analysis tool a visually compelling dashboard that covers all the important requirements can be created in a few simple steps. In addition to identify the necessary key figures and develop an appealing layout, comprehensibility and interaction with the users also play a decisive role. The right key figures from the right sources The first step is to identify all relevant – and only the relevant – key figures that are required for the dashboard. It should be ensured that these are obtained from reliable sources and easily recognizable and comprehensible to the user (e.g. changes in sales). Organization is everything The selected key figures should then be organized in a way the dashboard can answer potential user questions. For this purpose, for example, related measured values can also be grouped. The right visual arrangement of the key figures plays a role as well. For example, a screen is usually read from top left to bottom right. So ideally, the most important key figures should be placed in the upper left corner. A grid layout can also provide even distances and a better overview. In general, user-friendly and easy understandable visualizations should be used to avoid a distraction from the actual statement of the data. The use of colors can also provide a better understanding. Appealing Dashboard in Qlik Sense (Source: Qlik) In order to an improved understanding and evaluating of the analyzed data , company goals and developments should also be clarified by means of comparisons and trends. How was the turnover compared to the previous month, for example? Were there more visitors this year than last year? Marked indicators should also be used to draw attention to areas where action may be needed. Interactive integration of users When examining data, the user should always be given the opportunity to interact with the data independently and explore it as deeply as possible. For example, specific filters or drilldown options can be installed to view the data from different angles or in a focused way. Therefore, only a few simple steps are required to make efficient analyses and integrate other users interactively. A powerful and dynamic data analysis solution such as Qlik Sense can provide optimal support. Want to create compelling dashboards with Qlik solutions? Contact us!

Blog Post: Webinar Video and Q&A: Developing with JavaScript for Dynamics 365 BC

$
0
0
Thank you for attending our webinar: Developing with JavaScript for Dynamics 365 BC . The webinar overviewed these practices and steps: 1. Adding control add-in Add control add-in to the page and set up the necessary setup. 2. Invoking events JavaScript lets us modify Dynamics 365 Business Central page – modify the page to create on load event – message. 3. Factbox control add-in Create a factbox-control add-in page in order to add it to any page. 4. Embedding customer‘s Home page to FactBox Improve our add-in with the customer’s home page. This shows how to transfer information from NAV to Javascript. 5. Managing add-in with NAV actions Not wanting to load the page on every customer? Let’s create an action for loading it. 6. Managing add-in with Javascript Buttons Let’s go even further – auto-create buttons in control add-in to load our webpage. This part shows how to create buttons to communicate back to Navision. The post Webinar Video and Q&A: Developing with JavaScript for Dynamics 365 BC appeared first on Simplanova .

Forum Post: Permission error while adding custom extension

$
0
0
Hi, I have written some code for business central application on sandbox environment. When i want to upload extension to production environment by going to setup & extensions -> extensions i am getting following error My user has SUPER and D365 EXTENSION MGT permission set. Thanks,

Blog Post: Cumulative updates Dynamics Business Central y NAV [Diciembre 2019]

$
0
0
Hola Como es habitual en el ciclo de vida de Business Central y NAV, Microsoft ha publicado a principios de este mes las nuevas cumulatives updates para NAV y Business Central. A continuación os dejo los enlaces de descarga. Cumulative Update 07 for Microsoft Dynamics 365 Business Central April’19 on-premises (Application Build 14.8.38658, Platform Build 14.8.38650) Cumulative Update 14 for Microsoft Dynamics 365 Business Central October’18 on-premises (Application Build 38692, Platform Build 38637) Cumulative Update 24 for Microsoft Dynamics NAV 2018 (Build 38590) Cumulative Update 37 for Microsoft Dynamics NAV 2017 (Build 30102) Cumulative Update 50 for Microsoft Dynamics NAV 2016 (Build 51685) Cumulative Update 62 for Microsoft Dynamics NAV 2015 (Build 51683) Saludos

Blog Post: How to integrate Business Central with Dynamics 365 Talent – part 2 (configure BC & Talent)

$
0
0
If you’ve already read my previous article about introduction in BC and Talent integration , then you probably expect the next part. I cannot put everything in one blogpost as it will be a huge one and it can be confused to track all details, so I decided to write it in parts. Today, I’ll write how to prepare Business Central and Talent and how to locate data/entities you will handle with. As I’ve already mentioned in previous post, as we don’t need all HR capabilities in Business Central and we will use all of them in Talent, we will enter data directly to Talent and move to BC only data necessary for other areas in BC. We will move data to Employee table as this table will be used in other parts of BC. As we will create new employees in Talent, we need to configure No. Series to be fit with Talent requirements. If you want automatic numbers, you need to be careful and to make it exactly the same as in Talent, but I’ll recommend to configure Employee number series as Manual Nos.; this will keep the same numbers in Business Central as we have in Talent and you will avoid all potential risks. As connectors with Business Central, we will use API’s. Employee table, for example already exists as an API, but if you would like to connect something more, you will probably have to create custom API and custom connector. What we can synchronize? As I said, minimum we need in BC is Employee table. And you need to find entity as a source in CDS (I’ll explain later). You can connect entities as following: Business Central Talent / CDS BC API Employee Worker … employee Alternative Address Worker Address custom Qualification Skill Type custom … … If you want to find all details about Workers data in Talent, the best is to use the following Worker entity relationship model. But the best is to integrate only what is really necessary… only what you will really use in Business Central. As we need to locate Talent entities, you need to open list of CDS entities in PowerApps platform (you don’t need to do nothing in Talent environment and you can use it only if it will help you to better understand environment; for all integration purpose you will use CDS – PowerApp). When you open PowerApps web page, you need to choose environment created for Talent. After that, you need to open Data and Find Entities. In Entities, you can easily find Worker entity as this is a place where we can find our information. Opening this entity, you can address all necessary fields you want to use in integration. And how to do it, you will see in the following post.

Forum Post: RE: 51 Purchase Invoice, trying to print dimension values for each line in the grid

$
0
0
Hello Manish, I added an action button to the Purchase Invoices Page and in that method I just want a MESSAGE method, so this isn't C/AL code but something like do { MESSAGE('print here') } while () I am sorry, I don't have much experience in C/AL coding, but I know C#. I'm trying to get the line item dimensions for Purchase Line and iterate through all dimensions for all lines. thank you so much
Viewing all 64865 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>