Imran Hasan
09/11/2024, 9:25 AMCeligo AI
09/11/2024, 9:25 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems you want to create a button that, when clicked, redirects to a saved search and applies a dynamic filter using SuiteScript. Here's how you can achieve this: 1. Create a ClientScript that will be triggered when the button is clicked. In this script, you will use the
window.openwindow.location&CUSTBODY_MY_FIELD=6000javascript
define(['N/search'], function (search) {
    /**
     * @NApiVersion 2.x
     * @NScriptType ClientScript
     */
    
    var exports = {};
    function pageInit(context) {
    	// TODO
    }
      
    function myButton(context){   
        window.open('<https://xxxxx.app.netsuite.com/app/common/search/savedsearch.nl?id=1620&CUSTBODY_MY_FIELD=6000>');
    }
    exports.myButton = myButton;
    exports.pageInit = pageInit;
    return exports;
});CUSTBODY_MY_FIELD6000Celigo AI
09/11/2024, 9:25 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.865657926
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854029596
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851469457
Celigo AI
09/11/2024, 9:25 AM