Who all has called a (backend) Suitelet from a cus...
# suitescript
x
Who all has called a (backend) Suitelet from a custom button? Need some code critique because I am sure I am doing something wrong.
a
I use something like this:
// Obtain script internal URL
var resolveURL = url.resolveScript({
scriptId: 'customscript_suitelet1',
deploymentId: 'customdeploy_suitelet1',
returnExternalUrl: false
});
// Build the URL
var suiteletURL = resolveURL + '&p1=' + p1 + '&p2=' + p2; //SuiteLet URL with additional params
// Navigate to the URL
window.open(suiteletURL);
}