Redirect issue while integrating Amazon Punch-in with Servicenow

Raviteja Kunal1
Tera Expert

We are facing issue while integrating Amazon Punch-in with ServiceNow. After Punchin Amazon website is not redirecting to ServiceNow. 

 

Used below code in POST Scripted API. Any help is highly appreciated.

Thank You.

var redirect_url = "https://" + gs.getProperty('instance_name') + ".service-now.com/now/psm/shoppinghub/cart";

 // Set the HTTP redirect response
  response.setStatus(303); // HTTP status for redirection
  response.setHeader('Location', redirect_url); // Redirect to the correct URL

 

0 REPLIES 0