Questions tagged [dynamics-al]

Application language (AL) is the language used to create objects in Microsoft Dynamics 365 Business Central. With AL, you can manipulate data, and the statements and functions are able to read, write, and change data in the Business Central database. Use with the [dynamics-business-central] tag

AL is a programming language to create objects in Microsoft Dynamics 365 Business Central. From the Microsoft site

All functionality in Business Central is coded in objects. The extension model is object-based; you create new objects, and extend existing objects depending on what you want your extension to do. Table objects define the table schema that holds data, page objects represent the pages seen in the user interface and codeunits contain code for logical calculations and for the application behavior. These objects are stored as code, known as AL code, and are saved in files with the .al file extension. The AL Language extension also supports the multi-root functionality which allows you to work with multiple AL folders within one workspace.

85 questions
3
votes
1 answer

Synchronization Issue with Customizing an Integration with Microsoft Dataverse

followed documentation : https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/administration-custom-cds-integration docs and https://yzhums.com/17065/ When I launch “Run Full Sync.” and look at the job log of my…
Lynn
  • 121
  • 8
  • 25
3
votes
1 answer

Post data to custom AL field in Business Central

I am trying to create an API call to add data into a custom field that was created on the Sales Order page using AL Extensions. The issue is when I try to do the api call through postman, I am getting "The Property "propertyName" does not exist on…
BeamerEA
  • 103
  • 1
  • 7
1
vote
1 answer

AL compile in cmd dont work but works in vs code

I have a problem when i call the al compiler from the cmd. Im getting the dotnet errors. But when im uses the built in ctrl + shift + b in vs code, it will compile and create an .app files this is my…
Andy lam
  • 21
  • 2
1
vote
0 answers

Business Central 22 http requests don't show on fiddler

I'm trying to use fiddler to see the webrequests we are doing within BC. Unfortunately, it seems that fiddler isn't finding these requests that we make to external services. Has anyone tried anything like this before? Already tried this and no…
1
vote
1 answer

Get value from table column using string to reference column?

Is it possible in AL Language to get a value from a table using the column name as stored in a string? var myColumn: Text; myValue: Text; myTable: Record "My Table"; // User will select this myColumn := 'Name'; // This is what I would…
Dermo909
  • 128
  • 7
1
vote
2 answers

Post sales order on custom table in AL language

When we post sales order it create an sales invoice but we want when we post sales order it should post the sales order on custom table same as sales invoice in Business central. I am trying the event subscriber in codeunit the event is…
Numan Ijaz
  • 11
  • 1
1
vote
1 answer

assign value to variable on variable declaration? BC AL

Is it possible to assign a value to a variable on its creation? Something like this: var ProvisionHeaderCounter: Integer := 1;
1
vote
1 answer

Business Central API: Close a Sales Return Order

As the heading says I want to close a Sales Return Order form via the API but I have very little information on how to achieve that. A third-party app is installed in the customers Business Central which task is to create return orders from…
Dennis
  • 35
  • 8
1
vote
1 answer

Business Central Linked Fields

I am trying to create a "Received" bool field on both the Purchase Lines and the Sales Lines, so that when an item is marked as True on the Purchase Line, the linked Sales Line is also marked as True. So far I have managed to create a field on the…
BeamerEA
  • 103
  • 1
  • 7
1
vote
1 answer

How do I suppress warnings when compiling a Business Central Extension

I'd like to disable the warning AL1025, because of the nature of the AL compiler, I get a lot of warnings related to my node_modules folder. Apparently, it should be possible to suppress warnings in the app.json like this "suppressWarnings":…
binford
  • 1,655
  • 1
  • 18
  • 36
1
vote
0 answers

How to embed a file or text to c# project dll at build time in visual studio?

I need to embed a file/text to c# project dll at build time. I have tried following ways to do it: Consider I am having a c# project MyProject, I have created a Support.exe which actually creates a Resource.resx file and embeds the file to by…
1
vote
5 answers

SetAscending Business Central Sales Order List

I am attempting to use the SetAscending in Visual Studio Code for Business Central Sales Order List Page. It works to set the Sales Order "No." field to descending however it does not reset the scrollbar to the top of the page. I've tried adding…
1
vote
2 answers

Read Blob to Text in Business Central Report Extension

I am creating a Report for Business Central, a Purchase Order Report. The Purchase Order page is extended to add Work Description which is a blob data type. I have added the blob field to my Report Extension and now I went to convert the Blob to…
Abby
  • 83
  • 1
  • 10
1
vote
1 answer

Is there a tool/extension/script I can run for Visual Studio Code to Bulk handle errors?

I have a rather large Dynamics 365 Business Central Extension written in AL code on Visual Studio Code platform. Microsoft is changing a rule in AL code that will result in widespread errors if not addressed before the next release. This change is…
1
vote
1 answer

Business Central: custome api getById does not work

My problem is that I can't call my custom API for a specific itemId , however when I call the normal API it works as expected. Currently I can successfully call the normal API for a specific item like…
1
2 3 4 5 6