Posts

Showing posts with the label Dynamics

Different use of AL Find Functions for Filters in Dynamics 365 Business Central

Image
This post provides tips about different find function in Business Central, including both long-standing C/AL strategies and newer concepts like partial records. FindSet vs FindFirst/FindLast FindSet and FindFirst/FindLast are two methods utilized in Dynamics 365 Business Central for extracting records from a table. The key distinction between them is that FindSet fetches a group of records, whereas FindFirst only fetches the initial record in the filter and FindLast fetches the last record. FindSet is employed when there’s a need to traverse through a sequence of records, and it’s advisable to use FindSet(true) if there’s a requirement to alter any record within the group. Conversely, FindFirst/FindLast is employed when only the initial or last record is needed and there’s no requirement for a loop. SetLoadFields  The SetLoadFields function only loads the specified fields, thereby not fetching the remaining fields in the table and ensuring a quicker load. It is suitable for searchi...

The new CRONUS license: Demonstration License for Dynamics 365 Business Central

Image
The new demo license is automatically installed when you install the Demo Option. The license gives access to any Business Central application, including the Base Application, and full access to app development. Properties of the demo license When the demo license is installed, you can: Start ten simultaneous client sessions on any platform. Create up to two companies. Support an unlimited number of web users. Run in any supported language. Use all application functionality, including add-on products, local extensions and customizations in current and previous versions. This means that you can run and modify all object types within the range 1 to 99,999,999. The new license will only be shipped in .bclicense format and will not be possible to use with older versions of Business Central or NAV. Valid for 10 years from now (no need to update it frequently). You can run automated tests in any period of the year (only the UI has limits on periods). All ranges in the demo license are now op...

Use Microsoft Dynamics 365 Business Central in Microsoft Teams App

Image
Employees with Microsoft 365 licenses but no Business Central licenses can have now view only access of Business Central (Cloud) from Teams with the proper configuration, read Business Central records that are shared with them in Microsoft Teams chat and channels. Administrators can set environments to enable access with Microsoft 365 licenses and specify exactly which tables and other objects this category of user will have access to when an organization has both a Dynamics 365 Business Central and a Microsoft 365 subscription.  Read more at:  Business Central Access with Microsoft 365 licences - Business Central | Microsoft Learn Send link into the Team User can open the link into Team for this example it is PO list Use can view the detail PO as well in Teams

How to call Web Service (GET/POST) from MS Dynamics NAV C/AL

Image
//Get url := 'https://httpbin.org/ip'; CREATE(WinHttp); WinHttp.Open('GET',url,FALSE); WinHttp.Send(JsonTxt); JsonTxt := WinHttp.ResponseText; MESSAGE(FORMAT(JsonTxt)); //Post url := 'https://reqbin.com/echo/post/json'; CREATE(WinHttp); WinHttp.Open('POST',url,FALSE); WinHttp.SetRequestHeader('Content-Type', 'application/json'); CREATE(XMLDoc); NodeText := XMLDoc.createTextNode(''); NodeText.appendData('{ "Id": 78912'); NodeText.appendData( '"Customer": "Jason Sweet",'); NodeText.appendData('"Quantity": 1,'); NodeText.appendData( '"Price": 18.00}'); WinHttp.Send(NodeText.nodeValue); JsonTxt := WinHttp.ResponseText; MESSAGE(FORMAT(JsonTxt)); Variables: Name DataType Subtype Length ResponseStream InStream     ResponseBuffer BigText   ...

How to design graphical RDLC report in Microsoft dynamics NAV 2018

Image
First we need to create a table for the graphical report. Lets create a new table which will contain budget and actual amount of different accounts with the following fields: Save the table as  Graphical Report Table. Now  i nsert following data into the table for example: Our table is ready for the Report. Now go to report section and click new to create a new report. In the report designer enter the table number or name as DataItem. Then select the table fields under the DataItem. Now select  View > Layout from main menu. The report layout will be open in visual studio. (If visual studio is not installed in your computer SQL report designer may open but I recomand Visual Studio for RDLC report design). in the visual studio report design choose chart from toolbox menu. Then create a chart you want from the list. Here i choose the first one for this example. In the chart data section select Actual and Budget field Sum in Value section. And Name...

Microsoft Dynamics NAV - Creating and Consuming a Codeunit Web Service

Image
We can create any code unit in Dynamics NAV and publish it as web-service. To do that we need to go to the page (form in 2009)  "Web Services".  In the Web Services page, choose New. In the Object Type column, select Codeunit, then in the Object ID column enter the Codeunit Number, and then enter a name in the Service Name column. This name will be the web-service name to consume.  Mark the check box in the Published column and choose OK to close the New - Web Services page. Webservice Form (2009) Verifying the Web services availability. Make sure flowing services are running in server. In Browser write the service URL to check if the service published successfully, Change the localhost with ip for remote server : http://localhost:7047/DynamicsNAV/WS/Services  If everything is ok you should see the published services names in the browser. Now lets try to consume the service. In this example we will see how to consume the service fr...