Integration returns a http Response with redirect with header parameters. I want to call this from an interface via link or button within appian.

Integration returns:

HTTP/1.1 302
Date: Wed, 04 Jan 2023 16:05:55 GMT
Server: Apache/2.4.41 (Win64) OpenSSL/1.1.1c
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Location: /MyWeb/CreateNote
Content-Length: 0
Set-Cookie: MYSESSIONID=ABCXYZ123456; Path=/MyWeb; HttpOnly
Via: 1.1 myserver.dev.com
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive

I want to cal this integration via a link or a button from an appian interface.

  Discussion posts and replies are publicly visible

Parents
  • If you are making a GET request, is there a reason why that request cannot be a direct link? The response is a 302 so the browser should handle the redirect just fine. If it is not a GET request, or for some other reason you cannot insert the URL directly into the link component, you will have to wrap the call into a web api object, i.e. your web api will make the integration call and pass the location header as part of a 302 response. Your interface has a link to the web api.

Reply
  • If you are making a GET request, is there a reason why that request cannot be a direct link? The response is a 302 so the browser should handle the redirect just fine. If it is not a GET request, or for some other reason you cannot insert the URL directly into the link component, you will have to wrap the call into a web api object, i.e. your web api will make the integration call and pass the location header as part of a 302 response. Your interface has a link to the web api.

Children