Trying the below javascript to match a lookup ID (currentRec) to an AccountID - it's not working. Any ideas?
var lookup = new Array();
lookup = Xrm.Page.getAttribute("account").getValue();
if (lookup != null) {
var currentRec = lookup[0].id;
retrieveMultiple("new_processfeedbackSet", "substringof('" + currentRec + "',AccountID)", SearchCompleted, null);
}
I have even tried hardcoding the values in, but still not working:
if (lookup != null) {
var currentRec = "a5aa55a5a5a5a5a5";
retrieveMultiple("new_processfeedbackSet", "substringof('" + currentRec + "',AccountID)", SearchCompleted, null);
}
Any advice?