⏱️ 5 minute read
The Salesforce for Forecast integration contains features to help manage your Salesforce Opportunities within Forecast Projects. Once the integration is connected, you can sync opportunities from Salesforce and use templates to automate the creation of Forecast projects.
This article covers:
- Automating Project Creation
- Bidirectional Sync
- Customizing Opportunity Sync Conditions
- Using Project Templates
- Linking Existing Projects with Opportunities
Automating Project Creation
When the integration is connected, Salesforce Opportunity stages appear in the Salesforce for Forecast Integration page. Identify which Salesforce stages will create projects in Forecast.
To automate project creation
- Click Admin in the navigation ribbon.
- Select Integrations from the dropdown.
- Scroll down to Sales & CRM.
- Click Salesforce to open the integration's settings.
- Under Opportunity Stages, review the Salesforce stages to identify those you wish to use to create Forecast projects.
- Toggle Create Project toggle for the Salesforce stage you wish to use to create Forecast projects.
- Once an Opportunity meets this stage, a new project is generated in Forecast and linked to the corresponding Salesforce Opportunity.
- The new Forecast project will appear under the Forecast stage identified.
Bidirectional Sync
Choose which fields to sync in both directions. When the toggle is OFF, data only flows from Salesforce to Forecast. When ON, data syncs in both directions.
Customizing Opportunity Sync Conditions
It is possible to customize Forecast project creation based on conditions other than the Salesforce Opportunity stage using Salesforce Object Query Language (SOQL).
Once the SOQL query is saved, every trigger from Salesforce checks the condition This means that when an Opportunity moves to a stage that is configured to Create Project, the integration checks all custom conditions to determine whether or not a project will be created.
For a custom condition to be successful, it must use valid SOQL syntax (as verified by your Salesforce instance). It is recommended to develop the condition in the developer console of your Salesforce instance, then copy/paste it into Forecast.
To create a custom SOQL condition
- From Admin > Integrations, click Salesforce.
- If you do not open directly to Salesforce Configuration, click Activate.
- Scroll down to Opportunity Condition.
- Toggle Enable.
- Enter your custom condition SOQL in the text field.
Examples of custom condition SOQL:-
Check that the opportunity has more than 10 quantity of a specified product.
SELECT COUNT() FROM Opportunity WHERE Id = <OpportunityId> AND Id IN (SELECT OpportunityId FROM OpportunityLineItem WHERE Quantity > 10,0 AND Product2Id = '01t09000001LcVQAA0') -
Check that the opportunity has the prefix 'PRIORITY'.
SELECT COUNT() FROM Opportunity WHERE Id = <OpportunityId> AND Name LIKE 'PRIORITY%' -
Check that the opportunity has an amount of at least 50,000.
SELECT COUNT() FROM Opportunity WHERE Id = <OpportunityId> AND Amount >= 50000 -
Check that the opportunity record type is not 'Expansion', 'Renewal', or 'Self Service'.
SELECT COUNT() FROM Opportunity WHERE Id = <OpportunityId> AND Opportunity_Record_Type_Name__c NOT IN ('Expansion', 'Renewal', 'Self Service')
-
Check that the opportunity has more than 10 quantity of a specified product.
- A red warning icon appears next to Save.
- Click Save to test the custom condition's SOQL syntax.
- If the SOQL passes testing, a notification appears at lower left and the red warning icon updates to a green check.
Note:
- The custom condition is considered passed if it returns more than zero results.
- In the query, the WHERE clause must include Id = <OpportunityId>.
- When saving, the query is run against your Salesforce instance "/query" endpoint, to check that the syntax is valid. The condition is considered valid for any 2XX status code, regardless of the number of results.
Using Project Templates
Existing Forecast projects may be used as templates, and exported to Salesforce. Templates are applied when an Opportunity creates a Forecast project. Using templates saves time and minimizes manual project creation, especially if your team is performing routine tasks for each opportunity created.
There are four steps required for using project templates:
- Enable Forecast Project Template.
- Configure the project template in Forecast (or identify an existing project to use)
- Exporting the template to Salesforce.
- Selecting the appropriate template for the Opportunity.
To use project templates
- Go to your Salesforce instance.
- Click the cog at the top right and select Setup.
- In the left panel, expand Objects and Fields.
- Select Object Manager.
- Scroll down through the objects list and click on Opportunity.
- Click Page Layouts in the left side panel.
- Select Opportunity Layout (or if you have changed the default page, choose your new default).
- In the list of fields at the top, find the Forecast Project Template section and drag it into Opportunity Information field.
- (Optional) Repeat the steps this time selecting Forecast Project. Forecast Project field will allow the user to view which project in Forecast the opportunity is linked to.
- Click Save.
Once the Forecast Project Template field is available in Salesforce, you can configure templates in Forecast and export them to Salesforce.
To configure a project template
- From Admin > Integrations, click Salesforce.
- Scroll down to Project Template.
- Toggle Enable.
- Select a project from the dropdown.
- Change the reference (optional).
-
Click the green plus button to save the project template.
- Tick the boxes for each of settings you'd like to maintain in the template.
- If you have more than one template, identify which will be used as the default by toggling Default on the template.
Once your templates are configured, they must be exported to Salesforce in order to be selected within Opportunities. The default template will be applied for Opportunities that do not have an assigned template.
To export a project template
- From Admin > Integrations, click Salesforce.
- Scroll down to Project Template.
- Click Export to Salesforce.
- The template is now available in Salesforce and may be assigned to Opportunities.
Linking Existing Projects with Opportunities
In addition to automated project creation, you can manually link new or existing Forecast projects to Salesforce Opportunities. Once linked, Forecast project data is synced to Salesforce appearing within the corresponding Opportunity.
To link a Forecast project with a Salesforce opportunity
- Click Projects in the navigation ribbon.
- Select All Projects from the dropdown.
- Open the project to link with Salesforce.
- Click Settings in the left side panel.
- Select Integrations.
- Under Salesforce, use the dropdown to select the Opportunity you wish to link to the project.
If a Forecast project should no longer be linked to a Salesforce opportunity, it may be unlinked.
To unlink a Forecast Project from a Salesforce Opportunity
- Open the project you wish to unlink.
- Click Settings in the left side panel.
- Select Integrations.
- Under Salesforce, click Unlink.
- The project is no longer linked to the Salesforce Opportunity.
Comments
0 comments
Article is closed for comments.