Skip to main content

Build flows to automate your public contract linking in Salesforce

Use custom flows to automate Salesforce Lead creation triggered from a new public Tackle Contract and then link that contract to an Opportunity converted from the Lead.

K
Written by Kirsten Powers
Updated today

Use custom flows to automate Salesforce Lead creation triggered from a new public Tackle Contract and then link that contract to an Opportunity converted from the Lead.

To learn more about Salesforce Flows in general, see Salesforce Flow builder tour🔗 and Automate tasks in Flows🔗.

Before you get started

You’ll need:

  • Salesforce Admin access to set up fields, mappings, and other relevant workflows

  • A Salesforce account and access to Flow Builder

Set up your Salesforce org for automation

Properly set up your Salesforce organization for this automation. To complete the required setup:

Create a Tackle Contract custom field in Salesforce

Create a new field on the Lead object to allow Tackle to link Tackle Contracts from Salesforce Opportunities.

  1. In Salesforce, click the gear icon to open the Setup menu, then click Setup.

  2. Search for and click Object Manager.

  3. In Object Manager, search for and click Lead.

  4. In Lead, click Field & Relationships. The Field & Relationships page opens.

  5. Click New.

  6. Select Lookup Relationship and then click Next.

  7. Click the Related To: field and select Tackle Contract, and then click Next.

  8. Keep the default values selected for Field Label, Field Name, and Child Relationship Name, and the selected options to clear the value of this field and auto add to customer report type. Then click Next.

  9. In Step 4, select the Visible checkbox to select all items if it’s not already selected, and then click Next.

  10. Select Lead Layout if it’s not already selected, and then click Next.

  11. Select Tackle AWS Co-sell Opportunity Layout and select the check box if it’s not already selected. Then click Save.

  12. Once your selection is saved, you’re redirected back to the Lead page.

Create a Lead from a Tackle inbound co-sell

  1. In Salesforce, click the gear icon to open the Setup menu, then click Setup.

  2. Search for "Flows" and select Flows.

  3. In Flows, click New Flow.

  4. Click Categories > Triggered Automations.

  5. In Triggered Automations, click Record-Triggered Flow.

  6. Enter Configure Start details:

    a. For Object, search and select Tackle Contract. Configure Trigger will automatically select A record is created.

    b. For Set Entry Conditions, select All Conditions Are Met (AND) and then select the conditions:

    • Field: Tackle Offer Id | Operator: Is Null | Value: True

    • Field: Offer Type | Operator: Equals | Value: Public

    • Field: Status | Operator: Equals | Value: Active

    c. In the Optimize Flow section, select Actions and Related Records and toggle Add Asynchronous Path.

  7. In the Run Asynchronously path, click + to add a new element: Create Records.

  8. Enter Create Records details:

    a. For Label, type "Create Lead". API Name will automatically copy the label name.

    b. For How to set record field values, select Manually.

    c. For Create Records of This Object > Object, search and select Lead.

    d. For Set Field Values for the Lead, set the fields:

    • Field: Company | Value: Triggering tackleio__TackleContract__c > Company Name

    • Field: Last Name | Value: Triggering tackleio__TackleContract__c > Company Name

    • Field: Tackle Contract | Value: Triggering tackleio__TackleContract__c > Record ID

  9. When you’re done, click Save.

  10. Enter a flow label. For example: "Create Lead from Public Contract." Flow API Name will automatically copy the label name. Add a description if needed, and then click Save.

  11. Click Activate at the top right. Once the flow you created is activated, you’ll see a green success message.

Link Tackle Contracts to Salesforce Opportunities

Create this flow to link public Tackle Contracts to Salesforce opportunities once leads are converted into opportunities.

  1. In Salesforce, click the gear icon to open the Setup menu, then click Setup.

  2. Search for "Flows" and select Flows.

  3. In Flows, click New Flow.

  4. Click Categories > Triggered Automations.

  5. In Triggered Automations, click Record-Triggered Flow.

  6. Enter Configure Start details:

    a. For Object, search and select Opportunity. Configure Trigger will automatically select A record is created.

    b. For Set Entry Conditions, select None.

    c. In the Optimize Flow section, select Actions and Related Records and toggle Add Asynchronous Path.

  7. In the Run Asynchronously path, click + to add a new element: Get Records.

  8. Enter Get Records details: For Label, enter "Get Lead". API Name will automatically copy the label. For Object, search and select Lead. For Condition Requirements, select All Conditions Are Met (AND). Then enter the following conditions:

    • Field: Converted Opportunity ID | Operator: Equals | Value: Triggering Opportunity > Opportunity ID

    • Field: Tackle Contract | Operator: Is Null | Value: False


    Keep the rest as is.

  9. Under the Get Records element, click + to add a new element: Decision.

  10. Enter Decision details:

    1. For Label, enter "Tackle Contract Lead Exists". API Name will automatically copy the label.

    2. In the OUTCOME ORDER > New Outcome section:

      1. For Label, type "Yes". API Name will automatically copy the label name.

      2. For Condition Requirements to Execute Outcome, select All Conditions Are Met (AND).

      3. For Resource, select Lead from Get Lead > Lead ID. Select Is Null for Operator and False for Value.

  11. In the flow below Yes, click + to add a new element: Link Contracts To Opportunities.

  12. Enter Link Contracts To Opportunities details:

    1. For Label, type "Link Tackle Contract to Opportunity". API Name will automatically copy the label name.

    2. For Tackle Contract Id, select the Lead from Get Lead > Tackle Contract > Record ID.

    3. For Opportunity Id, select Triggering Opportunity > Opportunity ID.=

  13. When you’re done, click Save.

  14. Enter a Flow Label. For example: "Link Tackle Contract to Opportunity on Lead Conversion". Flow API Name will then automatically copy the label. Add a description if needed, and then click Save.

  15. Click Activate at the top right. Once the flow you created is activated, you’ll see a green success message.

Did this answer your question?