{"title":"HttpResponseMessage.GetCookie(Text, var Cookie) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/httpresponsemessage/httpresponsemessage-getcookie-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-getcookie-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-getcookie-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 specified cookie given a name.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"HttpResponseMessage.GetCookie(Text, var Cookie) Method","slug":"httpresponsemessagegetcookietext-var-cookie-method","at":0,"chars":888},{"level":2,"title":"Syntax","slug":"syntax","at":158,"chars":92},{"level":2,"title":"Parameters","slug":"parameters","at":250,"chars":247},{"level":2,"title":"Return Value","slug":"return-value","at":497,"chars":240},{"level":2,"title":"Related information","slug":"related-information","at":737,"chars":151}],"text":"# HttpResponseMessage.GetCookie(Text, var Cookie) Method\n> Version: _Available or changed with runtime version 13.0._\nGets the specified cookie given a name.\n## Syntax\n```al\n[Ok := ]  HttpResponseMessage.GetCookie(Name: Text, var Cookie: Cookie)\n```\n## Parameters\nHttpResponseMessage\nType: httpresponsemessage-data-type\nAn instance of the httpresponsemessage-data-type data type.\nName\nType: ../text/text-data-type\nThe name of the cookie.\nCookie\nType: ../cookie/cookie-data-type\nThe cookie object.\n## Return Value\n*[Optional] Ok*\nType: ../boolean/boolean-data-type\ntrue if the specified cookie was found, false otherwise. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.\n## Related information\nhttpresponsemessage-data-type\nGetting Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}