-
Replace CONTEXTURL in BC19
Hi, due to the fact that the buildin function CONTEXTURL does not exist anymore, I hav to replace this function by other function. Has anybody a solution from where I get the same information like CONTEXTURL? best regards,
-
How to POST a JSON to an API
Hi experts, This is Business Central cloud. I'm trying to send a POST HttpRequestMessage to an API. The body of the message must contain a JSON object, that I have created. When I run the code, I get this error: {"type":"https://tools.ietf.org/html/rfc7231#section-6.5.13","title":"Unsupported Media…
-
VAT is being rounded up wrongly
I am baffled by this behavior of BC rounding up the VAT Amount. My BC has Local Currency setup as USD and VAT Rounding Type set to as Nearest; Here is my currency setup for AED; When I create a PO in AED with Total Value without VAT as 50, with 5% VAT 52.50; The VAT Prod. Posting V1 with VAT Bus. Posting is configured to…
-
BC TechDays 2022 Video
My impressions of this year's conference: BC TechDays 2022
-
Consume external NAV SOAP webservices from SaaS BC
I am trying to consume a webservices in Business Central 14 (RTC C/AL) from Business central (BC19). I need to send an xml file from BC19 to BC14 to obtain checks and validation. So, I've a function in CU to do this:[External] ValidaXML_AIFM(VAR _XMLToValidate : Text;VAR _Error : Text) RetVal : Boolean IF NOT…
-
NST Services problem
Hi, got a new Job in the Developmend Field and have to look for the Dev-Server regarding Performance etc. On the Dev Serrver there are different NST's for different usage Configured. I've seen that they are using different amounts of memory. After rebooting the Server this will varying between 200MB and 2GB without any…
-
NAV CLient(s) using VPN
Hello Good day. Does anyone knows or have any idea on how to connect the NAV Client using VPN? currently we're using FORTiClient Thanks :)
-
Local characters in e-mail subject
Hi experts, I use Business Central version 13 on-prem. I have made a new codeunit that uses codeunit "SMTP Mail" to send an e-mail. It works fine (also with Danish characters in the e-mail subject and body). But if I add an attachment (a pdf-file), the Danish characters in the e-mail subject, is shown wrongly in Outlook.…
-
Business central standard application/system app code to protect a pdf-file with a password
Hello everyone, is there maybe a way to protect a pdf-file with a password in the business central application/system app? Or would be the only ways to implement this with azure functions or a control-addin? Best regards and thank you very much in advance
-
How to remove HTML tages without removing style
Hello am trining to add an add-in editor STyle to be the Notpade for the description fields on Sales Quote Page in Business central , so when i add this add-in the desciption was shwing with the html tags and i haven't experience on Javascript to correct this issue , so how can delete or replace moving this tags to not…
-
Setting password on pdf file OnCloud
Hey! I would like to set a password on pdf file (or just it's stream representation) in cloud ready solution; that means I don't want to use a DotNet. Ideally no Azure Functions either. Just a pure AL - is it even possible? Have any of you encountered such issue?
-
Nav 2018 Multiple Servers
Hi everyone, While I am not going to go into super specific details, is it normal for Nav to be ran across several servers? For example: You have a SQL Server named Server A, A Nav instance running on Server B, database -> Server A Another instance running on Server C, database -> Server A This might sound silly, but does…
-
Consume external soap Webservice from SaaS Business Central
Is there any way to do this? All procedure are marked [Scope('OnPrem')]..
-
How to debug in OIOUBL app from Microsoft?
Hi experts, This is regarding Business Central cloud with the Danish "OIOUBL" app from Microsoft installed. I have made an EventSubscriber like this: [EventSubscriber(ObjectType::Codeunit, Codeunit::"OIOUBL-Management", 'OnExportXMLFileOnBeforeBLOBExport', '', true, true)] local procedure…
-
odata/api page with cross-origin requests
Hi, I´ve been trying now for a while to create a react application and run it inside a page on NAV as a control add-in. I´m running version 2018 on a docker instance on my local machine and the control add in itself works fine. I´m able to pass data to the control add in with AL code, and i´m able to invoke AL functions…
-
change expiration date for a lot
How do you change an expiration date for a lot on a posted item?
-
read Bridge weight
Hello Am workin to add a function to read Bridge Value directlly from scale balance to business central (Version BC is Clous in Saas (20.0+) however the DotNet function is not working in saas , can i have any suggestion or exemple of source code to read value and out into my page with buttom function Thank you
-
Why does BC pick VAT Prod. Posting Group from GL Account Card for Prepayment Invoice?
If I am posting a Purchase Prepayment Invoice, and do not have a VAT Prod. Posting Group on my Advance to Supplier GL Account Card, I get no VAT Line in GL Entry during Prepayment Invoice Preview posting. Even the VAT Entry has a line with 0 VAT Amount. But if I have a VAT Prod. Posting Group in GL Account Card, I do get…
-
Merge PDF with Bullzip PDF
Hi everyone! I'm struggling with merging different PDF documents into one. I'm working with a NAV 17. My code is almost the same as the example they use in their page, but the merge part. While they use:// Merge with other PDF files. pdfSettings.SetValue('MergeFile', mergeBeforeFileName + '|.|' + mergeAfterFileName); I use…
-
Notification test
Hi, Does anyone have experience with notification testing? I'm currently writing tests and while using handler (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/attributes/devenv-sendnotificationhandler-attribute) I manage to check if the notification message is what I assume, I can't test…
-
Partner license
Hi, I want to use power shell to export objects to text file from the customer Production license, any work around? Thank you
-
Approval Workflows - validation instead of just applying new value
Hello. I want to create Approval Workflow for Unit Price change on Sales Order lines. I got this using standard 'Revert the value of Unit Price field' and 'Apply the new values' responses from Workflows Templates. Unfortunately - it is just applying values without validation. After change Unit Prices approval requests is…
-
Processing CDATA with DotNet variables in NAV2013
Hello I've been searching the forum all afternoon reading about how I can handle CDATA in an XML response from a web service I am consuming in NAV2013 (yes, I know, it's an ancient version, lol). I've found some threads that show how to handle it with XMLDOM, but I prefer to handle with system.xml due to the msxml.dll…
-
Error - The Posting Date doesnt lie in Tax Accounting Period
Validation Results - "The Posting Date doesnt lie in Tax Accounting Period" Any Clue on this error while creating Bank Receipt entry with TDS Section having Parameter "Calc Over & above Threshold" set to Yes Business Central Online - India
-
After BC upgrade from 14 to 20 on-prem, can't install Email - SMTP Connector and other apps on DVD
Hi all We upgraded version 14 to 20 and it went smoothly. We can run the web client and the data is there. Everything looks fine. Now we want to publish additional apps from the Applications folder, but when we run the Publish-NavApp in Powershell it appears to not be published because we can't install it and if we run…
-
"Internet browser is not installed" error message BC13
Using Business Central 13 CU 6 users who have upgraded to windows 11 are now receiving the message "Internet browser is not installed" when attempting to open a document via the attachments fact box. I can see in NAV 2018 this was fixed as a platform update in cumulative update 48:…
-
Version 20 debugging, always breaking on UserPreference.modify
Since upgrading to version 20, every time I run the debugger from Visual Studio it breaks immediately on standard code in the Rolecenter Selector Mgt. codeunit, 1485, shown below procedure SetShowStateFromUserPreference(UserName: Code[50]; State: Boolean) var UserPreference: Record "User Preference"; begin if…
-
How to execute functions in codeunit across multiple database
Hi, We have four databases ( and some companies on each of them) , and we want to write the codes of functions in only one of the database and execute functions( as job) on all of them. Is there a way to do this? Our aim is having the code in one place so that we can ensure that it is same for all databases, companies.
-
Change Tax Amount on Purchase Line by AL Code
Hi All, I'm trying to build an integration to an external system to sync purchase orders and lines. There are small rounding differences between the two systems. Tried setting rounding on general ledger setup but the reality is it's never going match 100%. What are the options to set tax amount on document lines? Couldn't…
-
Creating empty container (CSIDE)
Hey, I am looking for the best way to create container with c/side version that would contain only those objects that are present on some client environment. The easiest way that comes to my mind would be to create container with no objects inside (no standard) and then import *.fob with desired objects. Is this possible?…