using entity Name we can set plural name Manually in MS CRM
var result = ename.slice(-1);
if (result == "s") {
result = ename + "es";
} else if (result == "y") {
result = ename.replace(entName.slice(-1), "ies");
} else {
result = ename + "s";
}
if (result == "s") {
result = ename + "es";
} else if (result == "y") {
result = ename.replace(entName.slice(-1), "ies");
} else {
result = ename + "s";
}
Comments
Post a Comment