how can i remove the extra semicolon from jscript ?
for(var i=0;i<selectedTexts.length;i++)
{
Xrm.WebApi.online.retrieveMultipleRecords("role", "?$select=roleid&$filter=(name eq '"+selectedTexts[i]+"' and _businessunitid_value eq "+buId+")").then(
function success(results) {
console.log(results);
for (var i = 0; i < results.entities.length; i++) {
var result = results.entities[i];
var roleid = result["roleid"];
roleConfiguration=roleConfiguration+roleid+";";
formContext.getAttribute("asr_configuredrole").setValue(roleConfiguration);
}
Any suggestion would be greately appriciated