if(phone.length() == 0 && email.length() == 0 && title.length() == 0 && skillSet.length() == 0 && resume == 'false'){
status = 'Junk Candidate';
} else if(phone.length() == 0 || email.length() == 0){
status = 'Unqualified';
} else if(title.length() == 0 && skillSet.length() == 0 || resume == 'false'){
status = 'Rejected';
} else {
status = 'Waiting-for-Evaluation';
}
updateMap = Map();
updateMap.put('candidateStatus', status);
updateMap.put('authtoken', authtoken);
updateMap.put('candidateIds', id.toString());
updateMap.put('scope', 'recruitapi');
updateMap.put('version', '2');
response = postUrl('http://recruit.zoho.com/recruit/private/json/Candidates/changeStatus%22,updateMap);