I've created a suitelet where it allows the user to send an email to everyone listed in the most recent email against a support case.
The suitelet is loaded from a button on the support case. This is done by passing the support case number as a parameter via the URL. When this button is clicked the form loads fine with all the required data as scripted.
https://debugger.sandbox.netsuite.com/app/site/hosting/scriptlet.nl?script=46&deploy=1&SupportCase=375
I've manage to get the bulk of my functionality in place and am looking to add some additional features. One of which is to allow the user to add additional recipients should they wish to do so.
var recipient = form.addField('recipient', 'select', 'Additional Ccs', 'contact');
On my form I've manage to add a field and created it so that it references 'contact' so the user can look up contacts already in the system.
When the suitelet loads and you click on the arrows to the right of the field so that it gives you the various options (i.e. List, Search Contacts etc). When you click the 'List' option the suitelet executes again but this time it cannot retrieve the original parameter (support case number) you sent to it via the URL. The parameter is still available when you look at the URL, but when you debug it, it doesn't exist.
I've had a look through all the documentation in order to get round this but am not sure of a solution I could use.
Is there anyway possible that I could pass the support case number again when the suitelet script reruns.
Any helps would be gratefully appreciated.