HttpRequestMessage.SetCookie(Cookie) Method
Version: Available or changed with runtime version 13.0.
Sets the cookie given a cookie object.
Syntax
[Ok := ] HttpRequestMessage.SetCookie(Cookie: Cookie)
Parameters
HttpRequestMessage
Type: HttpRequestMessage
An instance of the HttpRequestMessage data type.
Cookie
Type: Cookie
The cookie object.
Return Value
[Optional] Ok
Type: Boolean
true if the cookie was successfully set, false otherwise. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
Related information
HttpRequestMessage Data Type
Getting Started with AL
Developing Extensions