I need to include cookies in the header of the next Appian integration call, along with a Bearer token. However, the integration result only returns a single cookie, even though the actual HTTP response contains three Set-Cookie headers. In the process model, there's no way to access the full HTTP response (such as ac!httpResponse) to retrieve all three cookies. How can we extract all cookies from the response for use in subsequent integration calls?
Discussion posts and replies are publicly visible
Integration objects only capture the last cookie when multiple Set-Cookie headers exist in the HTTP response. This is because it converts headers to a dictionary structure that can't have duplicate keys.I would recommend, Add an intermediate service(API Gateway/Middleware) to aggregate all Set-Cookie headers and return them as a single value.I can find similar post here: https://community.appian.com/discussions/f/integrations/21218/integration-object---accessing-multiple-headers-with-the-same-name