Quantcast
Channel: Microsoft Dynamics NAV
Viewing all 64865 articles
Browse latest View live

Forum Post: Support for .NET interop in Code Unit using .NET Framework 4.7.1

$
0
0
Hi, We have a library that we're trying to use as an Addin with Navision 2013 (NOT R2). Our library is compiled and targeted towards the .NET framework version 4.7.1. It also uses Log4Net to write to the event log and create log files. It seems like other libraries we used that were compiled in 4.7.1 worked. However, I want to confirm this is supported. Additionally, although the object seems to run......nothing wrote to the event log...and our log file was not created. This should have thrown an error within Navision....but there doesn't seem to be anything reported..... Is there some place where Navision actually logs error information generated by code unit assemblies? Also....does anyone know what EXE the codeunits actually run under (their context)? kind regards, Marty

Forum Post: Word Layout in Documents. Why not?

$
0
0
I used Word Layout for documents reports, instead RDLC layout in a project and I found it easy and fast. But on the other side, I don´t see a lot of people using word layout. So, what is the problem? Is there any important issue that I can´t see? Can anyone share their experiences and issues with Word Layouts? Thank you very much.

Forum Post: RE: Odata REST Web Services - Not able to Delete Sales Order

$
0
0
"DELETE http://{{ipandport}}/{{servicename}}/ODataV4/Company('{{companyname}}')/SalesOrder('Order','SO-2078422')" is working absolutely fine. I Gusti Made Ari Permadi Thanks a lot! Will the same format `SalesOrder('Order','SO-2078422')` work for items/zip codes/customers? Like: Items('Item','1234'), Customers('Customer','56787')? Thanks again!, Kishore.

Forum Post: RE: Odata REST Web Services - Not able to Delete Sales Order

$
0
0
Yes, it should be working as well. You only need to supply the primary key value . For items primary key is only Number so should be like this Items('1234')

Blog Post: Multiple approval for a single document(Items) in Dynamics NAV

$
0
0
Introduction: We are well versed with approvals in Sales and Purchase documents. To summarise a sales approval, a sales order is created, the sales amount is finalised and sent for approval. The status of the document changes to pending approval. Once its approved by the hierarchy the status changes to released and it moves to the further process etc but…. sometimes don’t we require approval from more than one department heads ? An Item document for example consist of Item General information, Invoicing, Planning, Replenishment etc. Its good to have the authorised person to enter the relevant details. I’ll be creating Multiple approval for each group tab in NAV. Pre-requisites: Microsoft Dynamics NAV 2018 Steps: In this workflow, certain fields are made mandatory based on the sequence No. e.g.  If Item document is waiting for Sequence 2 to approve certain mandatory fields need to  filled in before approving. Only when all mandatory fields are filled it goes to the next sequence approver. In the search bar type in workflow user group. click on New and create a user group as below. Add 4 users to the group 2. Create a workflow an set response as workflow user group as ITEM WFL created 3. Create two fields in the Item table (27) Level Approved and Status with Datatype as Option. Add Status field to the Item Card page and mark Editable as No. 4.  In the codeunit 1535 Approvals Mgmt., I’ve added a function for Item workflow inside the function ApproveSelectedApprovalRequest 5. Set the Level approved based on the sequence No. 6. Use a switch case statement for each level approved. When Level approved is 1 i.e sequence is 2 the fields like Gen. Posting group are mandatory to be filled. Once all mandatory fields are filled, the status of document changes to Released. 7. Add the code to change the Status to Pending approval under the codeunit 1535 function SetStatusToPendingApproval 8. Enter the code in the Workflow Response under the function ReleaseDocument Demo: Create ab Item and Send for approval. Once Level approved 0 is approved, it goes to the Level approved 1 i.e sequence 2 When sequence 2 approver login NAV and tries to approve the Item, it throws an error if mandatory fields are not filled. Once all mandatory field are filled by all users, the Item document releases. Cheers! Happy weekend and a Blessed Christmas!

Forum Post: RE: Word Layout in Documents. Why not?

$
0
0
I've also used Word templates a lot for document reports (and an improved Excel buffer for all other new reports. We only used RDLC when modifying existing reports) in a previous job. It speeds up development a lot! There is a few limitations that one should be aware of: - If you or an user need to edit the template, you need to have a Word license. You also need to have word on the client to show preview (i think - workaround is to just print to PDF). - Word layout does not support show/hide expressions (it is not supported by the 3rd party word merger Microsoft are using for NAV/BC). So you cannot let the word template decide which information should be shown or not. This also means that all your pages should be identical template wise (you can control if a field has as value or not in your dataset from NAV/BC, but you cannot show/hide i.e. a field based on another fields value directly in the word template). If you want i.e. your document totals in a frame in the footer on the last page in your document, you cannot do that in standard NAV/BC i think - it will at least show the frame on every pages footer… And you even have to be a bit creative to get that result :-). - Word layout does not support transfer footers/headers - You cannot remove a image dynamically - you'll get a grey box (but you can replace it with a 1x1 white dot in your dataset :-) ) There are probably more minor limitations I forgot about... Some you can work around easily and some are a bit harder (I've been involved in creating a post-processing PDF editor in my former work to fix some of it. It just required everything to be printed as PDF for the PDF-post-processer before actually beeing printed...

Forum Post: RE: Word Layout in Documents. Why not?

$
0
0
Thank you very much Gert for sharing, this is I was asking for!!

Blog Post: How Do I: Configure the Outlook Add in for Microsoft Dynamics NAV 2017?

$
0
0
www.youtube.com/watch This video demonstration covers the following steps: - the neccessary prerequisites to configure the Outlook Add-in - setup - usage Learn more at http://aka.ms/NAVGetReady or send an e-mail to kschimke@microsoft.com

Blog Post: How Do I: use Microsoft Flow with data from Microsoft Dynamics NAV 2017?

$
0
0
www.youtube.com/watch Learn how to use Microsoft Flow wih data from Microsoft Dynamics NAV 2017. The demonstration covers the following steps: - setting up NAV and Flow - creating an automated workflow - testing and showing results   Learn more at http://aka.ms/NAVGetReady or send us an e-mail on kschimke@microsoft.com

Forum Post: How to modify all table fields (record to record)

$
0
0
Hello everyone I am writing a script that is supposed to copy Item data from one company to another. I have a problem with Items that already exist - I want to modify them but I don't want to write all fields in the table. I decided to create loops and use RecordRef and FieldRef. Unfortunately, this approach takes a long time (over 24 hours). sourceTable.OPEN(objectId, FALSE, fromCompany); sourceFieldFilter := sourceTable.FIELD(54); sourceFieldFilter.SETFILTER('FALSE'); IF sourceTable.FINDSET THEN BEGIN targetTable.OPEN(objectId, FALSE, toCompany); REPEAT targetTable.INIT; FOR intCounter := 1 TO sourceTable.FIELDCOUNT() DO BEGIN sourceField := sourceTable.FIELDINDEX(intCounter); targetField := targetTable.FIELD(sourceField.NUMBER); targetField.VALUE(sourceField.VALUE); IF FORMAT(sourceField.CLASS) <> 'FlowField' THEN BEGIN targetTable.MODIFY(FALSE); COMMIT; END; END; UNTIL sourceTable.NEXT = 0; END; targetTable.CLOSE(); sourceTable.CLOSE(); I am looking for another solution. I wrote something like that (but it doesn't work): fromItem.INIT; fromItem.CHANGECOMPANY(companyName); fromItem.SETFILTER(fromItem.Blocked, 'FALSE'); IF fromItem.FINDSET THEN BEGIN REPEAT IF toItem.GET(fromItem."No.") THEN BEGIN toItem := fromItem toItem.MODIFY; END; COMMIT; UNTIL fromItem.NEXT = 0; END; There are over 200 fields in my table and I don't want to write each field in the style: toItem.Fields1: = fromItem.Fields1; toItem.Fields2: = fromItem.Fields2; toItem.Fields3: = fromItem.Fields3; .... .... toItem.Fields200: = fromItem.Fields200; toItem.MODIFY it will work but I am looking for another solution. Do you have any suggestions?

Blog Post: Business Central/NAV integration with Azure Service Bus using Azure function.

$
0
0
Hello Team! Today I tell you how to send messages from Business Central (BC) to Azure Service Bus (ASB). Also you can repeat this actions with C\AL for Dynamics NAV using "Http Web Request Mgt." codeunit instead of HttpClient variable. More about ASB you could read here: https://azure.microsoft.com/en-us/services/service-bus/ Lets start: 1. First of all you need to create Service Bus namespace. Open Azure portal, click on Create New resource, type "Service Bus" and press Create Input name of your Bus. Choose Pricing tier (Basic for this test), resource group and location. After several minutes you'll get your ASB: 2. Now we need SAS policy for our ASB and at least one message queue: Click on Shared access policy of your ASB and press Add. Type some name and select Manage. Press Create. Select Queues tab and press +Queue. Input name and press Create: Set SAS policy for your queue (you could skip it and use SAS policy for Service bus): As you could notice - this policies doesn't contain SAS token. Only connection strings. Obtaining of SAS token for ASB is a headache - you could read how to construct it here: https://docs.microsoft.com/en-US/azure/service-bus-messaging/service-bus-authentication-and-authorization We will use much more easier method to connect to service bus - Azure function! 3. Azure functions allows you to use Connection strings to authenticate ASB. And integration of Business Central with Azure functions is very simple. Create App service for your function: Now we need VS Code to create Azure Function. With next extensions : Azure Functions and C# Open VS Code, install extensions and click on Azure Functions menu: 4. Connect to your Azure account, select Subscription and Press Create Function icon. Select App service (previously created) and function type - Http Trigger, language - C#. you'll get some kind of HelloWorld project. We need to change it a little. All code you could find here: https://github.com/ABaludin/ASBFunction Add Service Bus package to your project: Open local.settings.json and add ServiceBusConnection parameter which is primary connection string from Service bus or queue SAS policy: And finally - function code. Get request from Business Central and send it to ASB: using System; using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Newtonsoft.Json; namespace ABaludin.Asb { public static class ASB { [FunctionName("ASB")] public static IActionResult Run( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequest req, ILogger log, [ServiceBus("nav2asb", Connection = "ServiceBusConnection", EntityType = Microsoft.Azure.WebJobs.ServiceBus.EntityType.Queue)] out string busMessage) { string message = new StreamReader(req.Body).ReadToEnd(); busMessage = message; return message != null ? (ActionResult) new OkObjectResult("ok") : new BadRequestObjectResult("No message"); } } } Now publish your function to App service, open App service on Azure portal and copy your function's URL: 5. Sending messages from Business Central: Create page extension which sends employees data to ASB. Integration is very simple, especially with anonymous authentication: Repository with code: https://github.com/ABaludin/HappyBirthday pageextension 50145 "AWR_EmployeeList" extends "Employee List" { actions { addlast(Reporting) { action("AWR_SendCongratulation") { ApplicationArea = All; Image = SendMail; Promoted = true; PromotedCategory = Process; Caption = 'Send Congratulation'; trigger OnAction() var Client: HttpClient; Url: Text; Content: HttpContent; Response: HttpResponseMessage; ResponseText: Text; begin Url := 'https:// >.azurewebsites.net/api/ >'; Content.WriteFrom(StrSubstNo(Message_Txt, Rec."First Name", Rec."Last Name")); if not Client.Post(Url, Content, Response) then Error(Text001_Err); Response.Content().ReadAs(ResponseText); if not Response.IsSuccessStatusCode() then Error(Text002_Err, Response.HttpStatusCode(), ResponseText); end; } } } var Text001_Err: Label 'Service inaccessible'; Text002_Err: Label 'The web service returned an error message:\ Status code: %1\ Description: %2'; Message_Txt: Label 'Today is Happy Birthday of %1 %2! Do not forget to congratulate!'; } you could check message quantity in ASB monitoring on Azure portal: but to check message text and some other functions you need special tool to work with ASB. I like this one: https://github.com/paolosalvatori/ServiceBusExplorer/releases See screenshots, it's quite good: Hope, this was useful for you!

Forum Post: RE: How to modify all table fields (record to record)

$
0
0
Problem solved I had to use toItem.TRANSFERFIELDS(fromItem, FALSE); instead of t oItem := fromItem;

Blog Post: Microsoft Dynamics Partner Roundup: Relocation; Canadian EFT; Partnership; New hire

$
0
0
In this week's Microsoft Dynamics Partner News Roundup: Visionet partners with Blue Horseshoe to drive digital transformation at Y. Hata & Co., Ltd. Cynthia Priebe latest to join New View Strategies Pre-configured Canadian EFT for Dynamics 365 Business Central AKA Enterprise Solutions moves to the Empire State Building Visionet partners with Blue Horseshoe to drive digital transformation at Y. Hata & Co., Limited Visionet Systems Inc. and Blue Horseshoe Solutions Inc. have announced that Y. Hata & Co. Limited, located in Honolulu, Hawaii, has selected Dynamics 365 Finance and Operations to streamline its food service distribution business. Y. Hata will implement a number of technologies using D365 as the centerpiece. This will strengthen the way Y. Hata's manages accounting, purchasing, sales, and warehousing. Visionet will also deploy such technologies as a B2B customer portal, mobile applications for sales, embedded business intelligence capabilities, and EDI communication. Cynthia Priebe latest to join New View Strategies .... Read More

Forum Post: RE: Odata REST Web Services - Not able to Delete Sales Order

$
0
0
Got it! Thanks again I Gusti Made Ari Permadi

Blog Post: ArcherPoint Dynamics NAV Developer Digest - vol 271

$
0
0
ArcherPoint Dynamics NAV / Business Central Developer Digest - vol 271 The NAV community, including the ArcherPoint technical staff, is made up of developers, project managers, and consultants who are constantly communicating, with the common goal of  sharing helpful information with one another to help customers be more successful. As they run into issues and questions, find the answers, and make new discoveries, they post them on blogs, forums, social media...so everyone can benefit. We in Marketing watch these interactions and never cease to be amazed by the creativity, dedication, and brainpower we’re so fortunate to have in this community—so we thought, wouldn’t it be great to share this great information with everyone who might not have the time to check out the multitude of resources out there? So, the ArcherPoint Microsoft Dynamics NAV Developer Digest was born. Each week, we present a collection of thoughts and findings from NAV experts and devotees around the world. We hope these insights will benefit you, too. Bug Resolved: Modify Caption in TableExtension Bill Warnke shares: “This is a bug I opened up on the AL Github, Modify Caption in TableExtension #5429 . Can anyone else confirm this? I'm seeing it in all my BC15 instances and a prod instance but I don't know why it's taking so long to verify the bug. Matt Traxinger replies: “I didn't even think this was allowed. What happens when two extensions both try to modify the caption of a base field?”  Bill responds with the Table and Extension Properties , commenting: “Yeah, I don't even know. I feel like it it's something that should only be allowed in the Per-Tenant extension world.”  Bill updates this issue: “Fixed in 15.2.”  Breaking Changes and How to Fix Them Kyle shares: “An in-progress list of ‘these things break going from BC14 to BC15’ from a development perspective can be found on the Microsoft AL App Extensions Blob .”  D365 Business Central Cumulative Updates BC13 Cumulative Updates BC14 Cumulative Updates BC15 Cumulative Updates Multi-Language Syntax Deprecated in AL Bill W informs: “Multi-language syntax in AL is deprecated.”  Text000: TextConst ENU = 'This is being deprecated.';  DoDoThisMsg: Label = 'This is the new hotness.';  And adds: “You'll need to generate xliff files for your target language if you want customization in your extension translated. Here’s some brief documentation on using the translation service from Microsoft, Business Central App Translation .” Free eBook for AL Beginners Saurav shares a link: “A Free eBook, AL for Beginners , is available for download from GitHub.”   If you are interested in Dynamics NAV and Business Central development, be sure to see our  collection of NAV/BC Development Blogs . Read the  "How To" blogs from ArcherPoint  for practical advice on using Microsoft Dynamics NAV and Dynamics 365 Business Central. Blog Tags: Developer Suzanne Scanlan's blog Log in or register to post comments

Blog Post: Extend, Customize, and Collaborate on the Help for Business Central

$
0
0
The source files for the Help for the base application is available in public GitHub repos so that you can easily extend and customize the content for your customers . In this section, you can learn about working with the GitHub repos and MarkDown files . LINKS https://docs.microsoft.com/en-us/dynamics365/business-central/ https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/help/contributor-guide#what-the-github-repos-contain https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/user-assistance https://docs.microsoft.com/en-us/contribute/how-to-write-docs-auth-pack https://github.com/MicrosoftDocs/dynamics365smb-docs https://github.com/MicrosoftDocs/dynamics365smb-docs-pr.de-de/ All Business Central Courses https://docs.microsoft.com/en-us/learn/browse/?products=dynamics-business-central Community Blog https://community.dynamics.com/business

Forum Post: Validation Rules

$
0
0
I am using Dynamics NAV 2016. Is it possible to create a validation rule that allows you to exclude more than one item? I cannot get it to work for more than one vendor. Validation Rule: Criteria Lines: GLACCOUNT 7551 PROGRAM 1310 VENDOR <>V-SACRGR01|<>V-HYDRXX01 Rule Lines: ENROLL NO M0001..M0009 Objective: When a requisition is created using the G/L Account and Program number identified, we want the user to always include the enrollment number. However, for two separate vendors no enrollment number is required.

Blog Post: Quick Tip: Where do I find the Released Cumulative Updates for Business Central?

$
0
0
Released Cumulative Updates for Microsoft Dynamics 365 Business Central on-premises: https://support.microsoft.com/en-us/help/4470116/released-cumulative-updates-for-microsoft-dynamics-365-business Released Updates for Microsoft Dynamics 365... Read the full text.

Blog Post: How do I: Add filters in a Report in VSCode with AL?

$
0
0
Recently someone asked me, what’s wrong with me report, it’s not showing me the correct data? After investigating I noticed that the report used filters, applied in several different ways and that the expected data was not showing up in the dataset... Read the full text.

Forum Post: RE: Upgrade for NAV 2013 R2 to NAV 2018 has taking more than 4days because of product groups?

$
0
0
Hello Ramesh, Please share step by step guide of Microsoft Dynamics Navision 2013 to 2018 upgrade, Scenario: Old - Server 2008 (SQL 2012, Nav2013) New - Server 2016 (SQL 2017, Nav2018) I am trying to take the SQL Backup and restore in the new server but failed. Is there any proper step by step guideline, please share.
Viewing all 64865 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>