Skip to main content
August 20, 2023
Question

How do I have save an Integration HTTP response in a global variable and use it as a header for another integration

  • August 20, 2023
  • 6 replies
  • 0 views

Hello,

As shown in the screenshot below, I am able to get a ASP.NET_SessionId in HTTP Response instead of getting it in Result. In such a case how do I save it in a global variable and use it as a header input for another integration to fetch data from the other system API.

    6 replies

    stefanhelzle0001
    August 20, 2023

    Not sure what you mean with a "global variable". Something like this does not exist in Appian.

    But, to make things simple, you wrap the integration that returns this ID into an expression rule that extracts just that ID. Then you call this expression to populate the value of the session header in the other integration.

    August 21, 2023

    Thank you Stefan, can you share an example of how do i need to define an expression if name of the integration is 'integration1' and the value I need to extract from http response is ASP.NET_SessionId which I could use in 'integration2'

    stefanhelzle0001
    August 21, 2023

    The return value when calling the integration is a dictionary. You will find the headers inside the result item.