1) To get Entity Id
var accountId = Xrm.Page.data.entity.getId();
2) To set field attribute visible
Xrm.Page.getControl("new_accouuntname").setVisible(true);
3) to get value of attribute .
var accountname=Xrm.Page.getAttribute("new_accountname").getValue();
No comments:
Post a Comment