Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Data Sync & ETL

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

  1. SF - Query Opportunity Line Items
  2. When clicking ‘Execute workflow’
  3. Sheets - Read Opportunity Records
  4. Split Out Line Items
  5. GHL - Create Opportunity Product Custom Object
  6. Loop Over Line Items
  7. Limit
  8. GHL - Associate Opportunity Product to Opportunity
  9. Line Items Found?
  10. Sheets - Mark Association Complete
  11. Sheets - Log GHL Create Error
  12. Wait After Association Success
  13. Wait After GHL Create Error
  14. Sheets - Log Association Error

17 steps in total.

Similar automations