Many of us have been using XML and SOAP for a long time now. This time my task was to create tickets in Zendesk based on events in NAV. I soon discovered that Zendesk uses REST web services and that it talks Json…. 😯 I soon found Gunnar Gestssons blog post on “JSON meets NAV“. […]
Tag Archives: C/AL
AltSearchField in NAV2016
The property AltSearchField is removed in NAV2016 but importing an object from NAV2015/2013 which had that property set will still keep the property value even though it’s not visible in the development environment. This might not be an issue until you try to rename the field that is set as AltSearchField. Then you’ll end up […]
Log your changes
From time to time we get into the situation where we need to run a batch report to update data in NAV. It’s always nice to log changes and there’s an easy way to do it by calling the standard Change Log functionality. This example blocks all Norwegian customers and writes the changes to the […]
Bye bye Ansi2Ascii (and welcome unicode)
Until NAV2013 I think I’ve used ANSI/ASCII conversion in pretty much every project, and Unicode has been a no-no. From NAV2013 we can use .Net to take care of conversions. In this example I support DOS-PC8, Codepage 1252 and UTF-8 when importing a textfile. The format is specified using an option field in a setup […]
FTP upload using .Net
Do you create files in NAV that you upload to an FTP site? Did you know that you can control the FTP upload from C/AL code using .Net? You can use the code below as a starting point to create your own solution. This way you don’t have to install any 3rd party FTP-software and […]
Base64-encoded credentials
Sometimes when you are connecting to a web service you need to authenticate using Base64 encoded credentials. This has became a lot easier now that we can use .Net Here’s some sample code that connects to a web service with “username:password” but encoded as Base64. This code use a method to get a response which […]