Export to Salesforce

Section header image mobile

If your team uses Salesforce as their CRM, and it is your single source of truth, keeping it up to date with various systems within your tech stack can be time-consuming.

Updating the data within your Google Sheets/Excel can update Salesforce using the Coefficient "Export to..." feature. With this, you can update Opportunity stages, add a Contact's email to their record, or even scrub address fields for higher geocoding accuracy.

Let's dive deeper into this POWERFUL feature!

What is Export to Salesforce?

How to Export to Salesforce?

Re-Use an Existing Mapping

Export to Salesforce Actions





Advanced Technical Settings

Schedule an Export to Salesforce

FAQ for Export to Salesforce

What is Export to Salesforce?

Export to Salesforce is a very powerful feature in Coefficient. It allows you to update the data in Google Sheets/Excel and then uses Coefficient to push (or write back) that data update directly into Salesforce.

How to Export to Salesforce?

 ℹ️ NOTE: We recommend creating a Salesforce import of your data into Google Sheets/Excel using Coefficient before performing the Export to Salesforce. This allows us to automatically detect/map certain fields. (this is not required - but HIGHLY recommended) 😎

1. Open the Coefficient sidebar and click on the “Export to...” button.


2. Select the data source to which you would like to export your data. (ie: Salesforce)

Screenshot 2023-09-03 at 6.40.55 PM.png

3. Select the Tab and Header row (the Header row is not the Coefficient header, but the row with the Salesforce field headers in it) then hit "Next".


4. Destination Settings: Select the Salesforce Object you are exporting the data to and the Action you would like to take, then hit "Next". (Details on the different Actions are below)




5. Field Mappings: Depending on the Action you are taking, certain fields may be required to be mapped for this export.

(Example: Update requires the Salesforce object ID - “Opportunity ID”).

Coefficient will automatically map the fields for you if the data in the sheet came from an import from Salesforce using Coefficient.


ℹ️ NOTE: If the data in the sheet was not generated by a Salesforce/Coefficient import, you will need to map the data manually.



6. Advanced Settings:

Column for Results: Each time you Export To... Salesforce, Coefficient will write information related to that update to your sheet. Coefficient will try to guess the first empty column in your sheet and suggest that as the column to populate this information. We will write 3 columns to the sheet: (1) the URL for the Salesforce Record that was updated, (2) the status of the export (OK, ERROR, etc.), and (3) the date/time stamp that the record was updated last using Coefficient. (See #10 for screenshot)

Batch Size: Max is 10,000 rows due to Salesforce API limitations.

Export Empty Cells on Update: Enabling this feature will allow you to remove/clear out existing values in Salesforce in bulk using Coefficient.

Include export button on sheet - Enabling this will create this button in the Coefficient header to allow you to access the existing Export Mappings for your current sheet much faster.



7. Confirm your settings and then select "Export".









8. Select the rows in your sheet that you want to Export to Salesforce. You can either update the 3 rows that are highlighted, OR you can update all 34 rows.ExportSalesforceSelectRows1.png

9.  Coefficient will confirm that you want to update the 3 highlighted rows.

 ℹ️ NOTE: This action CANNOT be undone, so ensure all your settings and updates are correct before proceeding.ExportSalesforceSelectRowsConfirm.png

10. Coefficient will confirm the rows have been updated in your Salesforce org.


11. The records that have been updated will have the Record ID link, Result (status), and the Timestamp of the update. 


Re-use an Existing Mapping

If you have used the "Export to" function before, you will see the previous Export Mappings in the Coefficient sidebar underneath your Import list. This list will allow you to reuse a previous mapping. We will go through the process of using both the sidebar and the button below.

1. Pushing to Salesforce a second time will reveal the “Export” button in the Coefficient Header and the previous mappings in the sidebar.

 ℹ️ NOTE: The "Export" button will show if you have enabled the "Include export button on sheet" setting and if your data came from a Coefficient import.ExportSalesforceReuse.png

2. When clicking the “Export” on-sheet button, the previous mapping(s) related to the sheet you are currently on will appear in the sidebar.Exportfromonsheetbuttons.png

3. Make sure to review the mappings before performing the Export to Salesforce again. (From here, you can view the run history and settings)Then proceed with the typical “Export to…” process.





Export to Salesforce Actions


Pushes updates to an existing field/record in Salesforce.

  • The record MUST have a record ID mapped.


Creates a NEW ID and inserts data into a new record in Salesforce.


Updates data for existing records or if the record does not already exist it creates a NEW ID and inserts data.

  • The object must have an External ID field(s). To learn more about an External ID field, feel free to check out this article.


This action will remove the ENTIRE record from Salesforce. You can recover it in the Recycle Bin in Salesforce within 30 days of restoring the record if needed.

  • If you need to remove a field value on a record (that is not required) then use the "Update" action (above).
  • You cannot remove a value from a required field on a Salesforce record, it must be replaced with a new value on the update.
  • The record MUST have a record ID mapped.

Advanced Technical Settings

Under the hood, “Export to” - Salesforce uses the Salesforce REST API and Salesforce Bulk API to perform the desired Insert, Update, Upsert, and Delete operations on your Salesforce objects. Coefficient chooses which API to invoke depending on how many records you push to Salesforce. By default, we use a batch size of 1000 and execute API request batches in parallel for better performance. These defaults should work for most typical use cases.

However, some Salesforce setups might require users to override the API batch size and parallel batching behavior. In particular:

  • If the Salesforce objects you are trying to use “Export to” - Salesforce has Apex triggers configured, you might see an error message like "Too many SOQL queries" when trying to push a large number of records at once. If you see this or a similar error message, the default batch size of 1000 might be too high. Under Advanced settings, enter a smaller value for the Batch size, then retry the operation.
  • In a single “Export to” - Salesforce operation, if you are simultaneously updating Salesforce records with dependencies on one another (e.g., via child/parent object relationships or Apex triggers), you might see an error like "UNABLE_TO_LOCK_ROW" for some of the records. If you see this or a similar error message, you might be able to work around the error by disabling the parallel execution of API request batches. Under Advanced Settings, uncheck Run batches in parallel, then retry the operation.

Schedule an Export to Salesforce

If you work with data frequently, you may find yourself performing repetitive tasks. Our "Export to Salesforce" feature allows you to schedule pushing your data back to Salesforce at a specific time. This feature can save you a significant amount of time by automating the export process. 🤯

See how you can schedule an export to Salesforce here!

FAQ for Export to Salesforce

How can I use this feature?

Export to Salesforce is a premium feature, which means that you can try it out on the Free plan for up to a certain number of rows. If you hit the limit on the Free or Starter plan(s) and need to upgrade to the Pro plan for unlimited use, please contact sales@coefficient.io, and a member of our team will assist you.

What if I push the wrong data to Salesforce by mistake? How can I fix it?

You can update the data in the sheet and do an additional Export to Salesforce to correct it OR you can go to the Recycle Bin in Salesforce and reinstate the deleted information (This has to be done WITHIN 30 days of the original update as Salesforce clears out the Recycle Bin on a 30-day cadence).

Is there a limit to Export to Salesforce that I can do in Coefficient?

Coefficient does not have any limitations on the number of "Export to Salesforce" you can do; however, there is a limit set by Salesforce on the number of API calls your org can make in a given period.

I am trying to update the Account Team Members, but the Update action is not working. How do I Update using this feature? 

To Update the Account Team Members, it is recommended that you have the following fields in your import,

  • Account ID
  • Account Name
  • User ID
  • Full Name
  • Account Team Member ID
  • Team Role
  • Account Access
  • Case Access
  • Contact Access
  • Opportunity Access.

To update the Account Team Member, you will need to use the Delete action to remove them OR the Insert action to update their assignment. If you have specific questions, please reach out to support@coefficient.io.

How do you rename an Export so you can recognize it and reuse it later?

In the Coefficient sidebar, you will see all of your imports, and if you scroll down, you will see a section called “Exports”. Locate the Export you would like to rename, hover over the name with your mouse, and click on the 3-vertical dots that appear. Select “Rename” from the list. Update the name of your Export, and press “Enter” to save.

Screenshot 2024-02-03 at 10.01.34 PM.png

How do you view an Export’s Run History?

In the Coefficient sidebar, you will see all of your imports, and if you scroll down, you will see a section called “Export". Locate the Export you would like to see the Run History for and click on it to open up the details. You should see a “See Full Run History” link when you collapse the last export information.

You will be redirected to a page dashboard where you can download the full log in CSV format (see the attached screenshots below).

Screenshot 2023-09-05 at 1.44.20 AM.png Screenshot 2023-09-05 at 1.47.58 AM.png


Was this article helpful? 0 out of 1 found this helpful