How To: Make an Opportunity clone for each Opportunity Contact Role
March 12, 2017
How To: Clone an Opportunity with Quote and Quote Line Items in Salesforce
April 2, 2017

How To: Use conditional logic to control the logic of the Custom Button

Conditional logic in the custom button provides control and flexibility for the Super Clone and Super Clone Pro custom buttons. All of the URL parameters that get passed into the Super Clone and Super Clone Pages can be surrounded by Salesforce’s formula logic.

Here is an example of using a different configuration based on an Opportunity’s stage. Similar conditional logic could be used for record types or any other field on the object.

/apex/lcrm_scp__scpClone?rid={!Opportunity.Id}&cfg={!IF(ISPICKVAL(Opportunity.StageName,'Closed Won'), 'ConfigWon', 'ConfigLost')}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
Read more