What version of NAV do you have? Why do you only need the two characters? and Where do you only need the two characters? The better question and explaination you do.. the better and more correct answer you will get..... You have been around here for quite a while, and also asked a lot of questions, which is fine.. But in many of the quesitons, the very first comment is What version do you have? So you should have figured out by now, that that kind of information is "mandatory" in order to get the best possible answer.
↧
Forum Post: RE: How can I select two letters/ string from the No. series
↧
Forum Post: RE: How can I select two letters/ string from the No. series
Microsoft Dynamics NAV 2018. I has a page for PV. I generated some fields from a Imprest page into PV page, In the PV page there is post button and at the end of my post code, CODEUNIT.RUN(CODEUNIT::"Gen. Jnl.-Post",GenJnLine); GLEntry.RESET; GLEntry.SETRANGE(GLEntry."Document No.",PV."No."); GLEntry.SETRANGE(GLEntry.Reversed,FALSE); IF GLEntry.FINDFIRST THEN BEGIN PV.Posted:=TRUE; PV."Posted By":=USERID; PV."Posted Date":=TODAY; PV."Time Posted":=TIME; PV.MODIFY; // Journal Batch No / Document No. = CA-0000001,IM-0000001,PR-0000001,TR-0000001 //I wanted to validate and take the imprest to surrender i wanted to validate Journal Batch No. or Document No. to check from it is the real PV or Imprest so that it will take the imprest to surrender page.
↧
↧
Forum Post: RE: How can I select two letters/ string from the No. series
ImprestHeader.Type = ImprestHeader. Type::Surrender; I need to set some condition Before PV. MODIFY;
↧
Forum Post: RE: How can I select two letters/ string from the No. series
Hello, Check this link. https://docs.microsoft.com/en-us/dynamics-nav/copystr-function--code--text- best regards, Thomas Barbut
↧
Forum Post: RE: How can I select two letters/ string from the No. series
Thank you, have gotten it CA= COPYSTR(GenJnLine."Document No.",1,2) OR IM =COPYSTR(GenJnLine."Document No.",1,2) OR PR= COPYSTR(GenJnLine."Document No.",1,2) OR TR = COPYSTR(GenJnLine."Document No.",1,2) but real PV No. = PV-0000001. What i want to achieve is that before PV. MODIFY; I wanted to a add check code that will be reading CA= COPYSTR(GenJnLine."Document No.",1,2) OR IM =COPYSTR(GenJnLine."Document No.",1,2) OR PR=COPYSTR(GenJnLine."Document No.",1,2) OR TR = COPYSTR(GenJnLine."Document No.",1,2) and assign ImprestHeader.Type =ImprestHeader.Type::Surrender; Thanks
↧
↧
Forum Post: RE: I want to run codeunit function on the basis of users selection.
It really depends on what you need to do with this. As said already, then it's not possible to configure function names in codeunits dynamically. What you need to do, is to "clean-up" your code, so that you end up with only having one "public" function in your codeunits, and to have them called directly from the onRun trigger. This way you only need to call the codeunit with the number and associated record. And that's possible! And since you have been around here on DUG for some time, then you would also know that you should always write which version of NAV/BC your question about. And here it's important. If you have one of the newer version (after NAV 2016), then take a look at how they have made the Data Exchange definitions. Here they entirely are based on you setting it up by specifying which codeunit number that does what.
↧
Forum Post: RE: GRN block
[quote userid="194137" url="~/nav/f/developers/95765/grn-block/499655"]use Eventpublisher "OnBeforePostPurchaseDoc"[/quote] Which is a great suggestion, except we don't know if that option is available,as Yuneek Singh didn't tell us which version his question was about.
↧
Blog Post: Microsoft Dynamics 365 Business Central is released @ Directions NA
Your first reaction is probably – duh, I know! Well – I’m late, that’s true. At Directions North America , Microsoft announced the availability of the new version of Business Central – and I didn’t spend one single post on it. Until now. Reason is simple – I was quite busy at the conference, and I didn’t want to lose too much time on writing. I need to spend 14 hours in a plane anyway – which I’m doing at this point. Greetings from the sky! Directions North America This was by far the best Directions NA to date. Not only thanks to the content, but the organization and the location was magnificent. Not too far from the airport, nor the city. Great hotel, great venue, great food. On top of that, great speakers, great content in an abundance of interesting sessions. I am so much looking forward to the next conference, which will this time be in May next year (Las Vegas) – when the next release of Business Central will be release (oh yes – we will have a 6-months cadence going forward – read on if you want to know more…). This means that from now on, Directions NA will be in spring, while Directions EMEA will be in fall. We will not be able to speak about “conference season” anymore – as that’s going to be all year :-). Disclaimer I was honored to do some sessions and workshops this year, as I already mentioned in a previous post . Usually, that means I spend a lot of time in the hotel room or speaker room to prepare. This year, I wanted to catch as much content as at all possible. During most of them, just listening with one ear to the content, and the other was mostly unavailable, because I was preparing for my own sessions as well. This means: no notes whatsoever. So I’ll have to draft this blogpost from memory. Now – my family say that my memory doesn’t go further than 24 hours, so I can’t promise any valuable or truthful information going forward ….. how is that for a disclaimer ;-). Microsoft Dynamics 365 Business Central Released: On Premise and in the Cloud Starting October 1st, we have the official release of the new version of Microsoft Dynamics NAV, which is now called Microsoft Dynamics 365 Business Central. Both On Premise as in the Cloud . So, yes, now we can download DVDs ;-). The pillars that Microsoft has been working on are Modern Unified Intelligent Adaptable Let me go over the stuff that I have found very interesting during these days. Again: I didn’t catch it all, that was simply not possible, but I might write a follow-up post with resources on where you can catch it all! I might – but don’t wait for me – there always is google ;-). ModernUI One of the most noticeable new features it the new UI for the Web Client: you can basically now work with the Web Client as if it was a newspaper. I personally very much like the web client as it is now. It is much more efficient and certainly has a very modern taste to it. This Modern UI is now all over: Phone, Web, Tablet and the Universal client. Not the Windows Client, though… But you all know what that means (later more about that…). New features were introduced, like: Headlines – a way to have rotating text on the role center, with interesting information, and links to details to this interesting information. More intuitive buttons on the different page-types, like the “back” button, Next/Previous record, Toggle Read/Write, … . They used even telemetry to introduce a better order of the actions . Lots of keyboarding shortcuts have been introduced. Just to name a few: F8 – oh yes, it’s back! (and there was even an applause when they showed it :-)) Shift+Down/Up to selects records CTRL+C to copy rows ALT+Q to end up in the heavily enhanced “search” feature ALT+F3 – Filter And quite a lot more. Here is a complete overview: https://aka.ms/bckeys Ability to paste content as records. As said, you can copy rows, and you can paste them as new rows, you can even paste records from excel . Filter Records : As you might remember, we were not able to decently filter records. Now we can! The full Monty! Filter on many fields, and even with a shortcut ALT+F3, which Opens the filter pane And already filters the field and value of the active field. Love it! And of course – yes – now we can use flowfilters again! A heavily enhanced search . You all know the “search page”. Well, this now finds so much more, and it is going to show the results somewhat more intelligent. It’s called now “ Tell me “.. and I love it! You can open de search with ALT+Q, and when performed a search, you can simply press “Down” and execute the requested action. First of all, they introduced a “fuzzy search”: if it sounds “kind of” the same, it might still find what you are looking for. Second, it is also going to look for any interesting documentation on Microsoft Docs It is also going to search Actions on a page . You know some pages have quite some actions. Starting to keyboard through them might take time. I’m using this myself from the minute I know it exists now – love it! Just ALT+Q, keyboard the action, down, enter: done! No mouse needed! Also somewhat related to “Modern UI” is the new PowerBI reports that are being made available. For Business Central in the cloud, Microsoft even auto-deploys PowerBI. We all have been struggling with it – so I appreciate this very much ;-). Intelligent Microsoft made it very clear: the power of the future is going to be in the data. For this release, Microsoft already added some more features in getting more out of the data, by introducing machine learning in different areas. From what I remember: a prediction in overdue invoices, with actions for you to be able to block the customer, or ask for a prepayment. The functionality takes all your payment information and puts it in an AI model, where it predicts future payments.. . This was an example of what Microsoft is doing, and will continue doing going forward. In the upcoming release, you may expect more “intelligence” on your data. Now, does this mean that all these services are only going to be available for the cloud-version? No! Microsoft is working towards something that is called “The intelligent cloud for On Premise (Intelligent Edge)” Here is an intro video: https://www.youtube.com/watch?v=rJA4PQogM0Q And the description on Microsoft Docs: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/about-intelligent-edge In the demo, they showed GP, which had this connector set up, and which was actually going to fill a Business Central (read only) tenant with the data from GP, resulting with all the goodies Business Central has: The role center The different clients (like the phone client) PowerBI reports Predictions … It actually used Business Central as a kind of data warehouse. I unfortunately didn’t have time to attend a breakout session on that, but I will sure do that during Directions EMEA to get more information about this. Admin Center Microsoft is improving the world of (CSP) partners as well, by building an “Admin Center” for them: a portal (which is already available) to control certain things about their customers, like: Setting up an upgrade-window that Microsoft will respect when pushing upgrades Providing telemetry for a lot of things Which extension are they using Which objects within the extension are used Failure messages And yes – all this is available through an API! The ability to set up a sandbox environment WITH production data , to be able to debug with relevant data. The question I have on this is how the partners of apps are going to get this telemetry – I think it would be very useful for them as well! From what I’ve seen – very interesting! AL Only One of the biggest things that was shown for me as a developer, was the very fact that Microsoft was able to completely convert their C/AL code to AL. In fact, the night before the second keynote, after two years of hard labor, the developers at Microsoft were able to do a successful conversion – and they were able to run a service with only AL objects, no C/AL whatsoever. Make no mistake: This.Is.Huge! But – don’t over-think it either, please. One might think that the move to extensions is not necessary anymore. Wrong! Yes, in theory, we would be able to do the same in AL as in C/AL: totally f.. up the database by customizing existing objects. Let’s not do that. Extensions solve your upgrade-problem. Move to extension, and make sure you are able to catch up with all these releases going forward. The general feeling that many people have regarding the evolution of Business Central is: it’s moving FAST. Well, that’s all the reason you need to make your product, and your customers as upgradable as at all possible. It’s more than time to move away from the old development and customization model. The ability to migrate C/AL to AL isn’t changing that paradigm at all! The only thing you need to get out of the “AL Only” model is the good news that in the very near future, we will actually be working with the awesome development environment we have been craving for years! And – if you would wonder how long it took to compile 5800 objects – 2 minutes :-). Are you still afraid of having so many objects in your app? Miscellaneous I’d like to end the “real” content with a few miscellaneous topics: Microsoft is going to heavily work on testability . They request testability for all our apps, and now they promised decent tools for us to execute it. Finally ;-). On top of that, Freddy is also very much working on improving the Docker experience, like: set up scripts for an easy CI/CD implementation Making the images smaller so they can be used on ACI (also to facilitate CI/CD scenarios) The version of the AL Language VSIX was always very dependable on the version you were developing for. Not anymore. The version online (on the marketplace) will be very regularly updated with the newest features, while it’s backwards compatible to the old versions. There was more to it – but this is what I remember The Ready To Go program Don’t worry, I’m not going too deep into the “Ready To Go Program”, because I already did . But do know that this program is still very active, and a great way for you to get going on all the new stuff. One thing that has changed recently is that the learning material has been made publicly available on youtube ! 6-month release-cycle Yes, you read the title well: from now on, it’s not going to be a yearly-release, but every 6 months, Microsoft will work towards a new (major) release. This is also the reason why Directions US has be moved to the Spring, so we will have Directions US around the spring release of Microsoft Dynamics 365 Business Central, and we will have Directions EMEA for the fall release. Roadmap Wow, you made it to the end ;-). Well, at least after this: As already said, Microsoft will invest in getting as much as possible out of the data that you have, so you can run your business as “intelligent” as possible. Going forward, in 12 to 24 months, we will only work with the Web Client as Microsoft will continue work on making the Web Client as efficient as at all possible. Last but not least, as already mentioned, Microsoft is already able to convert their app to AL, well – in 12 to 24 months, they will only ship AL (and do know, there is no conversion-tool planned from AL to C/AL ;-)). I can hardly wait ;-).
↧
Forum Post: RE: GRN block
its nav 2013.
↧
↧
Forum Post: Initialization of new container fails
I really love working with Docker containers. Before I usually took 1-2 hours to be able to test out a new version. Now I can get a new version up and running in 5-10 minutes (depending how much it needs to download first). But recently I have been having some issues. This is what it says is happening. Starting NAV Service Tier Using license file 'c:\run\my\license.flf' Import License Microsoft Dynamics 365 Business Central Server is currently not ready to serve requests. Try again later, or contact your system administrator. at , C:\Run\SetupLicense.ps1: line 29 at , C:\Run\navstart.ps1: line 126 at , C:\Run\start.ps1: line 107 at , : line 1 TimeGenerated : 10/5/2018 12:08:58 PM EntryType : Warning Message : Type: Microsoft.Dynamics.Nav.Types.NavServerNotFoundException The only thing that I have been able to figure out, is that it doesn't start the BC Server. It fails on loading the license, but because the service isn't running. I first had this issue a couple of months ago. Here I were able to "fix" it, by lowering the memory to 4GB. Tried to lower to 3GB, but the same issue. The thing is that it works with the RTM, but not with the insider builds. Did anyone see this issue or got a clue what it could be?
↧
Forum Post: RE: Unable to install package in Business central in production environment though it is successfully installed in sandbox environment.
Hi RedFox, Thanks for reply. By re-create you mean SchemaUpdte = Recreate ?? If yes then We try that option in sandbox environment but my old data gets deleted(new field that I have created in extension package) when I use that. So, I don't want recreate schemaupdate for Production environment. We are uploading extension from Extension management page directly. And, yes we just uninstall package and try to upload new package but no luck. Error is still coming.
↧
Forum Post: RE: Unable to install package in Business central in production environment though it is successfully installed in sandbox environment.
When you install a new version of an extension (with continuity of data desired) , then the process is: Publish new version Sync new version Upgrade (Start-NavAppDataUpgrade) to the new version [optional] Unpublish old version But this seems not to be the issue here! When publishing to a non-sandbox environment, then it's important that your update the version number of the extension, each time you publish a new app file. If you did update, and re-build after you changed the version in the app.json file (think that's what redfox means with recreate), then check if you have been using the same App ID for other apps. That could easily happen, if you create a new extension, by coping an existing app.json etc. and didn't assign it a new app id guid.
↧
Forum Post: RE: Unable to install package in Business central in production environment though it is successfully installed in sandbox environment.
Hi Dynatech. To be honest either I don't catch fully the source of issue or you did something wrong - you need to have for 1 version "version": "1.0.0. 0 " in the app.json and for second - "version": "1.0.0. 1 ". The "id": "639c466e-xxxxxxxxxx.." should be same. You no need to change something in the launch.json (include "schemaUpdateMode": "Synchronize"). You need to change version, then create new package (Ctrl+Shift+B) -> move package to new "place" and then import it into NAV (I delete old package usually before 1 action to be sure that I have last newrly created package). P.S. You may have issue with Data after import, but you need to create import-CU
↧
↧
Forum Post: RE: Unable to install package in Business central in production environment though it is successfully installed in sandbox environment.
Erik, Sorry, but could you advice me how to do step 3? Because I don't understand your steps? about [quote userid="2100" url="~/nav/f/developers/95789/unable-to-install-package-in-business-central-in-production-environment-though-it-is-successfully-installed-in-sandbox-environment/499743"]When publishing to a non-sandbox environment, then it's important that your update the version number of the extension[/quote] I did development without this procedure each day (for EU- and US-versions) and just change "schemaUpdateMode" from "Synchronize" to "Recreate" periodically.
↧
Forum Post: RE: GRN block
Erik P. Ernst rigth you are Yuneek Singh as Erik point out you cannot use a subscriber, you have to code/hook into codeunit 90
↧
Forum Post: RE: Unable to install package in Business central in production environment though it is successfully installed in sandbox environment.
There is difference in how you publish to a production or sandbox environment. When you work on your development with VSCode, then VSCode handles it for you, but only for this environment. The process above is for installing into "production". And Start-NavAppDataUpgrade is the powershell CmdLet you must use to upgrade your extension.
↧
Forum Post: Adding Field to posted sales invoice in dynamics 365 business central
I have created a new field in sales order and now i want that if i post "sales order" than the field i have created appear in posted sales invoice with data i have input. thank you
↧
↧
Forum Post: RE: Adding Field to posted sales invoice in dynamics 365 business central
Create same field with same ID and Type in posted sales invoice table. Cheers
↧
Forum Post: How to create Dimension sets id via web service API for Business Central ?
I'm doing a data integration and need to set or create the Dimension set id for GJL lines( multiple dimensions up to 7 ), if this possible using the API?.. trying different way but no success yet; anyone advise help or sample? , thank you very much, really appreciated. AL
↧
Forum Post: RE: Unable to install package in Business central in production environment though it is successfully installed in sandbox environment.
Thanks for information, but I never used this "Start-NAVAppDataUpgrade" for my version and all works fine.. => I wrote that I don't understand this step.. same like " Sync new version " but thank you again.
↧