Monthly Archives: August 2018

Execute a PATCH call from an Extension by using AL and HttpClient

Stefano Demiliani

If you work with REST APIs, you already know that you’ve two HTTP methods for updating resources:

  • PUT: updates an entire resource
  • PATCH: the update request only needs to contain the changes to the resource, not the complete resource.

The AL language permits you to work with REST services by using the HttpClientclass. If you declare an HttpClient object in AL, from Intellisense in Visual Studio Code you can see that you have the following methods for working with resources:

HTTPClientPatch_01.jpg

Where is Patch?? How can I perform a Patch REST call? Is this not supported?

The answer is no, the solution to perform a Patch request is just a bit hidden (don’t ask me why 🙂 ). Here is how you can send a Patch request to a REST resource from AL:

HTTPClientPatch_02.jpg

The key here is to add a PATCH method to the HttpRequestMessage object and then calling the

View original post 9 more words

Advertisements

Dynamics 365 Business Central October release

Totovic Dynamics Blog

Long time no see. I’m currently on vacation and finally found some time for writing. I don’t know if you already read Business Applications Release Notes – October ’18. If you are, don’t read this article :). But if you didn’t already read, you can get some basic overview what we will get in October.

First one technical news, from October we can use Business Central, on-cloud, on-prem and in hybrid deployments. And even more, you can use existing Dynamics NAV on-prem solution in hybrid model connecting to the cloud through Business Central. In both of cases, using Business Central or NAV on-prem, you can have your tenant on a cloud, where your data will be replicated. If you decide in one moment to continue only with cloud, it will be very easy task for you. But it is important to know, in this scenario you need to…

View original post 514 more words