You need to sign in to do that
Don't have an account?
uat_live1.3903047664538198E12
Constructor not defined: [SObject].<Constructor>()
Hi All,
I get the Below Error When I Initialise an S Object Instance. Could Some one Please let me know how I can Initialise it.
Public Sobject NewSObject = New SObject();
Error: Constructor not defined: [SObject].<Constructor>()
Thanks and Regards,
Christwin
I get the Below Error When I Initialise an S Object Instance. Could Some one Please let me know how I can Initialise it.
Public Sobject NewSObject = New SObject();
Error: Constructor not defined: [SObject].<Constructor>()
Thanks and Regards,
Christwin
Refer the below link.
https://developer.salesforce.com/forums/ForumsMain?id=906F000000090F3IAI
All Answers
Refer the below link.
https://developer.salesforce.com/forums/ForumsMain?id=906F000000090F3IAI
You can initialize dynamic sobject in following way
You can use the following code to create an SObject dynamically:
sObject sObj = Schema.getGlobalDescribe().get(ObjectName).newSObject() ;
where ObjectName is can be a name of any object like contact,account,opportunity
Best Regards
IQRAR AHMED
Senior Salesforce/.Net Developer