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
Anna Rudenko 9Anna Rudenko 9 

Invoke a button from the Flow

I am looking for a way to invoke a Standard (or Custom) button via Flow.

We would like to to allow users using Clone button only if Opportunity is meeting the criterias specified in the flow.

So the user presses Button A, what triggers the flow. If all the flow parametres are ok, then another button (Opportunity Clone button) shall be triggered.

Thanks for an advice!
Anna
GauravGargGauravGarg
Hi Anna,

Thanks for posting this question, 

This question can have multiple answers, please look below for more details:
Solution 1: JavaScript: we can make clone button as "execute JavaScript" button, and check all the condition that require before cloning the Opportunity:
  ---> Success: open cloned opportunity page in edit mode. 
  ---> Failure: show error message. 

Solution 2: Flash Page: this kind of page is a background page which will load when Button 1 pressed and check all the required condition.   
  ---> Success: open cloned opportunity page in edit mode. 
  ---> Failure: show error message. 

Solution 3: Class: On Clone button click, we will call one class which will check all the conditions.
 ---> Success: open cloned opportunity page in edit mode. 
  ---> Failure: show error message. 

Hope this helps. 

For more details you can contact me on skype: gaurav62990

Thanks,
Gaurav
青 陸青 陸
use Page layout and Record Type