{"title":"HttpResponseMessage.GetCookieNames() Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/httpresponsemessage/httpresponsemessage-getcookienames-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpresponsemessage/httpresponsemessage-getcookienames-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpresponsemessage/httpresponsemessage-getcookienames-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Gets the list of cookie names.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Syntax","slug":"syntax","at":92,"chars":74},{"level":2,"title":"Parameters","slug":"parameters","at":166,"chars":130},{"level":2,"title":"Return Value","slug":"return-value","at":296,"chars":99},{"level":2,"title":"Remarks","slug":"remarks","at":395,"chars":460},{"level":2,"title":"Related information","slug":"related-information","at":855,"chars":151}],"text":"> Version: _Available or changed with runtime version 13.0._\nGets the list of cookie names.\n## Syntax\n```al\nCookieNames :=   HttpResponseMessage.GetCookieNames()\n```\n## Parameters\nHttpResponseMessage\nType: httpresponsemessage-data-type\nAn instance of the httpresponsemessage-data-type data type.\n## Return Value\nCookieNames\nType: List of [Text]<../list/list-data-type>\nThe list of cookie names.\n## Remarks\nThe HttpResponseMessage.GetCookieNames method allows you to get the list of cookie names from the response message.\n```al\n// This example shows how to get the list of cookie names from the response message\n\nlocal procedure GetCookieNamesHttpResponseMessageExample()\nvar\n    Response: HttpResponseMessage;\n    CookieNames: List of [Text];\nbegin\n    // Get list of cookie names from the response\n    CookieNames := Response.GetCookieNames();\nend;\n```\n## Related information\nhttpresponsemessage-data-type\nGetting Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}