Ravindr Kr
Ravindr Kr

Reputation: 109

upsert throws error when I pass Id as externalIdFieldName in Beatbox API while contacting Salesforce

I'm using beatbox API to update/insert data in to salesforce opportunity object.

upsert() throws INVALID FIELD error when I pass Id as externalIDFieldName. Currently I'm using another unique external Id and it's working fine but I want to use the salesforce Id.

Please shed some light on what I'm missing.

Upvotes: 0

Views: 692

Answers (2)

aaronbauman
aaronbauman

Reputation: 3767

You can specify "Id" as an external key.

see REST upsert documentation

If you need to upsert based on Id, use SOAP API.

Upvotes: 0

superfell
superfell

Reputation: 19050

If you already know the salesforce Id of the record, just call update instead.

Upvotes: 3

Related Questions