Yes I know it's a hard work specailly with the new versions using AL. I just want when the user Create a new Opportunity the system Create a Dim Value in the background.
↧
Forum Post: RE: Adding Dimension when new Opportunity Created
↧
Forum Post: RE: How to attach/upload files to Dynamics NAV System
Look at the codeunit 419 "File Management" - it implements a bunch of functions for uploading / downloading. As for the attachment part - codeunit 134 "Import Attachment - Inc. Doc." is a good example of solving this kind of tasks in NAV, and it does upload files as well.
↧
↧
Forum Post: RE: Adding Dimension when new Opportunity Created
And what is the problem exactly? I guess you can subscribe to the OnInsert event of the Opportunity table to create the new dimension value. Then, probably, other subscribers must be created for other DML triggers - OnDelete, OnRename, OnModify, to keep the related dimension synchronized with its parent opportunity record.
↧
Forum Post: get files from sharepoint to Dynamics NAV
My goal is to get files from sharepoint to store in a table in dynamics nav. i have created a BC connection in flow, but the table to choose from is limited. Turns out those are API, so i created one, but it still doesn't show in the flow action. I tried to store file content into table "attachments". yet it shows error 400 bad requests every time. Does anyone ever try to get files from sharepoint or onedrive using flow and store then into the BLOB fields in the NAV tables?
↧
Forum Post: RE: Business central API: How to get the general ledger entries of a posted sale invoice ?
Hello Erik Yes the answer helped us in the sense that we are going to make sure that all the different documents will not have the same number. Regards.
↧
↧
Blog Post: Custom API and PowerApps
Dear reader! I have been working this week with one of our customer demos where we need to create a PowerApp application and connect it to Business Central. Well, it turned out that custom API's are not quite yet available for PowerApp to consume, so I will have to find out another way how to do it. I was thinking of another connector in PowerApp framework, "HTTP by AAD". I have already created a Web Application with Azure Portal (followed instructions from MS Docs AAD based authentication),and I managed to connect the Custom API after succesful publish/upload to my Business Central trial instance. For this I needed to publish the API as web service "old school way", by adding a record to Web Services table. Next step is to enable PowerApp "HTTP by AAD" connector to revealed web service. During the work, I have been working a lot with Visual Studio Code, and I have to say that I like the tool more after every time I have used it. There is, of course, some quirks which show that it is still in developing phase, but I am sure that these small rough edges will be smooth before C/AL development is dropped out of the latest BC versions. I have found Waldo's Extension Pack very useful indeed, and I can recommend it to everyone! Stay tuned!
↧
Forum Post: Create a Freight Calculator Page in AL - Dynamics 365 Business Central
Hi, I'm new to AL Language and would like to build a Freight Calculator as project to get started. I was able to create a Table, a list page and a card page using VS Code. With this created, I also managed to use the Configuration Packages Page to import data into my newly created Table... this was somewhat self explanatory. Where I'm having a hard time is finding information about the followings: My Table has 11 columns, Origin City, Service Type, Destination City, Destination Province, Base Rate, then 6 other columns of rates based on weight. I need to create a UI where the user can select their Origin City, Service Type, Destination City and Province and input the weight that they would like to ship. The result would be the price for the freight. I understand that this might not be as easy as doing it in c# Winform, but there must be a way. I'm not looking for someone to write it for me but more info on where to get started. Thanks in advance.
↧
Forum Post: intercompany posting with more than 1 customer card point to IC Partner
Hi , We have a scenario where Intercompany Customer with 2 customer cards. Company A would posting sales invoice. Company B would pick up as purchase invoice. Company A has 2 intercompany customer accounts in Chart of Accounts and 2 customer cards created for Company B first customer card is to point to Intercompany Customer, Trade account second customer card is to point to Intercompany Customer, Non Trade account. In Company A IC Partner, we can only configure to point to single IC. In Company B there would also be 2 vendor cards first vendor card is to point to Intercompany Vendor, Trade account second vendor card is to point to Intercompany Vendor, Non Trade account. Can someone suggest how to go about solving this ?
↧
Forum Post: RE: Create a Freight Calculator Page in AL - Dynamics 365 Business Central
This link will help you get started. https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-page-object
↧
↧
Forum Post: RE: Create a Freight Calculator Page in AL - Dynamics 365 Business Central
Don't be scared, it's not so complicated as it might look, even compared to WinForms. Previous post gives a good starting point for UI, and there is more documentation and examples available online. For example, here you can find an overview of different page types in BC: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-pages-overview What you are looking for is probably a List type page, but you can experiment with various page types and see what suites your purpose. To enable lookups to other tables, you will need to set up table relationships. This actually means that you define foreign keys in your custom table and specify respective primary keys. This is all it takes to enable the lookup functionality: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-set-relationships-between-tables
↧
Forum Post: RE: intercompany posting with more than 1 customer card point to IC Partner
HI, It seems, I don't quite understand your scenario. Why do you want to have more than one IC partner for a single customer, when in fact you have two customers and two vendors? Isn't it possible for you to have also two vendors in Company A, and two customers in Company B with a setup like below? IC Partner 1: Customer 1 (Trade account) - Vendor 1 (Trade account) IC Partner 2: Customer 2 (Non-Trade account) - Vendor 2 (Non-Trade account) If this one-to-one schema does not work for you, how do you want to identify the correct vendor in Company B when the incoming purchase document is created?
↧
Forum Post: RE: Create a Freight Calculator Page in AL - Dynamics 365 Business Central
Hi, thanks for the links. I've been reading all sort of documentation over the last few weeks. Microsoft doesn't offer any example that i could find that explains how to make "forms" like i'm looking to achieve. from what i gathered, i may have to look into JavaScript. i could be wrong but i'm not sure if you can have fields on a page that are not bound to the database. i/'ll be certain to post my findings online as there isn't much about AL anywhere. Even stack overflow is very lean in that department. thanks for your time.
↧
Forum Post: RE: Create a Freight Calculator Page in AL - Dynamics 365 Business Central
Unfortunately, now information on AL development is not as pletiful as developers would desire. Dynamics NAV is in the state of rapid transition to Business Central, and I can't say that this process is absolutely smooth and painless. Technology is changing faster than the related documentation is updated. Hopefully, it is going to be fixed soon - by the developers' community, as well as by Microsoft. As for your page, you don't have to create custom JavaScript controls - it's possible, but there are easier ways to do it. Page controls don't have to be bound to tables - a global variable in the page can be used as the source for a control. page 50101 "Sample Page" { PageType = Card; // SourceTable = TableName; layout { area(content) { group(ItemGroup) { field(ItemCodeControl;ItemCode) { Caption = 'Item'; TableRelation = Item; } } } } var ItemCode: Code[20]; } You can remove the property "SourceTable" completely if the page is not based on any table. Just declare global variables you need and bind them to page controls. Property "TableRelation" can be defined in the page instead of a table to support the lookup functionality.
↧
↧
Forum Post: RE: Create a Freight Calculator Page in AL - Dynamics 365 Business Central
This looks like exactly what I want to do... Thanks! I'm surprised I haven't been to find an example online... Alright, I'll give it a try. Cheers
↧
Forum Post: RE: Create a Freight Calculator Page in AL - Dynamics 365 Business Central
Alexander, Thanks to your answer I was able to put the following for together rather quickly. My next step is to figure out how to populate the Origin City as well as the Destination Province and City. These are all stored in 1 table with the rates. I'd like to have drop downs of each options so that when I select the Origin City, only the Provinces that have rates would populate. The same way, if I picked one of the destination provinces, only the relevant cities would appear in the Destination city drop down. The fuel surcharge might be coming from a Web Api Query, not sure yet. If not, I could have 1 table where an employee would be in charge of updating it. I love automation but our vendor might not offer the Web Service. I haven't found a way to do SQL style table queries so that I can use my 1 table and get all the data out via 3 or 4 queries to generate the freight quote. Because of the way Dynamics is priced out that you pay per table when adding your own, you have to be thrifty and find ways to minimize the number of table you use... Thanks again. Yann
↧
Forum Post: BC: Service tier fails to start: Certificate with thumbprint neither found in CurrentUser nor in LocalMachine store
Hi guys, I'm installing a new instance for a database hosted on a different server. I'm using a fully provisioned domain service account both in SQL and for the service tier, as I have done so many times time. But when I try to start the service tier, then I'm getting this error: Server instance: bca01 Tenant ID: User: Type: Microsoft.Dynamics.Nav.Types.NavConfigurationException SuppressMessage: False ContainsPersonalOrRestrictedInformation: False DiagnosticsSuppress: False MessageWithoutPrivateInformation: Certificate with thumbprint neither found in CurrentUser nor in LocalMachine store. SuppressExceptionCreatedEvent: False FatalityScope: None Message: Certificate with thumbprint neither found in CurrentUser nor in LocalMachine store. StackTrace: at Microsoft.Dynamics.Nav.Types.CertificateHelper.FindCertificateFromThumbprint(String certificateThumbprint) at Microsoft.Dynamics.Nav.WindowsServices.NavServerWindowsService.CreateServiceHosts(ServerUserSettings settings, Boolean usePortSharing, String machineName) at Microsoft.Dynamics.Nav.WindowsServices.NavServerWindowsService.Start(String commandLineServiceInstanceName) Source: Microsoft.Dynamics.Nav.Types HResult: -2146233088 StackTrace: at Microsoft.Dynamics.Nav.Types.CertificateHelper.FindCertificateFromThumbprint(String certificateThumbprint) at Microsoft.Dynamics.Nav.WindowsServices.NavServerWindowsService.CreateServiceHosts(ServerUserSettings settings, Boolean usePortSharing, String machineName) at Microsoft.Dynamics.Nav.WindowsServices.NavServerWindowsService.Start(String commandLineServiceInstanceName) It seems like it is expecting a certificate thumbprint, but I have not specified that it should have any. Did anyone see a similar problem before? With Dynamics NAV or BC on-prem?
↧
Forum Post: RE: get files from sharepoint to Dynamics NAV
Exactly what are we talking about here? Is it about Dynamics NAV or is it about Business Central (saas or on-premise)?? If you want to use Flow and API's then you cannot do it with Dynamics NAV as it is not supported. For BC you have the API's and whatever tables and fields they expose. If you want to store these files in new tables, then you would also need to extend the API's by create a new API page object. Personally I have not tried with flow, but I'm curious to why you selected that approach?
↧
↧
Forum Post: RE: BC: Service tier fails to start: Certificate with thumbprint neither found in CurrentUser nor in LocalMachine store
Its weird one since you have not specified any certificate thumbprint, wish I could be some help but no idea :( . does it happen to have blank space in thumbprint (in service tier configuration) maybe?
↧
Forum Post: How to upload excel upload to whse.physical inventory journal
Dear Experts, We had a stock counting in our advanced warehouse (bi enabled). I have the stock count result in a Excel file with 4500 lines. How can I upload the data into the whse.physical inventory journal? When i tried the rapit service package, Table 7311, there is an error "Phys. Inventory must be equal to 'Yes' in Warehouse Journal Line: Journal Template Name=PHYSINVT, Journal Batch Name=DEFAULT, Location Code=DC001, Line No.=20000. Current value is 'No' Thank you, Tsevelmaa
↧
Forum Post: RE: How to upload excel upload to whse.physical inventory journal
In the rapid start package you might need to choose phys. inventory field and set it to true in the excel file
↧