I need to update "activateQuote " field to Yes(True) if the Quote is "Active" or "Won". Can anyone tell me whats wrong with this ?
var activateQuote = Xrm.Page.getAttribute("new_activatequote").getValue();
var quoteStatus = Xrm.Page.getAttribute("statecode").getText();
if ((quoteStatus == "Won") || (quoteStatus == "Active")) {
Xrm.Page.getAttribute(activateQuote).setValue(true);
}
*This post is locked for comments