[SalesForce] Call Process from Visualforce Page Button

Does anyone know if it is possible to call a Process from a Visualforce page button? My situation is that I have a custom object with a Master-Detail relationship to the Opportunity object. When the user creates a record of the custom object, I want to have a button that would create an associated Case when clicked. In the past, I have done this via a URL hack, but I would like to use something more scalable like a Process but I'm not sure how to get the button to do this. Any help is appreciated!

Best Answer

If you're wanting to do it that way, you really should just go and do it in Visual Flow. You can have your Visual Flow do that, and you don't even need a Process Builder!

Check out this on writing your VFP to house the Flow: http://salesforcesidekick.com/2015/05/25/how-to-put-your-flow-in-a-visualforce-page/

And this is a great example of this in action, except that its using a URL button instead of VFP, but combine them together and you'll have what you asked for: http://salesforcesidekick.com/2015/06/25/assign-to-me-button/

Related Topic