So I'm calling an assistant from withing another assistant and I want to get back some data from the sub-assistant to make decision in the calling assistant. The simplest example would be determining if the sub-assistant was "Finished" or "Canceled" - that's pretty important to know.
As I mentioned in another, earlier post... I am not "HTTP minded" and it could be I'm missing something obvious. I read the help and brushed up on nlobjRequest and nlobjResponse and I don't see a mechanism that would allow me to append additional parameters to the URL contained in customwhence. For example, I may want to append "&result=f" (for "finished").
The only idea I've come up with is:
1. Grab the URL from customwhence
2. Decompose into the individual parameters
3. Determine what type of resource (e.g. SUITELET, RECORD, etc) is being redirected to
4. call nlobjResponse.sendRedirect() passing the correct arguments based on the parsed customwhence URL
5. Append additional parameters in the parameters hash
That solution makes me
There must be a better way? At what point can I intercept the redirection and append additional data?
NetSuite: How about a new method: nlobjAssistant.addRedirectParameter() ?