Passing Variable to URL and Redirect

rajesh44853
Tera Contributor

Hello Need assistance in understand what is going wrong or is my approach itself is not appropriate

 

I have a ask where in when a Catalog task is closed all the information from the Variables need to passed to a new Order guide.

If i test by passing the values on the URL manually it opens proper

 

Here is a example i am passing

 

com.glideapp.servicecatalog_cat_item_guide_view.do?v=1&sysparm_initial=true&sysparm_guide=240c617c9777b910e4417b0e6253af51&sysparm_variables={"access_required":"yes","first_name":"abc","last_name":"xyz","display_name":"","mobile_number":"","manager_email":"","employment_start_date":"","job_title":"","department_cost_center":""}

 

I am using workflow for redirecting

using action.setRedirectURL(URL);  <in URL i am passing above>

 

I am getting error on the workflow liek syntax error : missing ; before statement.

 

Also since this value will be coming from a Variable is this the right method of passing variable in jason

 

"first_name":+current.variables.first_name

 

 

2 REPLIES 2

piyushsain
Tera Guru
Tera Guru

Hi @rajesh44853 

Can you please show the script that you have created in Workflow. As I have seen we cant redirect via workflow, as it is not the part of the concurrent server or UI part. If you want to redirect it use it via UI action or BR

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,
Piyush Sain

its just  2 line

var url = url as above

gs.setRedirectURL(url);

 

issue mostly about setting the URL right