Questions tagged [dynamics-business-central]

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.

289 questions
1
vote
2 answers

Adding a Tracking Spec Line through AL Code?

I am trying to add Tracking Spec entry through code; rec_trackingspec.init(); if rec_trackingspec2.FindLast() then …
1
vote
2 answers

Extract a non ZIP file to files on disk?

I got a App File which is structured like a zip file. Now I would like to extract all of the files in the app file. I tried to convert the app to a zip file in the code (just copy and paste as zip file), but then it's a "SFX ZIP Archive", which most…
1
vote
1 answer

Delete multiple special characters in string

I'm new in Dynamics 365 Business Central and AL. I need to delete special characters from a string (email address, phone numbers). I tried DELCHR(String,'=','['), but there are more chars forbidden. I know I can add more than one, but I don't know…
HanBen87
  • 13
  • 3
1
vote
2 answers

Why do I always get 'The server has rejected the client credentials.' when I call business central api?

Here is my MSAL authentication: @app.route('/get-microsoft-data', methods=('GET', 'POST')) def get_microsoft_token(): public_app = ConfidentialClientApplication( client_id="",…
1
vote
2 answers

How to send a get Request in AL

I currently have 2 problems. I am trying to send a GetRequest to my web service. This is done with the SendNotify (phonenumber: text; template: text) method. When I call the method via an action, I get the following error message: Misused header…
Doncarlito87
  • 359
  • 1
  • 8
  • 25
1
vote
2 answers

How to get data from Business Central?

I have made a C#-project where I am trying to connect to my Business Central cloud sandbox. In Business Central, I have made an extension with a new codeunit, which has a function that I call "MHSTest". It just returns a text. In Visual Studio, I…
Morten
  • 55
  • 1
  • 6
1
vote
1 answer

Authorize Dynamics 365 Business Central API

I want to create a Webjob that is supposed to run on a schedule. The Purpose of the webjob is basically to check some database tables and create item(s) in Dynamics 365 BC accordingly if there are new entries in the tables. While designing an…
1
vote
1 answer

How to get line items from Business Central Web Service (Odata)?

From Microsoft Documentation, to get salesOrderLines, the following http request is needed: GET businesscentralPrefix/companies({id})/salesOrders({id})/salesOrderLines({salesOrderLineId}) However, it assumes each json object has a unique GUID. But…
Breaker
  • 45
  • 6
1
vote
0 answers

Business Central Couple Not Synced CRM Account - Business Central Customers

I have a CRM Account already filled with Customers and I would Like to Couple those CRM Accounts with newly created Customers In Business Central. I have created multiple companies that all sync with the same CRM environment. I would like to couple…
Jure Fadiga
  • 195
  • 2
  • 19
1
vote
0 answers

Business Central Dynamics 365 Sales Connection Setup Error in Sync Queues for Item, Opportunity, Resource and Others

I am working on Business Central on a demo tenant. I have set up Common Data Service Connection Setup and Dynamics 365 Sales Connection Setup. When I run a initial sync in a new company made with production - setup data only the Customer, Contact,…
Jure Fadiga
  • 195
  • 2
  • 19
1
vote
1 answer

Error in getting access token for azure key vault in business central?

I am trying to POST an HTTP request with different parameters in the body, but i am getting the message "oauth2 error AADSTS90014: The request body must contain the following parameter: 'grant_type' ". Through Postman i am able to get the access…
1
vote
1 answer

Multiple devops builds triggering each other

We use Azure DevOps for build and releasing our on-premise installation of Dynamics 365 Business Central. We maintain a 3-4 different repositories each making up part of the installation. We have a main repository (Base App) with approx. 8000 source…
Erik P. Ernst
  • 98
  • 1
  • 7
1
vote
1 answer

Not able to access APIS of Microsoft Dynamics 365 Business Central

I have to implement the apis of Microsoft Dynamics 365 into my website but not able to access it. I have implemented authentication by using this https://github.com/thephpleague/oauth2-client, which is working fine. Microsoft graph apis are working…
Pritika
  • 296
  • 1
  • 17
1
vote
1 answer

Business Central 365 DtdProcessing prohibited. Where to set to alllow? (XmlReaderSettings)

writing here to get help with Business Central 365 (on cloud) with System.Xml.XmlTextReaderImpl.Read and DtdProcessing. -> Firstly, when I log in to BC account and try to go to Business Central instance I'am getting this -> img Error just after…
devzom
  • 676
  • 1
  • 9
  • 19
1
vote
1 answer

accessing list of companies in Business central sanbox on cloud (api v2.0) with a super user

I set up 3 sandbox environments in the cloud then I try to access one of the API as below (using basic authentication wit Web service Access Key) and it works in browser: Test1 is the name of my…
Farzad J
  • 1,089
  • 2
  • 14
  • 28