Best answer

Error trying to connect to Salesforce: Could not create record of the "Lead" object: CompanyId should be a numeric value

  • 22 January 2021
  • 4 replies

We are getting the following error when trying to connect our Salesforce to a third party that uses LinkedIn SalesNavigator.  Has anyone else had this same error? TIA!

Could not create record of the "Lead" object: CompanyId should be a numeric value


Best answer by Troy Tessalone 22 January 2021, 20:47

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +14

@AO2013 FYI: Every Salesforce Object Record has an ID, which is used to link Salesforce Object Records in Zaps.

Userlevel 7
Badge +14

Hi @AO2013 

The Salesforce Company ID needs to come from a previous step in the Zap and be mapped thru to the Company field.

If that Company ID is not returned from the trigger step or a previous step in the Zap, then you’ll need to finds/search/lookup that Company ID using a Find Record step.

Check out this help article about mapping values using the ‘Custom’ option:

Hi Troy! Thanks, for your response.  I’m a rookie to Zapier and have not used it much at all.  Is the find a record your’re referring to on the Set Up Action where you select the Salesforce value?  If so, I searched for CompanyID and nothing comes up besides ContactID.



Userlevel 7
Badge +14

Hi @AO2013 

In Salesforce the Company ID is a linked object field, meaning that it expects an internal Salesforce generated ID for the Company.

Try this Salesforce action to find the Company ID.