#Integration overview
The Salesforce integration enables:
- Opportunity sync: When you close an opportunity in Salesforce, Light automatically creates a corresponding AR invoice
- Account sync: Salesforce accounts synchronize to Light customer master data
- Contact sync: Contacts synchronize to contact information
- Field mapping: Configure which Salesforce fields map to Light invoice fields
- Filtering: Choose which opportunities to sync (by stage, amount, date)
This eliminates manual invoice creation and ensures invoices match CRM data.
#Setting up the Salesforce integration
To connect Salesforce:
- Navigate to Settings (gear icon) > Integrations > Salesforce
- Click Connect
- You're redirected to Salesforce to authorize
- Enter your Salesforce username and password
- Review the permissions Light is requesting
- Click Authorize
- Light confirms the connection is active
Next, configure what data to sync.
#Configuring opportunity sync
Define how opportunities become invoices:
- Navigate to Settings > Integrations > Salesforce > Opportunity Mapping
- Select Sync Opportunities: Toggle on
- Configure filters:
- Opportunity Stage: Only "Closed Won" or other completed stages
- Minimum Amount: Only sync opportunities above a threshold (avoid small deals)
- Date Range: Sync only recent opportunities (avoid re-syncing old data)
- Configure field mappings:
- Salesforce Account → Light Customer Entity
- Salesforce Opportunity Amount → Light Invoice Total
- Salesforce Opportunity Name → Light Invoice Description
- Salesforce Close Date → Light Invoice Document Date
- Save mappings
Light validates the mappings to ensure data consistency.
When a Salesforce opportunity matches your sync criteria:
- Light reads the opportunity data
- Light creates a new AR (accounts receivable) invoice
- Invoice is populated with:
- Customer (from Salesforce account)
- Invoice amount (from opportunity amount)
- Invoice description (from opportunity name)
- Invoice date (from opportunity close date)
- Invoice is created in draft status (not yet posted to GL)
- You review the invoice and click Post to finalize
This gives you a chance to review before committing to GL.
Tip: Have finance review the first several synced invoices to ensure mapping is correct. After that, you can configure auto-posting if comfortable.
Beyond opportunities, sync Salesforce accounts and contacts:
- Navigate to Settings > Integrations > Salesforce > Account Mapping
- Select Sync Accounts: Toggle on
- Configure mappings:
- Salesforce Account Name → Light Customer Name
- Salesforce Account Industry → Light Customer Industry
- Salesforce Billing Address → Light Billing Address
- Salesforce Phone → Light Phone
- Save mappings
Similarly for contacts:
- Navigate to Account Mapping
- Select Sync Contacts: Toggle on
- Configure mappings for contact information
#Duplicate handling
What if the same customer exists in both Salesforce and Light?
Configure duplicate handling:
- Navigate to Settings > Integrations > Salesforce > Duplicate Settings
- Select approach:
- Match by name: If customer name matches, update existing Light customer
- Match by external ID: If you have a customer ID in both systems, use it to match
- Create new: Always create new Light customer (may create duplicates)
- Save
Typically, match by name or external ID to avoid duplicate customer records.
#Sync frequency
Configure how often to check Salesforce for new opportunities:
- Navigate to Settings > Integrations > Salesforce > Sync Settings
- Select frequency:
- Real-time: Check continuously (as opportunities close)
- Hourly: Check hourly
- Daily: Check daily (at specific time)
- Manual: Only sync when you click "Sync Now"
- Select time zone for scheduled syncs
- Save
Real-time is ideal for fast-moving sales. Daily is sufficient for most organizations.
#Monitoring Salesforce sync
Track integration activity:
- Navigate to Settings > Integrations > Salesforce > Sync History
- View all past syncs:
- Date/time of sync
- Number of opportunities synced
- Number created, updated, skipped
- Errors (if any)
- Click any sync to see detail:
- Which specific opportunities were processed
- Which were successfully synced
- Which failed and why
This helps identify issues quickly.
#Manual sync trigger
Manually trigger a sync if you don't want to wait for scheduled sync:
- Navigate to Settings (gear icon) > Integrations > Salesforce
- Click Sync Now
- Light immediately checks Salesforce and syncs new opportunities
- You see a summary of what was synced
Useful when you close a large deal and need the invoice immediately.
#Handling sync failures
If opportunities fail to sync:
- Check the error message (displayed in sync history)
- Common errors:
- Missing required field: Salesforce opportunity is missing a mapped field
- Invalid amount: Opportunity amount is not a valid number
- Customer not found: Salesforce account doesn't match a Light customer
- Fix the issue in Salesforce
- Manually retry the sync
Light logs all errors for troubleshooting.
Tip: Create a Salesforce validation rule to prevent opportunities closing without required fields. This prevents sync failures.
#Advanced field mappings
Beyond basic fields, map custom fields:
- Create custom fields in Salesforce (e.g., "Project Code", "Cost Center")
- In Light mapping, add custom field mappings:
- Salesforce Project Code → Light Project Cost Center
- Salesforce Product Category → Light Invoice Line Item Product
- Light syncs these custom fields to Light custom properties
- Use these properties for reporting and cost allocation
#Multi-line items
If an opportunity includes multiple products (line items in Salesforce), how are they synced?
Configure line-item sync:
- Create invoice line items in Salesforce (typically via a related object or custom setup)
- In Light mapping, configure line-item mappings:
- Salesforce Product → Light Product
- Salesforce Quantity → Light Quantity
- Salesforce Unit Price → Light Unit Price
- Light creates Light invoice with multiple lines matching Salesforce structure
#Forecasting and reporting
Use synced data for reporting:
- Sync Salesforce opportunities to Light to create invoices
- Use Light's custom reporting to analyze revenue:
- Revenue by customer
- Revenue by product
- Revenue by sales rep (synced from Salesforce owner field)
- Compare Salesforce pipeline to Light recognized revenue
This provides full visibility from pipeline to cash collection.
#Troubleshooting common issues
Opportunities not syncing: Check filter criteria, verify opportunities are in correct stage, ensure amounts are populated.
Wrong customer assigned: Verify account mapping, check for duplicate customer names in Light.
Incorrect amounts: Check field mapping, verify Salesforce amount field is being synced.
Duplicate invoices: Verify sync filters prevent re-syncing old opportunities.
Connection failed: Re-authorize Salesforce integration, verify your Salesforce account has API access enabled.
#Unsyncing data
If you accidentally synced incorrect data:
- Navigate to the Light invoice created from Salesforce
- Click Delete (if in draft status) or Create Reversal (if posted)
- Light removes or reverses the invoice
- Data sync can be re-attempted after correcting in Salesforce
Light provides audit trail of deleted/reversed items.
#Exporting synced data
Export synced invoices for analysis:
- Navigate to Planning & Reports → Reports
- Filter by date, customer, amount
- Export to Excel or PDF
- Analyze revenue by customer, product, region
#Related articles