--- title: "Configure Opportunities" slug: "configure-opportunities" updated: 2024-10-14T21:14:52Z published: 2024-10-14T21:14:52Z canonical: "docs.blackthorn.io/configure-opportunities" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.blackthorn.io/llms.txt > Use this file to discover all available pages before exploring further. # Configure Opportunities Use the steps below to configure the Opportunity object for SMS messaging. A **Phone** field is required on any object you want to use for text messaging. The Opportunity object do not come with a standard **Phone** field, so you will need to ensure that you have created at least one custom **Phone** field. ## Lightning ### Create a Do Not SMS Field If the **Do Not SMS** field hasn’t been added to your Opportunity object, add it now. 1. Go to Setup. 2. Click the Object Manager tab. 3. In the Quick Find box, enter and click “Opportunity.” 4. Click the Fields & Relationships tab. 5. Click **New**. 6. Select “Checkbox” and click **Next**. ![Messaging_Opp_Create DoNotSMS Field_1](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/Messaging_Opp_Create%20DoNotSMS%20Field_1.png) 7. Enter the following information. 1. **Field Label**: “Do Not SMS” 2. **Field Name**: “Do_Not_SMS” 3. **Help Text**: “Check this box to stop an SMS message from being sent to this Opportunity.” 4. Set the remaining fields based on your requirements. 8. Click **Next**. ![Messaging_Opp_Create DoNotSMS Field_2](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/Messaging_Opp_Create%20DoNotSMS%20Field_2.png) 9. Select the profile access for this field. 10. Click **Next**. 11. Select the layouts you want to add the field to. 12. Click **Save**. ### Update the Page Layout and Related List #### Add the Do Not SMS Field 1. Go to Setup. 2. Click the Object Manager tab. 3. In the Quick Find box, search for and click “Opportunity.” 4. Click the Page Layouts tab. 5. Select the layout type you need to update. 6. Click the Fields tab. 7. In the Quick Find box, search for the **Do Not SMS** field. 8. Drag and drop the **Do Not SMS** field onto the page layout. ![Messaging_Opp_Add to Page Layout](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/Messaging_Opp_Add%20to%20Page%20Layout.png) #### Add the Related List 1. Click the Related Lists tab. 2. In the Quick Find box, search for the “SMS Messages” Related List. 3. Drag and drop the Related List onto the page layout. 4. Click the **Wrench** icon to open the Properties for this related list. ![Messaging_Opp_Add Related List](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/Messaging_Opp_Add%20Related%20List.png) 5. Add these fields in the following order: 1. **Message Date** 2. **Direction** 3. **Message (Full)** 4. **Status** 5. **From Phone** 6. **To Phone** 7. **SMS Message Number** 6. In the Sort By drop-down, choose "SMS Message Number" and "Descending". 7. Click the **plus sign (+)** located in the Buttons section. 8. Uncheck the box next to New and click **Ok**. 9. Click **Save**. ### Lightning Record Page Layout 1. Click the Lightning Record Pages tab. 2. Click the name of the layout you want to modify. 3. Click **Edit**. 4. If you don't see any Lightning page layouts listed, complete the following steps. 1. Click **New**. 2. Choose Record Page. 3. Click **Next**. 4. Enter a **Label** (i.e. Opportunity Layout). 5. Set **Object** = “Opportunity.” 6. Click **Next**. 7. Click the Clone Salesforce Default Page tab. 8. Select a page layout. 9. Click **Done**. 5. You should now be in the Lightning App Builder. 6. On the left-hand navigation bar, scroll down to the Custom-Managed section. 7. Locate the Blackthorn Messaging Messenger component. 8. Drag and drop the component onto the page layout. 9. The right-hand column will have the configuration options. We recommend keeping the **Max Height (in pixels)** = "400px", but you can modify it as needed. - If you've added the component to a sidebar, set **Column(s)** = “One Column.” - If you've added it to a wide section of the page, you can set **Column(s)** = “Two Column” to maximize the space. 10. Click **Save**. ![Messaging_Opp_Lightning Page Layout](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/Messaging_Opp_Lightning%20Page%20Layout.png) 11. Click **Activation**. 12. Review the settings. 13. Click **Close**. Refresh your browser for the changes to take effect. 14. Open an Opportunity record to see the Blackthorn Messaging Messenger component on your page. ![Messaging_Opp_Record](https://cdn.document360.io/f977eec0-500f-40a3-b663-724a51f78075/Images/Documentation/Messaging_Opp_Record.png)