Unable insert records to a Date fields
Posted: Fri 01 Aug 2014 16:07
I am having issues inserting a record to a date field in Salesforce
This is the error I get: "You have an error in your SQL syntax at line 5, column 15: ')' expected
I tried with out the time option but it gives me an "Unsupported expression type Binary
See Example
insert into Opportunity (AccountId,Name,StageName,CloseDate,Type,OwnerId,Is_Coverage_currently_in_place) values
( '00130000011CQb5AAG',
'Prospect test',
'Prospect',
7/31/2014 12:00:00 AM,
'New Business',
'00530000007lHuBAAU',
'No' )
RETURNING Id
This is the error I get: "You have an error in your SQL syntax at line 5, column 15: ')' expected
I tried with out the time option but it gives me an "Unsupported expression type Binary
See Example
insert into Opportunity (AccountId,Name,StageName,CloseDate,Type,OwnerId,Is_Coverage_currently_in_place) values
( '00130000011CQb5AAG',
'Prospect test',
'Prospect',
7/31/2014 12:00:00 AM,
'New Business',
'00530000007lHuBAAU',
'No' )
RETURNING Id