For closing the Suitelet popup SYNTAX window.close(); For reloading the parent record SYNTAX window.opener.location.reload(); Add above syntax’s in suitelet POST request inside Script Tag SYNTAX var html = html + ‘<script> window.opener.location.reload();window.close() </script>’; scriptContext.response.write(html);
Author: Vishnu P
Request Body in Postman
When we send the request as JSON string method from postman to Restlet .The request body should be parse to object to get values We give input in postman as { “id”:”345″ } In script we need object not string so the given request body need to parse Syntax JSON.parse(requestBody)
Show Script Internal ID
To show the script Internal ID select the show all internal id check box in set preferences select the check box to show the internal ids