Data Sync & ETL
Migrate Salesforce opportunity line items to GoHighLevel with Google Sheets
When you run it, it moves and syncs data using Google Sheets.
What it does
## 📦 Opportunity Line Items Sync – Salesforce to GHL Custom Objects ### How it works This workflow migrates Salesforce Opportunity Line Item records into GoHighLevel as custom_objects.opportunity_products custom object records. A manual trigger reads a batch of opportunity records from Google Sheets, queries Salesforce for all line items linked to each opportunity, and loops through each line item. For each one, the workflow creates an opportunity_products record in GHL populated with the product name, Salesforce ID, quantity, unit price, stock availability, and related fields. It then creates a GHL association linking the new opportunity product record back to the parent opportunity. All outcomes — success, GHL create error, and association error — are logged to the Google Sheet with Wait nodes pacing API calls to avoid rate limits. ### Setup steps 1. Replace YOUR_GHL_API_TOKEN in the Authorization header of both active GHL HTTP nodes. 2. Replace YOUR_GHL_LOCATION_ID and YOUR_GHL_ASSOCIATION_ID in the GHL HTTP nodes. 3. Connect Salesforce OAuth2 and replace YOUR_SF_INSTANCE.my.salesforce.com with your Salesforce org domain. 4. Connect Google Sheets OAuth2 to all Sheets nodes. Replace YOUR_GOOGLE_SHEET_ID and confirm the tab is named Opportunity Line Items with an Opportunity ID column. 5. Adjust Limit to control batch size per run. 6. Run the manual trigger.
The steps
- SF - Query Opportunity Line Items
- When clicking ‘Execute workflow’
- Sheets - Read Opportunity Records
- Split Out Line Items
- GHL - Create Opportunity Product Custom Object
- Loop Over Line Items
- Limit
- GHL - Associate Opportunity Product to Opportunity
- Line Items Found?
- Sheets - Mark Association Complete
- Sheets - Log GHL Create Error
- Wait After Association Success
- Wait After GHL Create Error
- Sheets - Log Association Error
17 steps in total.
Similar automations
Data Sync & ETLMigrate Salesforce product catalog from Google Sheets to GoHighLevel custom objects19 stepsMonitoring, Ops & IncidentsMigrate Salesforce accounts to GoHighLevel using Google Sheets16 stepsAI Agents & AssistantsRecommend Salesforce opportunity partners with Claude, Crossbeam, Slack and Gmail42 stepsData Sync & ETLCreate Geotab Zones for New Salesforce Work Orders14 steps