Skip to main content
June 17, 2021
Solved

Integration Object - Accessing multiple headers with the same name

  • June 17, 2021
  • 7 replies
  • 0 views

Hi fellow Appian practitioners,

I am working on an integration with an external SAP system and have run into a potential Appian shortcoming, and would like to confirm this. I first do a get request to an external system authenticating endpoint to retrieve a token. That endpoint also returns three cookies in separate headers all with identical "Set-Cookie" name. I can view them when looking at the "HTTP Response" tab in the integration object after calling the API via "Test Request":

Now, when moving over to the Result, the HttpResponse data type includes ONLY one "Set-Cookie" parameter, the last one, specifically.

I do currently need all three cookies that will be passed into the next API call, but I have no way of accessing those in the HttpResponse headers in a process model.

The integration works via Postman, as the cookies are automatically passed on to the subsequent API call. I have tried both CS with Basic Authentication as well as just the integration object(s) having basic authentication, but there is no difference in the behavior when calling the second POST API.

Has anyone seen this before where Appian ignores duplicate headers with the same name, and allows accessing only one (last one) of them?

Best answer by stefanhelzle0001

This is because Appian translates this into a dictionary with unique field names. I think it is worth opening a support case.

7 replies

stefanhelzle0001
June 17, 2021

This is because Appian translates this into a dictionary with unique field names. I think it is worth opening a support case.

June 24, 2021

Thank you for the reply. I am currently discussing with Appian via support case. While this effort is ongoing (and for short term temporary solution) would you happen to be aware of any existing plug-ins to allow accessing multiple headers?

philips781
October 8, 2021

Hi! Did you manage to find a solution for this issue? We have exactly the same issue, i.e. multiple Set-Cookie headers and the integration object only returns the last one.

August 22, 2023

Hi!
We are also facing the same issue. Is there any good workaround for this apart from creating custom plugin or adding middle layer?