You need to sign in to do that
Don't have an account?
Vipin K 10
Order Creation from Flows
Hi All,
I have created visual flow to create order from Quote with line items assignment. Have a generate button on quote which would tigger the flow and order gets created.
Issue is the order gets created and but it stays on the quote page itself. My requirement is once the order is created it should navigate to Order screen with created order.
Can someone help!
I have created visual flow to create order from Quote with line items assignment. Have a generate button on quote which would tigger the flow and order gets created.
Issue is the order gets created and but it stays on the quote page itself. My requirement is once the order is created it should navigate to Order screen with created order.
Can someone help!
After creation of new record, if you wnat to redirect your to it then you have to use visualforce page with Apex.
Steps
1) In your Flow Craete a new variable lets say NewOrderID
2) Craete a Visualforce page and then embed your Flow into it
3) Now use Apex class to get the newly created Order ID from Flow and pass it to your Visualforce page.
All Answers
After creation of new record, if you wnat to redirect your to it then you have to use visualforce page with Apex.
Steps
1) In your Flow Craete a new variable lets say NewOrderID
2) Craete a Visualforce page and then embed your Flow into it
3) Now use Apex class to get the newly created Order ID from Flow and pass it to your Visualforce page.
Thanks for the reply. I tried this but it did not work. I have some questions.
1. I am using an button with following url : /flow/Quote_to_Order?QuoteID={!Quote.Id}&retURL=/{!Order.Id} - But it lands me on home page.
Button is on Quote Page.
2. Where should i place the VF page if i create? on the button?
2. You have to manage redirect logic in Visualforce page as mentioned in the above code