Share via


Use cookies in HTTP calls from Business Central

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, you can now include this customization in Business Central apps and extensions.

Feature details

The HttpClient data type now officially supports cookies. With this support, AL developers can efficiently send and receive cookies when they send HTTP requests.

The update introduces a new Cookie data type along with several AL interfaces for handling cookies:

  • UseResponseCookies AL interface for the HttpClient data type that enables or disables caching for server cookies.
  • Cookie data type that represents a cookie object.
  • AL interfaces to get cookies from an HttpResponseMessage.
  • AL interfaces to get, add, and remove cookies from an HttpRequestMessage.

Developers can choose to automatically reuse response cookies, handle cookies manually, or use a mix of both approaches.

Geographic areas

Visit the Explore Feature Geography report for Microsoft Azure areas where this feature is planned or available.

Language availability

Visit the Explore Feature Language report for information on this feature's availability.

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.

Additional resources

Cookie data type (docs)