This post is part of the New Functionality In Microsoft Dynamics 365 Business Central 2024 Wave 1 series in which I am taking a look at the new functionality introduced in Microsoft Dynamics 365 Business Central 2024 Wave 1.
The 9th of the new functionality in the Development section is use cookies in HTTP calls from Business Central.
In scenarios where third-party HTTP endpoints require cookie customization, this can now be built into Business Central apps and extensions.
Enabled for: Users by admins, makers, or analysts
Public Preview: Mar 1, 2024
General Availability: Apr 2, 2024
Feature Details
Microsoft are adding official support for cookies to the HttpClient datatype. This allows AL developers to efficiently send and receive cookies when sending HTTP requests.
A new Cookie datatype has been introduced, as well as several AL interfaces to handle cookies:
UseResponseCookies
AL interface to the HttpClient data type enabling and disabling caching for server cookies.Cookie
data type representing a cookie object.- AL interfaces to retrieve cookies from an
HttpResponseMessage
. - AL interfaces to retrieve, add to, and remove cookies from an
HttpRequestMessage
.
Developers can choose to automatically reuse response cookies, handle cookies manually, or a mix of both.
Click to show/hide the New Functionality In Microsoft Dynamics 365 Business Central 2024 Wave 1 Series Index
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.