Loading
Salesforce now sends email only from verified domains. Read More
Quip
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Add Opportunity Team Members to a Close Plan

          Add Opportunity Team Members to a Close Plan

          Automatically add an Opportunity’s Team Members to a Close Plan when an Opportunity is created. Also add Opportunity Team Members to existing Close Plans already linked to an Opportunity so they always have a 360-degree view.

          Required Editions

          Available in: Lightning Experience

          Use a flow to automatically populate add Opportunity Team Members to an Opportunity Close Plan. Use Process Builder to create a Close Plan from a template when an Opportunity is created. After you create a document from the template, the flow adds the Opportunity Team Members to the Close Plan. Process Builder then also adds Opportunity Team Members to an Opportunity’s existing Close Plan.

          Set Up the Quip Document Component

          Set up the Quip Document component on the Opportunity page layout. Create a Close Plan custom URL field to store Close Plans created from your template.

          1. Navigate to an Opportunity record in Lightning Experience.
          2. Click the gear icon, and select Edit Page to go to the Lightning App Builder.
          3. Create a new tab called Close Plan.
          4. In the left pane, select Quip Document and drag it to your new tab.
            Quip Document component in Lightning App Builder
          5. Select One template for each record.
            Note
            Note One template for each record lets you add a template via Flow Builder or lets your users manually add a template. To use Flow Builder only, select Different Docs for each record.
          6. Click Edit icon. You can either paste your Close Plan template URL or select a template from the Template Library.
          7. Click Next and validate the template. The validation checks that you have access to the document, that link sharing is turned on, that the document is marked as a template, and that it isn’t a slide.
          8. To create a custom URL field to store the new document URLs, select Create a new field.
          9. Enter Close Plan as the field label and the field name. You can make changes later from the Object Manager.
            Create a Custom Field modal
          10. Save and activate the action.

          To automatically add Opportunity Team Members to a Close Plan created from the embedded template, create an autolaunched flow.

          Build a Flow to Add Opportunity Team Members to a Close Plan

          Create an autolaunched flow in Flow Builder that automatically adds an Opportunity’s team members when a Close Plan is created from the template.

          1. From the Quick Find box in Setup, enter Flows.
          2. Click New Flow.
          3. Select Autolaunched Flow and click Next.
            Flow Builder displays the flow in the Auto-Layout flow layout. You can access Interactions, Logic, and Data via the plus icon.

            Process Builder later launches the flow when an Opportunity stage is changed.

          4. From the Manager tab, click New Resource.
          5. Select Variable as the Resource Type, enter the API name OpportunityTeamMembers, select Record as the Data Type, and select Opportunity Team Member as the Object. Select Allow multiple values (collection), and then Available for input and Available for output, and click Done.
            OpportunityTeamMember resource with fields highlighted
          6. From the Manager tab, click New Resource.
          7. Select Variable as the Resource Type.
          8. Enter the API name OpportunityRecord.
          9. Select Record as the Data Type.
          10. Select Opportunity as the Object.
          11. Select Available for input and click Done.
          12. From the Elements tab, drag Get Records onto the canvas.
          13. Enter a name for the action. Here, we use Get Related Opportunity Team Members. Select Opportunity Team Member as the Object, and set conditions. Here, we set All Conditions to be met, and OpportunityId to equal {!OpportunityRecord.id}.
            Get Records window with required fields highlighted
          14. Under How Many Records to Store, select All records. Select Choose fields and assign variables (advanced), then enter OpportunityTeamMembers collection as the Record Collection.
          15. Under Select Opportunity Team Member Fields to Store in Variable, select ID and UserId
          16. Select When no records are returned, set specified variables to null, then click Done.
          17. Connect the elements on the canvas. Save the flow and enter a name. Here, we use Add Opportunity Team Members to Close Plan.
          18. From the Elements tab, drag Loop onto the canvas.
          19. Enter a name for the loop. Here, we use Loop Through Opportunity Team Members. Enter OpportunityTeamMembers as the Collection Variable, and select First item to last item as the Direction. Click Done.
            Required fields highlighted
          20. Connect the Get Records and Loop elements on the canvas and clickSave.
          21. From the Manager tab, click New Resource.
          22. Select Variable as the Resource Type, enter the API name UserEmailAddresses, and select Text as the Data Type. Select Available for input and Available for output, and click Done.
            Text variable with required fields highlighted
          23. From the Elements tab, drag Get Records onto the canvas.
          24. Enter a name for the action. Here, we use Get Opportunity Team User Record. Select User as the Object, and set conditions. Here, we set All Conditions to be met, and Id to equal {!Loop_Through_Oportunity_Team_Members.UserId}.
            Get Records window with required fields
          25. Under How Many Records to Store, select Only the first record. Select Choose fields and assign variables (advanced), then select In separate variables.
          26. Under Select Variables to Store User Fields, select Email and UserEmailAddresses.
          27. Select When no records are returned, set specified variables to null, then click Done.
          28. Connect the Loop and new Get Records action on the canvas. Select For each item in the collection, and click Done.
          29. From the Elements tab, drag a new action onto the canvas.
          30. Select Quip and enter Add Members to Document.
          31. Name the action Add Opportunity Members to Documents.
            Required fields highlighted
          32. For the Document URL, enter {!OpportunityRecord.Close_Plan__c}, where Close_Plan_cc is the API name of your custom URL field.
          33. To give Opportunity Team Members edit and sharing access to an Opportunity’s Close Plans, include Add Full-Access Members by Email Address, and select UserEmailAddresses. Click Done.
          34. Connect the Get Opportunity Team User Record Get Records element and your new action. To complete the flow, connect the action and the loop, then click Save.
            Final canvas with elements connected
          35. Activate the flow.

          Build a Process to Launch the Flow When an Opportunity Is Created

          Create a process in Process Builder that automatically creates a Close Plan from a template when an Opportunity is created. Launch the previous flow to add the Opportunity’s Team Members to new and existing Close Plans.

          1. From the Quick Find box in Setup, enter Process. Select Process Builder.
          2. Click New.
            New Process modal
          3. Name the process Create Close Plan. To auto-create the API name, press Tab.
          4. Select A record changes as the process trigger. Click Save.
          5. Click + Add Object and select Opportunity as the object type. Start the process only when a record is created and click Save.
          6. Click + Add Criteria.
            Required fields highlighted
          7. Name the criteria Close Plan URL is Null.
          8. To determine when to trigger the process, select Conditions are met.
          9. Set the conditions:
            Field Operator Type Value
            [Opportunity].Close_Plan__c Is null Boolean True
          10. Under Conditions, click All of the conditions are met (AND).
          11. Click Save.
          12. Click + Add Action.
          13. Select Quip as the Action Type, and name the action Create Close Plan from Template.
            Copy Document action with required fields highlighted
          14. Select Copy Document as the Quip Action, and enter the URL of the document you want to use as your Close Plan template.
          15. Under Advanced, enter [Opportunity].Id as the Source Salesforce Record. To store Close Plans created from the template in your Close Plan custom field, select Close Plan as the Target Record URL Field.
            Source Salesforce Record and Target Record URL Field highlighted
          16. Save the action.
          17. To add Opportunity Team Members to existing documents linked to Opportunities, click + Add Criteria.
            Close Plan URL is Filled In
          18. Name the criteria Close Plan URL is Filled In.
          19. To determine when to trigger the process, select Conditions are met.
          20. Set the conditions:
            Field Operator Type Value
            [Opportunity].Close_Plan__c Is null Boolean False
          21. Under Conditions, click All of the conditions are met (AND).
          22. Click Save.
          23. Click + Add Action.
          24. Select Flows as the Action Type.
          25. Name the action Call Flow to Add Opportunity Team Members to Close Plan.
            Required fields highlighted
          26. Select the flow Add Opportunity Team Members to Close Plan.
          27. Set the flow variables:
            Flow Variable Type Value
            OpportunityRecord Field Reference

            [Opportunity]

            Represents the Opportunity record that started the process.

          28. Click Save and then Activate.
            Final process canvas

          Your flow and process are ready to go! To see them in action, create an Opportunity in Salesforce.

          • A Close Plan is automatically created and attached to the Opportunity record.
          • The Opportunity Team Members are added to the Close Plan.
            Note
            Note Make sure you have Opportunity Team Members set up and that their Salesforce emails match their Quip emails.
          • If you edit an existing Opportunity with a linked Close Plan, the process launches your flow and adds the Opportunity Team Members to the Close Plan.
           
          Loading
          Salesforce Help | Article