Microsoft Business Central development; including AL, JavaScript and .NET extensions, consuming or connecting to the Business Central API and Web Services, and installation and configuration of the development tools. Questions about how to use the product as an end user are off-topic here, as are questions about installation of the ERP system itself.
Questions tagged [dynamics-business-central]
289 questions
0
votes
1 answer
Dynamics HttpClient call never succeeds
I am developing a business central control add in where I need to call external web services. For this, I am using the HttpClient class in AL but no call succeeds.
if not Client.Get('https://google.com', Response)
then begin
responseText…

malle
- 3
- 5
0
votes
1 answer
Is there an overview of fields in datasets of custom (word) reports in Dynamics Business Central
Somehow i have the feeling its difficult to get detailed information about Dynamics BC. I am currently "designing" some custom reports - e.g. our invoices - using word templates.
Now I would like to add some data from BC to the report that I can not…

EKortz
- 25
- 7
0
votes
2 answers
vscode.executeDefinitionProvider returns empty vscode.Location[] when tests are called via package manager
I'm creating my first VS Code extension, but now I stuck while testing my extension automatically.
If I run my automated tests out of VS Code everything works fine, but I want to run the tests also in a continuous integration pipeline which is why…
0
votes
1 answer
Creating a file and writing contents into it in Dynamics Business central (AL)
I am trying to create a file on azure storage using Dynamics Business Central and then trying to write a string into the file. I am not able to create the file Can anyone help me in this regard.
My Sample code is
cha := 13;
msVersion :=…

Rahila Syed
- 35
- 8
0
votes
1 answer
How to apply SetFilter in a query object in while loop body after query.open() in AL Business Central
I just want to apply another filter while we are in the body of query during reading it.
For Example: Here is my code.
customAttributeQuery.SetFilter(Value_ID, attributeValueID);
customAttributeQuery.Open();
while…

Muhammad Ayyaz
- 11
- 1
- 14
0
votes
2 answers
What is the Azure "api.cds.appsplatform.us" service?
I am developing a multi-tenant application to use Microsoft's Business Central API. At first I want to check if I can simply log in myself.
However, every time I try to grant admin consent inside the app's API permissions, I get this error:
This…

Svip
- 2,958
- 3
- 22
- 33
0
votes
2 answers
Assign a value from Gen Business Posting Group Table
I have got Gen Bus. Posting Group field showing on the subform of Sales Order. This Subform is also showing Location Code for the Line.
I am attempting to write a logic as such that if the User selects Location Code as DROPSHIP, the Gen Bus. Posting…

mysamza
- 387
- 1
- 6
- 22
0
votes
1 answer
Uploading Business Central Base App.xlf results in "Failed to extract the contents of the uploaded file."
I try to upload the Base App.xlf file from English into German (by Business Central 15), but everytime I upload the file, I receive an error that says "Failed to extract the contents of the uploaded file." after 2-3 minutes. If I upload a smaller…

AndreasGloeckner
- 292
- 3
- 5
- 18
0
votes
1 answer
Error when passing parameters to report URL in business central
I have a custom report involving 3 dataitems in 1 dataset, the main dataitem is the "Customer" table and the only filter on the report is "No." as you can see below
report 50105 CustomerHistory
{
Caption = 'Customer Sales History';
…

user3197974
- 11
- 4
0
votes
1 answer
Automated Testing (Testtoolkit Test Assemblies)
I have an on-prem version of Business Central Wave 2 installed directly on my Windows 10 enterprise machine (NOT a docker container) and want to start writing test apps.
Firstly there is not Testtoolkit folder in the DVD but rather a Test Assemblies…

mysamza
- 387
- 1
- 6
- 22
0
votes
1 answer
Automated Testing set up for BCsandbox
I am trying to set up an envoirnment to start developing test app for the app I developed.
My app was developed on BC on prem (locally, not a docker container) and since all the resources I found on the internet says to use testtoolkit you need a…

mysamza
- 387
- 1
- 6
- 22
0
votes
1 answer
Reducing the scope of SQL queries on a NAVISION 2009 R2 report
In NAVISION 2009 R2, I have a report which iterate on 3 tables :
Service Header : 82 266 items / 120512 Ko
Service Line : 311 117 items / 720 352 Ko
Service Ledger Entry : 2 293 754 items / 2 453 568 Ko
I'm exporting about 10 000 Headers and 50…

Tibo
- 383
- 5
- 27
0
votes
1 answer
Item Journal Line Table's Records are getting deleted by itself
I wrote this procedure what will take lines and add them to the Item Journal Line table at the click of a button called "Issue Material"
Here is the procedure;
procedure IssueMaterial(IncomingLine: Record "Purchase Requisition Line")
var
ItemCont:…

mysamza
- 387
- 1
- 6
- 22
0
votes
1 answer
Add elements into an array then find distinct,
On an Item Card Page, there is a selection of Item Category which has a Code field.
So in Sales Quote I have selected 2 items;
1) Front Hub
2) Bicycle
and these two items have a Item Category Code set (lets say Chair, Desk respectively) in…

mysamza
- 387
- 1
- 6
- 22
0
votes
1 answer
How to get Runtime 3.0 for Business central CU 10 (August 2019 release)
My infrastructure guy just install the new BC with CU 10 (August 2019), I double-checked and its runtime is 2.4
I even get the below error when I try to install an extension with Runtime 3.0:
The runtime version of the extension package is currently…

Farzad J
- 1,089
- 2
- 14
- 28