if i want to send some parameters from client scri...
# suitescript
r
if i want to send some parameters from client script to suitelet and get the response how i do it?
Copy code
var response = http.request({ 
method: http.Method.GET, 
url: output, 
body: searchItem, //this is response of the the function that suitelet should is executing i want right?
headers: array_item //this is the parameters that the function should execute on, this is the array of item that i want to perform validtion on?
});
n
add the parameters to the url
r
how and how do take parameter that in suitelet?
n
add them as url parameters: ?param1=10&param2=20 etc etc. You need to read up on SuiteLets and handling parameters
That's actually the "better" way to do it, what you've done.
Copy code
params: {
                'array_item':array_item
               
            }
r
i dont understand why isnt it working?
i mean nothing is wrong
108 Views