How to Run a Suitelet script Upon clicking a Saved search custom Column button and how to pass the item data as parameters to suite let

In the saved Search result field add Formula(Text ) and in the formula session add the below html .In the html we can add the suitelet script link and we can pass item data as parameters. Below Added the html code.

‘<html>
<head> <style> .printbutton { background-image: linear-gradient(#fafafa, #e5e5e5); border: 1px solid #b2b2b2; border-radius: 3px; color: #333333; margin-bottom: 8px; padding: 3px 9px 4px 9px; vertical-align: middle; text-align: center; text-decoration: none; display: inline-block; font-size: 14px; font-weight: 600; font-family: Open Sans, Helvetica, sans-serif; cursor: pointer; transition-duration: 0.1s; -webkit-transition-duration: 0.1s; /* Safari */ }
.printbutton:hover { background-image: linear-gradient(#e5e5e5, #e5e5e5); }
.printbutton:active { background-image: linear-gradient(#b2b2b2, #b2b2b2); box-shadow: 0px 0px 2px 2px #5fa3f5, 0px 0px 4px 2px #c9e0fc; } </style></head>
<body> <a href=”https://5878284-sb2.app.netsuite.com/app/site/hosting/scriptlet.nl?script=2990&deploy=1&param1=’ || {internalid} ||’&param2=’ || {item.id} ||'” class=”printbutton” target=”_blank”>SS Flag Button</a>’

Leave a comment

Your email address will not be published. Required fields are marked *