Page 1 of 1

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

Posted: Thu 29 Apr 2021 18:41
by ruitsgje
Hello,

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

Rui

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

Posted: Thu 22 Jul 2021 08:05
by MaximG
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/