Redirect issue while integrating Amazon Punch-in with Servicenow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2025 02:01 AM
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