Redirection after ordering from an order guide

Swati44
Kilo Expert

Hi All,

 

After submitting the order guide, I need to redirect to particular page in service portal instead of Request, am unable to find any properties and script which is redirecting. Please let me know, is it even possible to do or not.

 

Thanks,

Swathi.

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

follow the below steps:

  1. Create an after insert business rule on the Requested Item table
  2. Set the condition where order guide is <order_guide_name>
  3. In the advanced section insert the following code:
(function executeRule(current, previous /*null when async*/) {

  gs.setRedirect('<your_page_name>.do');

})(current, previous);

It should work fine!

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

 

View solution in original post

1 REPLY 1

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

follow the below steps:

  1. Create an after insert business rule on the Requested Item table
  2. Set the condition where order guide is <order_guide_name>
  3. In the advanced section insert the following code:
(function executeRule(current, previous /*null when async*/) {

  gs.setRedirect('<your_page_name>.do');

})(current, previous);

It should work fine!

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto