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
Hello,
Can you please clarify what's the end goal of the script?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,104 Most Valuable Professional
nmaenpaa 101,156