แชร์ผ่าน


Use cookies in HTTP calls from Business Central

Important

This content is archived and is not being updated. For the latest documentation, go to What's new or changed in Business Central. For the latest release plans, go to Dynamics 365, Power Platform, and Cloud for Industry release plans.

Enabled for Public preview General availability
Users by admins, makers, or analysts Mar 1, 2024 Apr 2, 2024

Business value

In scenarios where third-party HTTP endpoints require cookie customization, this can now be built into Business Central apps and extensions.

Feature details

We're 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.

Thank you for your ideas

Thank you for submitting these ideas:

We listened to your ideas, along with comments and votes, to help us decide what to add to our product roadmap.

See also

Cookie data type (docs)