How To: Set up the Salesforce button on the opportunity (Lightning Experience)
Follow the steps below to configure a button in Salesforce to create Measure Contracts in Opportunities.
Use Salesforce Classic? Refer to this article instead.
1. Set up the custom button in Salesforce
Select the Object Manager tab and search and click Opportunity.
Click Buttons, Links, and Actions > New Button or Link.
Pick a label.
Under Display Type, select Detail Page Button.
For creating a Measure contract from the Opportunity, paste the text between the quotation marks in the text box:
"https://api.getmeasure.com/web/api/v1/integrations/salesforce/contract_redirect?opportunity={!Opportunity.Id}&org_id={!$Organization.Id}"
For creating a Measure subscription from the Opportunity, paste the text between the quotation marks in the text box:
Click Save.
2. Add the button to the Salesforce Opportunity page layout.
In the Opportunity Object Manager page, select Page Layouts.
Select your preferred layout (ex. Opportunity (Sales) Layout).
Click Buttons and drag the new button into the Opportunity Detail area. Click Save.
You will find the contract button on every Opportunity page.







