I'm attempting to redirect to a suitelet from a wo...
# suitescript
r
I'm attempting to redirect to a suitelet from a workflow action script on entry and getting
There are no records of this type.
Thoughts on what is going on here? The suitelet page looks fine.
Using
Go To Page
with the suitelet on entry works, but I need the record ID as a parameter. Is this doable?
@rustyshackles I see you've done this from stackoverflow. Any thoughts?
I ended up going with a custom record and using a separate workflow to redirect back to the original record.
j
I wrote a custom WF action like this to handle these situations:
Copy code
function goToSuitelet(context) {

      	var script_id = parseInt(runtime.getCurrentScript().getParameter('custscript_go_to_suitelet_script_id'));
      	var deployment_id = parseInt(runtime.getCurrentScript().getParameter('custscript_go_to_suitelet_deployment_id'));
    	var deployment_id = 1;
    	var params = {txid: context.newRecord.id};

    	redirect.toSuitelet({scriptId: script_id, deploymentId: deployment_id, parameters: params});

	}
pass through suitelet script & deployment id
could pass through additional parameters as desired
r
Ya I'm supposed to use suiteflow if possible, so this works fine