You need to sign in to do that
Don't have an account?
Priya Guleria
Sobject related Error
Error: Compile Error: Invalid constructor syntax, name=value pairs can only be used for SObjects in line Contact con =new Contact ( ... please
Lead ld=new Lead(
FirstName='Cal',
LastName='Smith',
Company='IBM'
);
Contact con = new Contact(
FirstName='Paul',
LastName='Smith'
);
Lead ld=new Lead(
FirstName='Cal',
LastName='Smith',
Company='IBM'
);
Contact con = new Contact(
FirstName='Paul',
LastName='Smith'
);
Make sure that you don't have class with name contact in your org.
Thanks.