Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Update custom field based on status change for Quote

$
0
0

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);
}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images