+ Start a Discussion

Get Deleted Objects Resource

I am trying out the new REST API Get Deleted Objects Resource in the Winter '14 release.  When I try to make a call to the API using the URI like the one in the Release Notes:





I get the error:


"Error parsing the 'start' date string. This operation requires properly formatted 'start' and 'end' date/time parameters to be specified. Please consult the documentation for the format of these date/time fields."


I am calling this from a C# program which works fine for other REST API calls, I just can't seem to get this one to work.


You need to URLEncode the date/time values (the + will be breaking things)

Subhani PSubhani P



use DateTime.ParseExact method


var dateString = dr["business_dt"].ToString();var format ="MM/dd/yyyy hh:mm:ss tt";var dateTime =DateTime.ParseExact(dateString, format,CultureInfo.InvariantCulture);dr["StartDate"]= dateTime;


Please refer the below link also,





If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.


Salesforce Certified Developer,