function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Steve SchiefenSteve Schiefen 

Would like a Flow called from a button to leave the resulting window open

Hello,

I have created a flow that is called from a custom button in a Case.  The flow creates a custom object ("Service Report") and populates specific fields from the case.  Everything is working correctly, except I would like the Service Report to remain open once created.  The current flow does everything behind the scenes.  There is a window that says the Flow has completed successfully, but ideally I would like to not see that screen and just have the actual Service Report be open when complete (for the user to edit and click "save")

In a previous instance, this was done with custom button with URL hacking to populate the fields.  In that instance the window remained open.  I am working to eliminate the URL hacks and move to Flow but would like the same behavior.

User-added image
User-added image
Thanks,
Steve
Best Answer chosen by Steve Schiefen
RD@SFRD@SF
Hi  Steve, 

You can achieve this by embedding your flow into a visual force page and make use of the finishLocation attribute.
For more info please follow the link.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_flows_adding.htm

Hope it helps
RD

All Answers

RD@SFRD@SF
Hi  Steve, 

You can achieve this by embedding your flow into a visual force page and make use of the finishLocation attribute.
For more info please follow the link.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_flows_adding.htm

Hope it helps
RD
This was selected as the best answer
Steve SchiefenSteve Schiefen
Thanks RD!  Looks like that wil do the trick!

Steve