function commonFlag() {
var GUIDvalue = Xrm.Page.data.entity.getId();
alert(GUIDvalue);
var fetchXml = "<fetch mapping='logical' distinct='false'>"
+ "<entity name='account'>"
+ "<attribute name='new_choosedflag' alias='flagstring'/>"
+ "<link-entity name='account' from='accountid' to='accountid' link-type='inner' alias='ab'>"
+ "<filter type='and'>"
+ "<condition attribute='accountid' operator='under' value='" + GUIDvalue + "' />"
+ "</filter>"
+ "</link-entity>"
+ "</entity>"
+ "</fetch>";
alert(fetchXml);
}
Above code is used to fetch the data of flag of child accounts. I want to concatenate all the childs flag value and remove the duplicate data.
How i concatenate and remove the duplicate of flag data and display it on another field?
*Flag: - Red, White, Yellow, Orange, Black
*This post is locked for comments