Salesforce ODBC driver - how to get object id after insert.

Discussion of open issues, suggestions and bugs regarding usage of ODBC Drivers
Post Reply
ruitsgje
Posts: 1
Joined: Thu 29 Apr 2021 18:34

Salesforce ODBC driver - how to get object id after insert.

Post by ruitsgje » Thu 29 Apr 2021 18:41

Hello,

I'm using .NET and OdbcConnection, is there a way to get the salesforce object id after insert statement?

Rui

MaximG
Devart Team
Posts: 1665
Joined: Mon 06 Jul 2015 11:34

Re: Salesforce ODBC driver - how to get object id after insert.

Post by MaximG » Thu 22 Jul 2021 08:05

You can get the value you want with the Returning phrase : Insert into mytable__c(f_email__c, Name) values ('support@devart.com','some string value') returning Id
Additional information is available here : https://www.devart.com/dotconnect/salesforce/docs/

Post Reply