
3 respuestas

@raj
Thanks for the reply,I just sligtly modify and it got saved without any error as below,
if(String.isNotBlank(createdate))
{ str+=' AND CreatedDate = :DateTime.valueOf(createdate).format(YYYY-MM-DDThh:mm:ss+hh:mm)'; } But When I run the code, I am getting this error,System.QueryException: unexpected token: ( Class.QueryFilterStatus.dopostCase: line 89, column 1) At this line; caseList=Database.query(str);return caseList;