Using the redirect.toSuitelet function, users are allowed to pass certain parameters to the receiving suitelet. In order to retrieve the passed parameter the user must access the context.request.parameters object to get the list of available parameters On the originating suitelet, the parameter is passed via: redirect.toSuitelet({ scriptId: ’31’, deploymentId: ‘1’, parameters: { ‘custparam_test’:’helloWorld’ } });… Continue reading Retrieve Parameter from One Suitelet to Another Suitelet via SuiteScript 2.0
Tag: parameter
Reserved Parameter Names in Suitelet URLs
Certain names are reserved and should not be referenced when naming custom parameters for Suitelet URLs. The following table contains a list of reserved parameter names: If any of your parameters are named after any of the reserved parameter names, your Suitelet may throw an error saying, “There are no records of this type.” To… Continue reading Reserved Parameter Names in Suitelet URLs
Fetch parameter from URL
The function to fetch parameter from URL getParameterByName: function (name, url) { try { if (!url) url = window.location.href; … Continue reading Fetch parameter from URL