function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jvalotojvaloto 

Create an SObject object from a search SQL

Hello,

 

I am building a JAVA application, and I use WSC, but is dynamic, I do not use Account[] or Lead[], I have to create a SObject to pass in my connection.

 

connection.upsert(externalIDFieldName, sObjects)

 

I have my search in SQL:

 

PreparedStatement ps = ConexaoSQL.conectaBanco().prepareStatement("SELECT TOP 1 Id_Salesforce, LastName, Company FROM lead");

 

Now I have to create an SObject starting from this research.

 

Could someone help me?