I am just starting to use SPServices and have no idea how to get the current item/task assignedTo user's email id. I was searching for 2 days and didn't find a proper/easy solution. I am trying to get that in a CEWP in SharePoint 2013.
I found this script to get the ID of the current item and am struggling to use this id and get the AssignedTo user's email id
<script type="text/javascript">
var docurl = document.URL;
var beginindex = docurl.indexOf('?ID=') + 4;
var endindex = docurl.indexOf('&Source=');
var itemid = docurl.substring(beginindex, endindex);
</script>
Please help me.