Hello Harshal ,

 

Thanks for your reply,

 

I am able to do with before update Business rule.

 

(function executeRule(current, previous /*null when async*/ ) {

if ((!current.startdate.nil()) && (!current.enddate.nil())) {
var start = (new GlideDateTime(current.getValue('startdate'))).getNumericValue();
var end = (new GlideDateTime(current.getValue('enddate'))).getNumericValue();
if (start > end) {
gs.addInfoMessage('End Date should be greater than start date');
current.startdate.setError('End Date should be greater than start date');
current.setAbortAction(true);
}
}

})(current, previous);

 

Thanks Again.

 

Remember to mark any post/answer/comment as being either correct or helpful.

 

Regards,

RDK.

View solution in original post