Redirect to page from Order Guide

Dana Israeli
Giga Guru

Hey friends,

I have an Order Guide with :

1 catalog item

1 record producer

on submit order guide I want to redirect a page.

I created a business rule on the RITM table:

when to run: after, insert

filter: order Guide is <the Order Guide>

Advanced: 

(function executeRule(current, previous /*null when async*/ ) {

gs.setRedirect('https://bynetdev.service-now.com/csm?id=purchase_orders');

})(current, previous);

 

 

BUT NO LUCK.

 

Ideas? 

7 REPLIES 7

Michael Jones -
Giga Sage

I've used that same type of business rule before successfully, but I don't believe I've had both Catalog Items and Record Producers in the same order guide before. Where are actually being directed to when you submit that order guide?

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Michael Jones -
Giga Sage

I just tried this in an Orlando instance and it seemed to work with no issues as long as one of the included items was a Catalog Item. When I don't include the catalog item when ordering, the redirect is not triggered. I put the same type of rule on the table that the Record Producer was targeting (just on insert, after - can't specify the order guide) and that seemed to work as well. So you may just need to figure out what record you're landing on after you submit and pivot where you put your rule.  

 

Hope this helps!

If this was helpful or correct, please be kind and click appropriately!

Michael Jones - Proud member of the CloudPires Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

i am redirecting to ?id=requests page instead my page after submit , I'm not finding why

That's what I saw as well, with the record producer. 

Try putting your BR on the table your producer is targeting and see if that works - it did for me. 

Hope this helps!

If this was helpful or correct, please be kind and click appropriately!

Michael Jones - Proud member of the CloudPires Team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!