Salesforce Integration
Connect your Salesforce CRM to automatically import Opportunities as AVStackr Projects.
Overview
The Salesforce integration enables automatic project creation when Opportunities are assigned to engineers. When an Opportunity's owner email matches an AVStackr user's email, a project is automatically created for that user.
Salesforce Opportunity → Webhook → AVStackr matches owner email → Project created for that user
Setup Instructions
Step 1: Create a Salesforce External Client App
- In Salesforce, go to Setup → App Manager
- Click New External Client App
- Enter app details:
- App Name: AVStackr
- Contact Email: Your email
- Distribution State: Local
- Enable OAuth Settings
- Set the Callback URL to:
https://avstackr.com/api/salesforce/callback - Add OAuth Scopes:
Access the identity URL service (id, profile, email, address, phone)Manage user data via APIs (api)Perform requests at any time (refresh_token, offline_access)
- Click Save and wait a few minutes for activation
Step 2: Get Consumer Credentials
- Go to App Manager
- Find your app and click the dropdown → View
- Click Manage Consumer Details
- Verify your identity if prompted
- Copy the Consumer Key and Consumer Secret
Step 3: Connect in AVStackr
- Go to Settings in AVStackr
- Find the Salesforce Integration section
- Enter your Consumer Key and Consumer Secret
- Click Connect to Salesforce
- Authorize the connection in the Salesforce popup
Step 4: Set Up Automatic Sync (Optional)
To automatically create/update AVStackr projects when Opportunities change in Salesforce, set up an Outbound Message:
4a. Create the Outbound Message
- In Salesforce, go to Setup → Search "Outbound Messages"
- Click New Outbound Message
- Select Object: Opportunity → Click Next
- Fill in the details:
- Name: AVStackr Project Sync
- Unique Name: AVStackr_Project_Sync (auto-fills)
- Endpoint URL: Copy from AVStackr Settings → Salesforce Integration → Webhook URL
- User to send as: Click the search icon and select your user
- In Opportunity fields to send, select and add these fields:
- Id (required)
- Name
- StageName
- Amount
- CloseDate
- OwnerId
- AccountId
- Click Save
4b. Create the Workflow Rule
- Go to Setup → Search "Workflow Rules"
- Click New Rule
- Select Object: Opportunity → Click Next
- Fill in:
- Rule Name: AVStackr Sync
- Evaluation Criteria: Every time a record is created or edited
- Rule Criteria: Select "criteria are met", then add a condition (e.g., Stage not equal to "Closed Lost")
- Click Save & Next
- Click Add Workflow Action → Select Existing Action → Outbound Message
- Select your "AVStackr Project Sync" outbound message
- Click Save, then Done
- Important: Click Activate on the workflow rule to enable it
This step is optional. Without automatic sync, you can still use Salesforce data - it just won't automatically create projects. Manual import features may be added in future updates.
User Matching
For automatic project creation to work:
- The Salesforce Opportunity owner's email must match an AVStackr user's email
- Both users must be in the same organization/tenant
- If no match is found, the import is skipped (logged in Settings)
Ensure your team members use the same email addresses in both Salesforce and AVStackr for automatic assignment to work.
What Gets Synced
| Salesforce Field | AVStackr Field |
|---|---|
| Opportunity Name | Project Name |
| Opportunity Owner | Created By (matched by email) |
| Owner Name | Opportunity Owner |
| Account Name | Customer (created if new) |
| Stage Name | Project Status |
Import Log
The Settings page shows recent import activity:
- Created - New project was created
- Updated - Existing project was updated
- Skipped - No matching user found
- Failed - Error occurred during import
Disconnecting
To disconnect the Salesforce integration:
- Go to Settings → Salesforce Integration
- Click Disconnect
- Existing projects are not affected
- You can reconnect at any time
